We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 25551 ☆ A M B ☆
    • 1,231 Posts
    I need some help... i’m kinda stuck with what i’m trying to achieve.

    I would like a home page that has boxes for each news article but i do not want them showing up on any other page. What i try just isn’t doing what i want it to... they keep showing up on other pages.

    See the diagram... this is what i am trying to achieve for my home page.

    When i create a chuck and put it in the template {{news}} it’s showing up on every page... my chunk code is

    <div id="newstop"></div>
    <div id="newsmid">

    [*content*]

    </div>
    <div id="newsbot"></div>


    the code in the template is

    <div id="content">
    {{news}}
    </div>


    the divs are holding images to create the news box... could someone explain how i can achieve my goal? Thanks!
      Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
      AugmentBLU - MODX Partner

      BLUcart - MODX Revolution E-Commerce & Shopping Cart
      • 33337
      • 3,975 Posts
      You can make 2 templates, 1 for homepage and 2nd for all other pages. Its the easiest.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Even better, make a TV with a blank default, and put your chunk tags in it for the home page.
          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
          • 25551 ☆ A M B ☆
          • 1,231 Posts
          Quote from: sottwell at Nov 06, 2007, 11:12 AM

          Even better, make a TV with a blank default, and put your chunk tags in it for the home page.

          Thanks for the ideas folks....

          I like the sound of this one. The TV screen is obviously different from the others so what options or boxes do i need to fill in?

          Do i just put a title for the TV and in the default value box have the {{news}} {{whateverelse}} options in there? Or do is there more to it than this?
            Ross Sivills - MD AugmentBLU Edinburgh, Scotland UK
            AugmentBLU - MODX Partner

            BLUcart - MODX Revolution E-Commerce & Shopping Cart
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            For such a simple TV, that’s all you would need. Leave the default value blank for this purpose, since you only want the content in one specific page and nothing at all there in all the rest of the pages. Then when you edit the page, put the chunk tags in the TV’s field.
              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