We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48625
    • 4 Posts
    riccardo.decontardi Reply #1, 9 years, 8 months ago
    Hi I am taking my first steps in the world of Modx Revolution!!
    I have a question about the Wayfinder plugin configuration:
    I have installed it and tried to use it inside a template:

    [[Wayfinder? &startId=`0`&level=`3`]]

    My page structure is like this

    Home
    |
    +-page 1
    | |
    | +- page 11
    |
    +-page 2

    As far as I can see the URLs are rendered this way:


    modx.test1/
    |
    +-modx.test1/page-1/
    | |
    | +- modx.test1/page-1/page-11.html
    |
    +-modx.test1/page-2.html

    that is: the leaves have the .html suffix, while intermediate pages don't.

    My question: why?? is it possible to avoid this (by the way: the pages wihout the .html are unstyled :S )

    I haven't done peculiar configurations;everything is as default...am I missing something?

    Thank you for your support

    This question has been answered by sottwell. See the first response.

    • Those are called "container" resources since they have children, and they are ended with a / by default. You can confgure this behavior in the System Settings.

      In the Friendly URLs section of System Settings, it's the 'container_suffix' setting.

      As far as styling goes, that's up to you. Wayfinder by default generates a simple unordered list. MODX does not interfere with your CSS in any way.

        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
        • 22840
        • 1,572 Posts
        (by the way: the pages wihout the .html are unstyled :S

        Thats because you have linked to your CSS files relative, add the below before the closing <head> in your template .

        <base href="[[!++site_url]]">
          • 48625
          • 4 Posts
          riccardo.decontardi Reply #4, 9 years, 8 months ago
          Quote from: sottwell at Aug 20, 2014, 11:12 AM

          In the Friendly URLs section of System Settings, it's the 'container_suffix' setting.
          You are right! Thank you! But now some other questions arise (Maybe my questions seem silly...):

          1. Is this the correct way to do things? I mean, nesting the pages as I've done? Please consider that I work with TYPO3 where this is the usual way to do hierarchical menus
          2. what if I want every url to end with / instead of .html?
            • 48625
            • 4 Posts
            riccardo.decontardi Reply #5, 9 years, 8 months ago
            Quote from: paulp at Aug 20, 2014, 11:36 AM
            (by the way: the pages wihout the .html are unstyled :S

            Thats because you have linked to your CSS files relative, add the below before the closing in your template .

            <base href="[[!++site_url]]">

            Yes, correct. Is it wrong to add the base tag?
            • discuss.answer
              Go to the Content -> Content Types menu. There you can see all of the provided content types and their extensions. The default for the HTML type is .html, but you can change that to anything you want.
                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
                • 48625
                • 4 Posts
                riccardo.decontardi Reply #7, 9 years, 8 months ago
                Quote from: sottwell at Aug 20, 2014, 01:13 PM
                Go to the Content -> Content Types menu. There you can see all of the provided content types and their extensions. The default for the HTML type is .html, but you can change that to anything you want.

                Again, I must thank you for your quick and helpful answer.. This seems to me a cleaner solution than modifying the 'container_suffix' setting.

                Now everything works fine smiley