mask

Anonymous
I've set up my new site with the new GL 1.3.7. and encountered an interesting problem: i made some custom, normal blocks to display under certain categories. Which functions nicely. But if i view an full article, which is placed under the same category, the block is no longer displayed. I would need to see the block as long as information of the same category is on display. Another nice feature would be to display the same block in more than one but not all categories.thanks in advance,martin

Status: offline

richschmidt

Forum User
Junior
Registered: 11/12/02
Posts: 32
Anybody who knows anything have help for this guy? I'm planning a site that would have a similar feature (blocks only in certain categories), so I'm very interested in your responses...

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
The problem is that static pages don't tie in with Geeklog's topic system. However, over on geeklog.info, someone found a surprisingly simple solution: Just append &topic=YourTopic to the URL of your static page. bye, Dirk

Status: offline

richschmidt

Forum User
Junior
Registered: 11/12/02
Posts: 32
Um... it's not my issue, so I could be wrong but... They didn't seem to be asking about staticpages. They were asking about "full articles," like when you click "read more," I assume. Does that make sense?

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
This appears to be necessary because GL will show you the Whats related and Story Options blocks. You can modify article.php to not show those two story blocks and then show you the right blocks. The Right blocks are displayed by the COM_siteFooter() and by default will not show the right blocks. Calling it as COM_siteFooter(true) will. But as a test, I modified the COM_siteFooter call to be COM_siteFooter(true) and they show but now I have another column beside the What's Related blocks. Modifying the story template or commenting out the calls to these functions in article.php would work. Alternatively, if you only want this appearance for a specific topic - add the logic to only do this for that topicid. Blaine
Geeklog components by PortalParts -- www.portalparts.com