 Rank: Enthusiast
Joined: 1/24/2008 Posts: 27 Location: Fuglefjord, Faroe Islands
|
I just found out I could use the RenderTemplate function in my XSLT, and thereby avoid having HTML markup mixed with XSLT, as I can move my HTML markup to a template, and let the XSLT call the template on the elements it should render.
However, when I had my HTML markup inside my XSLT, I was using some of the Umbraco library functions such as NiceUrl, FormatDateTime and others. Is it possible for me to use these functions in my template instead of the XSLT?
If not, are there any way I can pre-process the data that the template uses? Such as formatting dates and times so that my template will show it in the way I want?
How are you guys doings this? Are you just mixing your HTML and XSLT?
|
 Rank: Umbracoholic
Joined: 7/20/2006 Posts: 1,074 Location: Charleston, West Virginia, United States
|
I beleive you can have a nested macro. As for links, you can use {localLink:xxxx} instead of NiceUrl. Be forewarned. Render Template does not handle UserControl type macros.
• 2007/2008 MVP • 2008/2009 MVP • Certified • Licensing • Support • Development • Hosting •
|