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

    let’s say i want to apply a css-stylesheet to most of my pages via TV, but there would be some pages i don’t want that stylesheet...i thought it would be possible to set the css-call as the default value of the TV and delete that TV-value for the few pages that don’t need that stylesheet applied to. i found out, that i can’t delete that default TV-value completely for one page, but i could change the default value for certain pages...am i right, is it the wrong approach, and how could i manage to do something like that (leave the TV-Value for some pages blank, without having to copy and paste the value to all the pages i want to have the call assigned to) ?

    you know what i mean rolleyes ?!

    thank you & cheers, j
      • 7231
      • 4,205 Posts
      Put the CSS call in a chunk, then use a checkbox TV with a snippet to add the CSS or not. There is an old snippet named TV Conditional that will help with this.
        [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't know what it is.
        Do you, Mr. Jones? - [bob dylan]
        • 26931
        • 2,314 Posts
        Hi

        thank you! i’ll do that.

        j
          • 26931
          • 2,314 Posts
          Hi dev_cw!

          great! thanx smiley it worked!

          j