We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28107
    • 230 Posts
    Our customers site has the following structure
    ..
    ->Projects
      -->Project A  [FirstChildRedirect]
         -->Page 1  [UltimateParent]
         -->Page 2  [UltimateParent]
         -->Page 3  [UltimateParent]
         -->Page ..
      -->Project B  [FirstChildRedirect]
         -->Page 1  [UltimateParent]
         -->Page 2  [UltimateParent]
         -->Page 3  [UltimateParent]
         -->Page ..
    ..
    ->Chronlogical List
      --> Year 2008
          Link to Project A
          ...
      --> Year 2007
          Link to Project B
          ...
    ..


    Every Page 1, 2 etc has a [UltimateParent] call which jumps back to Projects.
    So far so good..
    Now there is a chronological list. Our customer wants if a user clicks from a link in this list to a specific project, the link back points to the chronological list.

    I’ve found a snippet (swapjump or so) that swaps a chunk depending on the referrer. This works as long as the user views only the first page of the specific project. If he goes to page two, the referrer changes and the way back is lost.

    I do not want to duplicate the whole Projects as the customer intended.

    Any idea are desperatly appreciated. Maybe seeting a cookie?
      CONIN Werbeagentur . Köln
      http://www.conin.de
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      How about the Breadcrumbs snippet? It can be configured to not show the Home page in its path.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28107
        • 230 Posts
        Nope, the customer wants - simply said, two different links under one link.

        If coming from projects the link should point to projects.
        If coming from that chronological list the link should point to the list.

        The breadcrums were first used - but the customer didn’t liked it ...

        I liked the idea to read the referrer and to use it to decide which chunk (with different link) is used.
        But as I said, that works only for the first reached project page.

        The only possibilties I can think of is, duplicating the Project tree (and I really don’t like that) or do something like a cookie, that stores the referrer and to decide upon tat where the user comes from.

        Any other ideas are really appreciated .. .. wink
          CONIN Werbeagentur . Köln
          http://www.conin.de