Jump to:

3393 Posts in 976 Topics by 852 members

Template Questions

SilverStripe Forums » Template Questions » Place image in sidebar

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 610 Views
  • jseth
    Avatar
    Community Member
    98 Posts

    Place image in sidebar Link to this post

    I've been searching for this topic and have found some answers, but not quite what I need. I have 16 pages out of all the pages in my site in which I need to place an image (a different one for each of the 16 pages) in the sidebar area. I have already created a pgmpage page type for these pages to differentiate them from the regular pages. I've tried creating a "sidebar" page and typing "<div id="Sidebar" class="typography">$Page(SidebarPage).Content</div> in my Page.ss code and it works, but it places the same image in every page. Close, but not really. I seem to not know enough about the coding to make the sidebar only appear on certain pages, then assign different images to each sidebar on each page. Would someone know how to do this? Thanks.

    610 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.