Developer forum

Forum » Templates » page name

Reply

Hi!

 

We have a page structure like this:

 

page1

    page2

        page3

            page4

 

is there any way we can get the page name( the TemplateParagraphHeader) of, say page 2 from within page4?

 

We want to use the topage name (page2) as a second title in the following subpages without having to setup dummy paragraphs everywhere to store it (there will be a lot of pages!)

 

cheers

-jan

 

 

 

 

 

 


Replies

 
Reply

Hi Jan

 

Try this one @DwTopPageName

I'm not sure this does the trick, but maybe.

 

// Sebastian

 
Reply

hi!

 

The tag !--@DwTopPageName-- didn't work, however, the page displays a ledgend, so I'll try something like this instead:

 

<script language="javascript">

var text=document.getElementById("ledgend").getElementsByTagName('a')[1].innerHTML;

.

.

.

</script>

 

-jan

 

 

You must be logged in to post in the forum