Add functions to Velocity service available in templates as $service
/**
* Find approved last version structured page field content by friendlyURL
* and current language.
* @param path - page friendlyURL.
* @param field - structured page field.
* @return found content.
*/
String findStructureContent(String path, String field);
/**
* Find approved last version structured page field content by friendlyURL
* and specified language.
* @param path - page friendlyURL.
* @param field - structured page field.
* @param languageCode - two char language code. For example "ru".
* @return found content.
*/
String findStructureContent(String path, String field, String languageCode);
Original issue reported on code.google.com by kinyelo@gmail.com on 16 Mar 2010 at 9:51
Original issue reported on code.google.com by
kinyelo@gmail.com
on 16 Mar 2010 at 9:51