Search for:
Sign in
Register
Menu
Articles
Questions & Answers
Download
Documentation
Support
Marketplace
Old Forums
Search:
Search text
Portal Engine
Questions on portal engine and web parts.
Version 6.x
>
Portal Engine
>
Get current page in a Page Template or Page Layout
View modes:
View mode
Threaded
Flat - newest to oldest
Flat - oldest to newest
Kentico Legend
Brenden Kehren
-
8/14/2012 4:00:09 PM
Get current page in a Page Template or Page Layout
How can I go about getting the current DocumentName from within a Page Template or a Page Layout? Tried using <%# CMSContext.CurrentDocument.DocumentName %> and it is empty.
Certified Developer 8
Jiveabillion
-
8/14/2012 4:26:55 PM
RE:Get current page in a Page Template or Page Layout
It works for me when I do it with an "=" sign
<%= CMSContext.CurrentDocument.DocumentName %>
Of course it only works when I view a page and not the template in the document root.
Kentico Legend
Brenden Kehren
-
8/14/2012 4:31:16 PM
RE:Get current page in a Page Template or Page Layout
Must be working too late on this, I forgot all about that, since its not a databound control you use = vs. #. Thanks for the reminder
Top