Board index ‹ Themes ‹ Different designs for sidebar blocks
2 posts
• Page 1 of 1
Different designs for sidebar blocksAre there any way to detect in which sidebar block must be output'ed (inside theme)? For strange reason I want to get differently decorated blocks in left and right sidebar, but - see only one sidebar.tpl
Quis custodiet ipsos custodes?
Re: Different designs for sidebar blocksIn templates/default/index.tpl, you can see an example like this:
So, using css, you can style each sidebar differently with #serendipityLeftSideBar, and #serendipityRightSideBar.... Each of the above will use sidebar.tpl from your template, if it exists, or /templates/default/sidebar.tpl if it does not. If you want to call a unique smarty tpl, you can do that like this:
2 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: Google [Bot] and 0 guests |