New features Please use http://kentico.uservoice.com as the primary place to submit your suggestions and allow others to vote for your ideas!
Version 4.x > New features > Addition transformation expressions for search results View modes: 
User avatar
Member
Member
sasdaman - 4/9/2009 5:13:26 PM
   
Addition transformation expressions for search results
Hi,

A suggestion for transformation expressions:

1/ The current expression <%# GetEditableValue("mainText") %> add an additional parameter so you can limit the number of character to display.

2/ An additional expression which pulls the value of the title tag for the given page.

3/ An expression to get the file size of the document or file.

4/ An expression so to number the search results in a list 1,2,3,4 etc

Kind regards,

Sahus Pilwal

User avatar
Member
Member
kentico_petrp - 4/20/2009 3:04:44 PM
   
RE:Addition transformation expressions for search results
Hi Sahus,

you can do 1, 2 and 4 with the current version:

1/ <%# LimitLength(Eval("some field name"), 10 , "...") %>

2/ <%# Eval("DocumentPageTitle") %>
(however, please note that this will not work if the title is inherited)

4/ <%# DataItemIndex %>

3/ requires getting data from another table and it may lead to bad performance, so I wouldn't recommend it.

You can see more details on the transformation expressions and built-in functions when you click the help icon below the transformation editor in CMS Site Manager (it leads to page <cms url>/CMSHelp/index.html?newedit_transformation_methods.htm)

You can also write custom functions as described in http://devnet.kentico.com/docs/devguide/adding_custom_functions_to_transformations.htm

Regards,

Petr Palas, Kentico




User avatar
Member
Member
sasdaman - 4/24/2009 5:10:21 PM
   
RE:Addition transformation expressions for search results
Hi Petr,

Thanks for the response. I can see 1,2 & 4 are covered. Yet again this products ceases to amaze me with the functionality out-of-the-box.

Well done.

All the best,

Sahus Pilwal