HTML Module - How to disable sidebar from Static HTML pages?
Dozza
Joined: 2007-08-28
Posts: 112 |
Posted: Tue, 2010-03-02 12:14 |
I set this matrix G2 site up few years ago and have only recently been asked to update the site by adding a few static HTML pages. After getting my head around G2 again, I've installed/implemented the HTML module (http://codex.gallery2.org/Gallery2:Modules:html), including the URL ReWrite, which has allowed me to create 3 static html pages as follows (all available from the custom top horizontal navbar) In a nutshell, I want to remove the 'checkout/Add to Cart' block from the sidebar (and ideally have no sidebar at all on the static html pages). To get to the stage I am at, I've installed/activated html module, activated the URL ReWrites for HTML module. I then added the HTML block to the 'clients' album page. This added and made visible the three links to 'MyPage1....etc. at the bottom of the album page, which has allowed me to make a note of their URLs. However, I didn't want the links at the bottom of album pages, so i've edited a local copy of modules/html/templates/blocks/local/HtmlBlock.tpl and commented out everything so these 3 links do not appear at all. I've then updated the top horizontal nav (which is in /themes/matrix/templates/local/theme.tpl) to include directlinks to the 3 static html pages mentioned above. So far so good. But I'd really like to remove the sidebar block displaying the 'cart' feature as it is irrelevant on these 3 pages (but needs to be there for all the client albums, which the end users can order from). But I can't work out how to disable a sidebar block from a static html page! In Admin>Themes, the 'shopping cart info' block is set to show in the sidebar as the default setting for Matrix theme, which it needs to be for some albums. I'm aware that I can override this at the album level, but which album are the 'static html module' pages within??? Really appreciate some help here. G2 System Info |
|