We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12147
    • 182 Posts
    I’ve got this in the head:
    <body id="[*body_cols*]" class="[*body_class*]">

    I "created" the TVs with Editor:None. When I apply the TVs to a page, it displays broken in Preview, and View Source reveals this:
    <body id=" threeCol" class="volunteer">

    Can someone tell me where this space between id=" and threeCol is coming from?

    Meanwhile I’ve just created two templates (not a huge site) but really curious to know...

    Thanks!
    smiley
      • 3749
      • 24,544 Posts
      Quote from: wlhh at May 02, 2010, 02:55 PM

      I’ve got this in the head:
      <body id="[*body_cols*]" class="[*body_class*]">

      I "created" the TVs with Editor:None. When I apply the TVs to a page, it displays broken in Preview, and View Source reveals this:
      <body id=" threeCol" class="volunteer">

      Can someone tell me where this space between id=" and threeCol is coming from?

      I imagine you’ve tried editing the TV, pressing the home key, and deleting the first few characters, then re-entering them.

      Have you looked at that entry in the DB?
        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
        • 12147
        • 182 Posts
        Well, looks like it’s just me being careless, actually. I looked in the db, and realized that I’d included a space before and after the pipes when I created the TV (my print background coming through) so this must have been where the spaces were coming from - it was just doing as told. Meanwhile I made two templates, but now I know. rolleyes

        Thanks very much for your help!
        smiley