We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37572
    • 11 Posts
    Someone please help.

    I have recently had a designer work on the my site and he installed mod x.

    however i have noticed a issue with it!

    for some reason when i replaced the text in the introbox field and saved on the mod x manager when i now view the site i cant see what i have typed into that field !!

    any ideas anyone

    Site : http://www.secondhand-bmw.co.uk/parts

    There is ment to be text in the gray field in the middle of the page?
      • 3749
      • 24,544 Posts
      Paste the code that you're referring to. Surround it with tags so we can see it -- use the code button on the toolbar.

        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
        • 37572
        • 11 Posts
        This?

        [/co<p>
        	[*<span data-scayt_word="introtext" data-scaytid="1">introtext</span>*]</p>
        <div id="partsbox">
        	 </div>de]
          • 1343 ☆ A M B ☆
          • 2,213 Posts
          The code you pasted above would never work unless you had a TV named "<span data-scayt_word="introtext" data-scaytid="1">introtext</span>"

          I suspect you want:
          <p>
              <span data-scayt_word="[*introtext*]" data-scaytid="1">introtext</span></p>
          <div id="partsbox">
               </div>

            Patrick | Server Wrangler
            About Me: Website | Tweets |  MODX Hosting
            • 3749
            • 24,544 Posts
            The only thing you can put inside a tag like that is the name of a content field (e.g. introtext, pagetitle, etc.) or the name of a Template Variable.

            Do you know what was there originally?

            To change what gets output there, you need to edit the content field or the TV or change what's outside of the tag.

            I think what you probably want is this:

            <p><span data-scayt_word="introtext" data-scaytid="1">[*introtext*]</span></p>
            

            [ed. note: BobRay last edited this post 14 years, 10 months ago.]
              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
              • 37572
              • 11 Posts
              guys,

              i have tried both of your suggestion but the grey box (i presume thats what your calling the tv?)
              still appears empty and not what i have written in the intro box field of the mod x manager!
                • 37572
                • 11 Posts
                Quote from: BobRay at Nov 22, 2011, 05:37 PM
                The only thing you can put inside a tag like that is the name of a content field (e.g. introtext, pagetitle, etc.) or the name of a Template Variable.

                Do you know what was there originally?

                originally it was just text that i deleted within the mod x manager in the intro field and replaced with my own txt

                To change what get's output there, you need to edit the content field or the TV or change what's outside of the tag.

                I think what you probably want is this:

                <p><span data-scayt_word="introtext" data-scaytid="1">[*introtext*]</span></p>
                

                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  <p>
                      <span data-scayt_word="[*introtext*]" data-scaytid="1">introtext</span></p>
                  <div id="partsbox">


                  That line of code is only for the page heading, which should be "Parts". So what you should have in the resource's 'introtext' fields is just Parts. The grey area is in this line of code and most probably meant to be taken from the resource's main Content field.
                  <div id="partsbox">
                       </div>


                  You cannot change the actual HTML and MODx tags of those HTML elements from the resource's editing fields, that is in the template. The template probably looks like this:

                  <p>
                      <span data-scayt_word="[*introtext*]" data-scaytid="1">[*introtext*]</span></p>
                  <div id="partsbox">[*content*]
                       </div>

                  So what you put in the 'summary (introtext)' field when editing the resource will appear where the [*introtext*] tag appears, and the resource's content will appear where the [*content*] tag appears. Usually you don't want to mess with the template; just put the heading you want in the summary or introtext field, and put the content the page should be showing in the grey section in the main content field. [ed. note: sottwell last edited this post 14 years, 10 months ago.]
                    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
                    • 37572
                    • 11 Posts
                    is anyone able to give me some help with the issue if i give them access to the content manager?
                      • 1343 ☆ A M B ☆
                      • 2,213 Posts
                      I don't mind taking a look, can you send the login details to patrick at skytoaster.com.
                        Patrick | Server Wrangler
                        About Me: Website | Tweets |  MODX Hosting