Lasso Soft Inc. > Home

[results_status]

Linkresults_status
AuthorJason Huck
CategoryResults
Version8.x
Licensehttp://opensource.org/licenses/artistic-license.php
Posted30 Jan 2006
Updated21 Mar 2006
More by this author...

Description

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].

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.

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' = '
Items ' + shown_first + ' through ' + shown_last + ' of ' + found_count + ' found' + (#sf != null? ', sorted by ' + #sf + '') + '.
\n'); return(@#out); /define_tag;

Related Tags

Comments

21 Mar 2006, Jason Huck

Bug Fix

Fixed an issue where the tag would error if used where the value of [sort_fielditem] was null.

Please log in to comment

Subscribe to the LassoTalk mail list

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft