Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

coltemplate syntax / parameters
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: coltemplate syntax / parameters
#47677
coltemplate syntax / parameters 10 Years, 2 Months ago Karma: 0
The demo for the ARI Smart Content: ARI CSV Table plugin includes {coltemplate}{$NAME} - {$ID}{/coltemplate}. I figured out that {$NAME} - {$ID} inserts the values from the two columns into a single column, but I've not been able to find out how/what else {coltemplate) can be used. Where do I find the information? Also, how do I select just the columns I want to display?
The administrator has disabled public write access.
 
#47683
Re:coltemplate syntax / parameters 10 Years, 2 Months ago Karma: 747
Hello,

{coltemplate} is used if you want to format value from the selected column. It is also possible to use values from the same record from another column. For example if CSV file contains Price, ID, ProductName columns their values can be used in {coltemplate} with help of the following variables:

{$Price}

{$ID}

{$ProductName}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#47689
Re:coltemplate syntax / parameters 10 Years, 2 Months ago Karma: 0
Thank you for the quick reply. What do you mean by format the value? Can I trim zeros from numbers and/or use a substring operation on a string? What formatting options are available?
The administrator has disabled public write access.
 
#47700
Re:coltemplate syntax / parameters 10 Years, 2 Months ago Karma: 747
It is possible to use the following filters:

* html_truncate truncates HTML string. Can accepts two parameters. The first parameter is string length and the second parameter is more text;

* lower_case transforms string to lower case;

* restore_tags restores HTML tags in truncated HTML string;

* strip_tags strips HTML tags. In the first parameter you can indicate safe tags;

* truncate truncates string. Can accepts two parameters. The first parameter is string length and the second parameter is more text;

* upper_case transforms string to upper case;

* number_format works like number_format PHP function;

filters are used in the following way:

{$Name|html_truncate:10}

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1