How to add panel_right to a page with no side panels
Posted
#587
(In Topic #122)

Standard member

A Composr zone can have one Panel_Right and one Panel_Left. That means that in a particular Zone, every Panel_Right and every Panel_Left will be visually the same for every Page in that particular Zone. So if you have a Zone with a start page and 5 other pages, every one of those pages will have an identical Panel_Left and Panel_Right because there can only be one Panel_Left and one Panel_Right per Zone. So pages in a Zone will share a common Panel_Right and Panel_Left.
But if that's true, then how can several different Pages in the same Zone, have different Right and left side panels?
So, if I wanted my main start page to have a unique Panel_Right and Panel_Left, then I would need to create a new Zone for that unique start page?
If that's correct, then if I wanted to create a unique right panel or left panel on a page, but I didn't want the panel to be shared with any other page, then I'd just use a div to split the page into columns?
Posted

Site director

Code
{+START,IF,{$EQ,{$PAGE},page1,page2}}
...
{+END}
{+START,IF,{$EQ,{$PAGE},page3}}
...
{+END}
page1 and page2 will have something, page3 will have something else, and everywhere else will have no panel.
Or you could indeed do away with the concept of panels, and just designed a columned layout within the pages themselves. That's harder though, simply because the default theme isn't laid out like that.
Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted

Standard member

global_side_panel
panel_right
global_middle_faux
global_middle
and a few others…
If I just edit a full page and insert this code…
<div id="panel_right" class="global_side_panel" role="complementary" itemscope="itemscope" itemtype="http://schema.org/WPSideBar">
<div class="comcode_page">
right side content goes here
</div>
</div>
It does split the page into a large left side and a sidebar on the right. But is that mobile-friendly? And also, I worry that this method might actually just be splitting a middle div class (which was always intended to be a full page layout div) into two pieces, which is to say…
Code
(full page div)
(right panel div)
(end right panel div)
(end full panel div)
Code
(container)
(left big panel)
stuff
(end left big panel)
(right small panel)
small stuff
(end right small panel)
(end of container)
If the divs method is better, is there a common implementation (sort of) design template for this?
Posted

Site director

Become a fan of Composr on Facebook or add me as a friend. Add me on on Mastodon. Follow me on Minds (where I am most active). Support me on Patreon
- If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
- If so, please let others know about Composr whenever you see the opportunity or support me on Patreon.
- If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying Composr on fun personal projects.
- If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Posted

Standard member

1 guest and 0 members have just viewed this.