We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 22967
    • 26 Posts
    Hai Guys,

    Do not know if this was earlier posted yes or no. Did search the forum and saw some asking for it.

    I had really the need to call the [+longtitle+] in several cases. Therefor I added this function to the NewsListing snippet.

    For me it is working like a bomb. Hope you can enjoy it too.

    Cheers Paul

    • You should be able to call longtitle via [*longtitle*]. Glad it’s working for you!
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 22967
        • 26 Posts
        Hai Ryan,

        That is true but using [*longtitle*] gave me 1 longtitle for every post listed. So now I get their unique longtile by ID calling [+longtitle+] in template.
          • 6726
          • 7,075 Posts
          Thanks p2bee, I’ll read your modifications and try to understand how to proceed to add other variables smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 18397
            • 3,250 Posts
            Thanks Paul, your code changes are now part of the default NewsListing snippet which can be found here:

            http://modxcms.com/forums/index.php/topic,1235.0.html