We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6739
    • 15 Posts
    davidsiudmak Reply #1, 13 years ago
    I'm not sure if I'm asking this the right way, so forgive me. I'm trying to find a way to add a sidebar item to different pages on the site I'm working on. I was looking at the @Document TV function but it's not giving me any luck. Does anyone know a surefire way to get it to work, preferably by just adding the ID# of the sidebar item doc I want added to the page. Any help would be appreciated.

    Thanks,
    Dave
      • 10484
      • 32 Posts
      Depending on where you have you sidebar items created (chunks or individual docs), I would simply create a checkbox or multi-select list TV with all of your sidebar items listed. You could then use Ditto or whatever other snippet to display the items listed. This way you could select sidebar items specifically when editing each page. Don't forget to set the output to use comma-delimited separation so your snippet can select the appropriate items. I'd also set a default value if there is a recurring theme for the majority of pages.
        Garret Overstreet
        Business and Marketing Consultant
        • 13428 ☆ A M B ☆
        • 1,031 Posts
        Maybe this multiTV example one is a bit more comfortable: https://github.com/Jako/multiTV/blob/master/EXAMPLES.md