We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9207 ☆ A M B ☆
    • 2,475 Posts
    I haven't often paid attention to the "Link Attributes" field on pages... but I wanted to peg certain pages with a query string so that I can earmark certain pages for caching (using CloudFlare), e.g. http://mysite.com/some/page?cache_me=1

    My understanding was that adding "cache_me=1" as the Link Attributes for a given page would cause the ~ links to include that data in the links, e.g. if my page ID were 123, then
    [[~123]]
    would produce a link like http://mysite.com/some/page?cache_me=1

    This doesn't seem to be the case. Is there a way to do this? Is it a product of link_tag_scheme or?? I can of course modify each link individually e.g.
    [[~123? &cache_me=`1`]]
    but that isn't a global change...

    Many thanks!
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      No, the link_attributes field is just for adding tag attributes to link tags, like target="_blank" (which is specifically why I developed that in the first place). I don't know of any way to automate setting a query string.

        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