We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32645
    • 377 Posts
    I have a news folder/container which has several news items in them.
    There is a news listing page which lists all the news (about 10 stories), under each story is a link to the top of the document:

    <a href="#top">Top</a>
    


    However it is sometimes sending the user to the homepage, rather than to the news page. I can put in:

    <a href="[+parent+]#top">Top</a>
    


    But this only outputs the Integer ID for the parent page. I’ve looked on the documentation, but I can’t seem to find a way to put [+parent_alias+] as a placeholder?

    Is there a way to integrate the parent’s document alias as a placeholder into a hyperlink?

    Many thanks.
      • 11975
      • 2,542 Posts
      Hi,

      Try with


      <a href="[~[+parent+]~]#top">Top</a>

      :-)
        Made with MODx : [url=http://www.copadel.com]copadel, fruits et l