Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Portal Page Display Current Document Name View modes: 
User avatar
Member
Member
matt.berg-marketnet - 3/11/2010 12:10:18 PM
   
Portal Page Display Current Document Name
I have a portal page that I would like to output the current document name. For example:

<div class="title"><h3>{%currentdocument.documentname%}</h3></div>

I know I can use a static text web part on the page, and get similar results, but because of inherited content I do want to go that route.

Any ideas?

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 3/22/2010 2:43:39 PM
   
RE:Portal Page Display Current Document Name
Hello,

As far as I can see the Static HTML webpart or Editable text webpart is the best way here. Or am I missing something? If so, please let us know where exactly you'd like to show this HTML code?

Best regards
Ondrej Vasil

User avatar
Member
Member
matt.berg-marketnet - 3/22/2010 2:55:25 PM
   
RE:Portal Page Display Current Document Name
Through help from your support team, I was able to get this to work:

<%= CMS.CMSHelper.CMSContext.CurrentDocument.DocumentName.ToString() %>