HTML Module - How to disable sidebar from Static HTML pages?

Dozza
Dozza's picture

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)
http://www.milliepilkington.co.uk/About
http://www.milliepilkington.co.uk/Testimonials
http://www.milliepilkington.co.uk/Links

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
Gallery version = 2.2.3 core 1.2.0.5
PHP version = 5.2.6 cgi
Webserver = Apache/1.3.34 Ben-SSL/1.55
Database = mysqlt 5.0.51a-log, lock.system=database
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd, jpegtran, SquareThumb
Acceleration = none, none
Operating system = Linux infong 2.4 #1 SMP Tue Dec 18 22:34:10 UTC 2007 i686 GNU/Linux
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10.4; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1
Rows in GalleryAccessMap table = 553
Rows in GalleryAccessSubscriberMap table = 7557
Rows in GalleryUser table = 14
Rows in GalleryItem table = 7554
Rows in GalleryAlbumItem table = 56
Rows in GalleryCacheMap table = 0