We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10076
    • 1,024 Posts
    Using Ditto 2.0.2 on MODX 0.9.6 XAMPP with FURL.

    Links of documents from within hidden containers do appear however the link returns an unstyled page.
    The Page source shows the links to the stylesheets and all. Documents (or containers) that are directly in the root of the doc tree do return a styled page. What am I missing?

    Anyway here’s my call:

    [!Ditto?parents=`2`&depth=`3`&element=`span` &tpl=`itemTpl` &hideFolders=`0` &sortBy=`pagetitle` &sortDir=`ASC` &display=`all`&tagDelimiter=`,` &tagData=`pageKeywords` &tagMode=`onlyTags` &tags=`Food` &debug=`1`!]
    


    I have renamed the the debug.html to xml

    update: when i change the template used by the pages/documents returned through the ditto link, it does open a styled page. I do not get through the logic here.

    SOLVED:

    I did not place the
     <base href="[(site_url)]"/>
    on the correct place.
    I placed it after the calls to the stylesheets, changed that and all is okay.

    I must admit that I do not really understand why that does not bother Wayfinder while Ditto is affected.
      • 18397
      • 3,250 Posts
      Could you please provide the contents of the chunk itemTpl. Thanks.
        • 10076
        • 1,024 Posts
        content is:

        <h3><li><a  href="[~[+id+]~]" title="[+pagetitle+]">[+pagetitle+]</a></li>[+link+]</h3>
          • 25663 MODX Staff
          • 12,272 Posts
          Why are you putting an LI inside an H3 element?
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 10076
            • 1,024 Posts
            ehhh, just took it out. To be honest knowing little about styling lists and many other things I do many things by trying not by understanding undecided (Actually I have been trying for 2 full days to figure out why the link rendered unstyled and the <li> was something I tried but forgot to delete).