We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    In my previous site which I am currently rebuilding in Modx I could set the page title as distinct from the file name.

    IE <title>Aquaculture Council of Western Australia - Agri-chemical Use and Aquaculture</title>

    file name "spray_drift"

    However in Modx what goes in the title field in the document setting gets used for both.

    Is there anyway I could distinguish them?

    Should I use a TV and modify the template?



    OK, instead of asking the question, why don’t I try this?

    I did, it works.

    Thanks to me for all my help. grin

    If anyone wants to know exactly what I did just ask.

      Content Creator and Copywriter
    • For one thing, there is no "file name" for documents; they’re all in the database! As you have apparently discovered, you can use any of the document fields in your HTML, [*longtitle*] is probably what you were looking for, since that is intended for a longer title than the page title. The page title is what you see in the Document Tree. Then there is the menutitle, which is used by default in the Wayfinder menu snippet.
        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
        • 18367
        • 834 Posts
        Sorry Susan,

        for file name I should have said document name. (Old habits.)

        Actually I’m not sure if the long title is what I was looking for.

        Anyway, as I said I did figure out how to get what I wanted.

        I created a TV simply called title.

        and edited my main template to

        <title>"base name" - [*title*]</title>

        There are several reasons I wanted to do this but the main one was :To have a more descriptive title at the top of the browser.


          Content Creator and Copywriter
          • 7231
          • 4,205 Posts
          I often use this for my titles:
          <title>[(site_name)] | [*longtitle*]</title>


          The site name is set in the site Configurations section. And Long Title can the be personalized for each page.
            [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

            Something is happening here, but you don&#39;t know what it is.
            Do you, Mr. Jones? - [bob dylan]
            • 18367
            • 834 Posts
            Ah cool, always an elegant solution. cool
              Content Creator and Copywriter