We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7690
    • 166 Posts
    I am a real noob on ModX.
    So i need ur guys help.

    I have 2 questions.
    My site: www.wokhouse.nl/andy/port

    I have tabs. But i want when you click on each tab the top image (The building with the sun) to change and also the tab color.
    How do i do this?
    Do i have to create a new template for every new page?

    And my 2nd question is.
    I have 2 menu’s now. The top menu and the Right menu.
    I want that when you click on the top menu the right menu changes to the menu of that page.
    Like when you click on Portfolio on the top. The right menu changes in: Webdesign, Illustrations etc etc.
    How do i do this?

    I have downloaded this template: Andreas02
    http://modxcms.com/forums/index.php/topic,1284.0.html
    • You can use TVs to do this. If you are using background images and colors with CSS, put the changing parts in a style block in the head of your template using the TV tags as variables for the values. Then edit the TV for each document. First, of course, you will need to learn how to use TVs!

      http://modxcms.com/template-variables.html

      Here is an example of one template where I change colors depending on the section of the site:

      <style type="text/css" title="currentStyle" media="screen">
      body{
      background:#[*Background*];
      }
      #banner3 li.here, #banner3 a:hover, #headerleft span.here, #hmnTopMenu li li a:hover, #content h1.colored{
      color:#[*Background*];
      }
      </style>

      All I do in the TV for each document is specify the rgb value I want.

      I used the @INHERIT binding as the default value, then all I had to do was set the rgb value in each section folder "parent" document, and all its children automatically get the same color.
        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
        • 7690
        • 166 Posts
        hhhmm...
        i have created the TV.
        But one problem. You have selected RAW TEXT. But in version 0.9.1 it doesnt excist?
        I have edited the template.

        But i cant get the part where you change the RGB color? Where do you find that option?
        • It’s highly recommended to upgrade to 0.9.2 for security fixes and bug fixes. Raw text was added specifically so a developer can add HTML code without having it converted to html entities.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 7455
            • 2,204 Posts
            mm could you not use a textfield? is that not the same?
              follow me on twitter: @dimmy01
              • 7690
              • 166 Posts
              hhmm...i still dont have Raw Text... huh
              • Quote from: DNA at Apr 26, 2006, 04:34 PM

                hhmm...i still dont have Raw Text... huh

                Ryan was mistaken; this Raw Text option will be part of the 0.9.5 release coming soon. It did not make it into 0.9.2. Ryan apologizes for misleading you... laugh
                  • 7690
                  • 166 Posts
                  oh tongue
                  but how do i fix the problem than?

                  and can someone answer my 2nd question.
                  if i make a folder with doc’s in it. The docs dont show up in the main menu, only in the right menu. But how do i make it that the right menu changes when i click on the main menu?
                    • 7455
                    • 2,204 Posts
                    Quote from: DNA at Apr 26, 2006, 08:47 PM

                    oh tongue
                    but how do i fix the problem than?

                    just use the textfield or text, it does the same thing as far as I can see
                      follow me on twitter: @dimmy01
                      • 7690
                      • 166 Posts
                      but where can i set the RGB color than?
                      i dont see the option in the edit section of a document