Plugin

EE 1
EE 2
Value Aggregator

Developer

Laisvunas

3rd Party (Commercial)
Current Version: 1.1

License Agreement

Buy Now!

$10.00
Qty:

Compatibility

  • LG Addon Updater
  • Multi Site Manager
  • Stand Alone Entry Form

Requirements

  • jQuery for the Control Panel

Tags

Value Aggregator allows you to compose from several values a string suitable for use as a value of parameter.

PARAMETERS:

operator1 - Optional. Allows you to specify operator which will be appended
once on the left in resulting string. E.g if the value of “operator1”
parameter is “not”, then resulting string will be “not the_rest_of_string”.

operator2 - Optional. Allows you to specify operator which will be included
between every value pair. E.g. if the value of “operator2” parameter is “&”,
then resulting string will be “first_value&second_value&third_value”. Default value
of this parameter is “|”.

value1, value2, value3 ... value50 - Optional. Allows you to specify up to
50 values.

append_left - Optional. Allows you to specify string which will be appended
on the left in resulting string. E.g if the value of “append_left” parameter
is “|”, then resulting string will be “|the_rest_of_string”.

append_right - Optional. Allows you to specify string which will be appended
on the right in resulting string. E.g if the value of “append_right” parameter
is “|”, then resulting string will be “the_rest_of_string|”.

VARIABLES:

{value_aggregator_result} - outputs string composed from several values and suitable
for use as a value of parameter.

{nonempty_values_number} - outputs number of non-empty values passed as parameters to the
{exp:value_aggregator} tag.

EXAMPLE OF USAGE:

The code

{exp:value_aggregator append_left="|" value1="200" value2="198" value3="201" value4="88" value5="93" value6="197" value7="" value8="" value9="" value10=""}

{value_aggregator_result}

{/exp:value_aggregator}

will output the string “|200|198|201|88|93|197”

Value Aggregator Links

This entry was last updated May 26, 2011, 3:29 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!