Posted on: 01/12/03 07:19pm
By: Anonymous (mask)
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
Troubles with Categories, Blocks and displaying articles
Posted on: 01/13/03 04:58pm
By: richschmidt
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...
Troubles with Categories, Blocks and displaying articles
Posted on: 01/13/03 05:32pm
By: Dirk
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
Troubles with Categories, Blocks and displaying articles
Posted on: 01/21/03 06:01pm
By: richschmidt
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?
Troubles with Categories, Blocks and displaying articles
Posted on: 01/22/03 09:33am
By: Blaine
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