We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 9995
    • 1,613 Posts
    I don't use this MM rules very much, what is the best way to deal with your template.

    When i have a extra tab (backend) only on the homepage with some TV's into it to show somekind of slidingbanner, do i have to use phx in the template to show the banner and style or is there a other way arround?

    (home has the same Template as other pages) [ed. note: fourroses666 last edited this post 11 years, 7 months ago.]
      Evolution user, I like the back-end speed and simplicity smiley
      • 19369
      • 1,098 Posts
      I don't understand what's the relationship between PHX (Front End) and MM (Back End). Could you be more specific?
      • The extra tab in the back-end has nothing at all to do with the front-end. I would use a snippet to output your banner TV content only if the resource is the homepage.
          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
          • 9995
          • 1,613 Posts
          Hmm, indeed a snippet will be nice, any idea how the snippet would look like Susan?


          @ Microcipcip, when I set the rules of MM to only show banner image TV's on the homepage and hidden for other resources (back-end), and the template (front-end) source has some <div> and other code it will show that code on every page. I need to hide that code on other pages.

          I can use PHx or [ * id = `1` : then : is = ` bannerchunky `: else = ` ` * ] but wonder if there are other or better ways to deal with that.


          I really like the way to make new tabs to just simply add code like this to the mm_rules / mm_demo_rules
          // make tab for managing footer content
          mm_createTab('Pizza', 'pizzatest');
          mm_moveFieldsToTab('pizza1', 'pizzatest');
          mm_moveFieldsToTab('pizza2', 'pizzatest');

            Evolution user, I like the back-end speed and simplicity smiley
            • 19369
            • 1,098 Posts
            I'd simply use PHx as you suggested. I don't see anything wrong with that.