Microsoft Content Management Server - hi stefan

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > December 2004 > hi stefan





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author hi stefan
eswar

2004-12-29, 7:49 am

hi stefan,

can i identify a posting to which template it belongs
thanking you inadvance
eswar

Stefan [MSFT]

2004-12-29, 7:49 am

Hi Eswar,

yes this is possible.
The Posting object has a Template property that points to its template
object.
So the following code will do this:

Template t = CmsHttpContext.Current.Posting.Template;
string templatePath = t.Path;

Cheers,
Stefan.

"eswar" <iteswar@gmail.com> wrote in message
news:1104311954.171188.159700@f14g2000cwb.googlegroups.com...
> hi stefan,
>
> can i identify a posting to which template it belongs
> thanking you inadvance
> eswar
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com