[results_status]

Description

Link: [results_status]
Author: Jason Huck
Category: Results
Version: 8.x
License:
Posted: Jan. 30, 2006
Updated: Mar. 21, 2006
More by this author...
This is simply a shortcut for creating a string like:

Items 1 through 20 of 100 found, sorted by name.

Handy for use in concert with [results_table] and [results_navigation].

Parameters

none


Sample Usage

inline( ... );
	results_status;
/inline;
						

Source Code

Click the "Download" button below to retrieve a copy of this tag, including the complete documentation and sample usage shown on this page. Place the downloaded ".inc" file in your LassoStartup folder, restart Lasso, and you can begin using this tag immediately.
1
2
3
4
5
6
7
8
9
10
11
12
define_tag(
	'status',
	-namespace='results_',
	-priority='replace',
	-description='Combination of search results status tags.'
);
	local('sf' = sort_fielditem);
	#sf != null ? #sf->replace('_',' ')&titlecase;
	local('out' = '<div class="results_status">Items <strong>' + shown_first + '</strong> through <strong>' + shown_last + '</strong> of <strong>' + found_count + '</strong> found' + (#sf != null? ', sorted by <strong>' + #sf + '</strong>') + '.</div>\n');
	return(@#out);
/define_tag;

 

Related Tags



Comments

03/21/2006, Jason Huck
Bug Fix
Fixed an issue where the tag would error if used where the value of [sort_fielditem] was null.
Email:


Password:



Newest

Most Popular

Support tagSwap.net