Welcome to Geeklog, Anonymous Tuesday, September 10 2024 @ 04:15 am EDT
Geeklog Forums
Troubles with Categories, Blocks and displaying articles
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
9
9
Quote
Status: offline
richschmidt
Forum User
Junior
Registered: 11/12/02
Posts: 32
Location:Valparaiso, Indiana
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...
4
8
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
11
9
Quote
Status: offline
richschmidt
Forum User
Junior
Registered: 11/12/02
Posts: 32
Location:Valparaiso, Indiana
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?
9
8
Quote
Status: offline
Blaine
Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
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
Geeklog components by PortalParts -- www.portalparts.com
10
8
Quote
All times are EDT. The time is now 04:15 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content