We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26503
    • 620 Posts
    Hi;

    I have a select box TV set up to display the page titles in a couple of different ways
    The Input option values are:

    Show Title &  Date Info==[[$ShowFullPageTitle]]||Show Title Only==[[$ShowOnlyTitle]]||Do Not Show Title==[[]]
    


    with a default of [[$ShowFullPageTitle]]
    ~ this mostly works, BUT on the pages where I want no title displayed at all, it’s showing the text of the option "Do Not Show Title" instead of nothing. I’ve tried the ’nothing’ option as:

    Do Not Show Title==
    Do Not Show Title==''
    Do Not Show Title==""
    Do Not Show Title==[]
    Do Not Show Title==[[]]
    


    Nothing seems to get the job done.
    What is the correct way to tell the TV to show nothing when this option is selected?

    Right now I have it setup to
    Do Not Show Title==[[$ShowNoTitle]]
    


    Pointing at a blank chunk - but that feels wrong somehow.

    -thanks
    -sean
      *** Not just websites, we also create signage, banners, print, trade show displays and more! ***

      Sean Kimball CLP, CLS.
      Technical Director / Sr. Developer | BigBlock Studios
      ._______________________________________________.
      Bigblock Studios http://www.bigblockstudios.ca Web site design & development.
      27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
      phone/fax: 905-426-5525
      • 3749
      • 24,544 Posts
      That’s seems fine to me, you could also create a snippet:

      Show Title & Date Info==[[$ShowFullPageTitle]]||Show Title Only==[[$ShowOnlyTitle]]||Do Not Show Title==[[ShowNoTitle]]

      <?php
      /*ShowNoTitle snippet */
      
      return "";
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting