Is it possible to use the umbraco library inside a template? Options
reneg
Posted: Thursday, March 13, 2008 4:55:41 PM

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?
neehouse
Posted: Thursday, March 13, 2008 9:09:44 PM

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 •
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.