Welcome to Geeklog, Anonymous Wednesday, January 15 2025 @ 10:21 am EST

Geeklog Forums

Bug or Feature - Url Rewrite and Blocks


Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hi,

I searched the forum, but couldn´t seem to find the answer to this one.

There are two variables, one can use to call the story from the index page.

article_url and the old way using story_id

If you use article_url and use url rewrite this results in dropping the assigned blocks of the topic.

If you use the story_id as a variable in article.php it works as designed.

Wouldn´t this qualify as a bug and should the story whether it´s a url rewrite or not, pick up the Topic ID to identify the blocks.

Hope anyone can shed some light on this and if it qualifies as a bug, I will file it, but I don´t have a solution Mr. Green

Boris
Vanrillaer.com - our Family Portal
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Friendly BUMP.

Anyone ? Mr. Green


Vanrillaer.com - our Family Portal
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Filled a BUG report here.

Quote by knuff:Initially posted at the GL Forums:

http://www.geeklog.net/forum/viewtopic.php?forum=3&showtopic=50476

Detailed description:
---------------------
Use URL Rewrite On.

Create a new topic X
Assign Block Y to topic X
Block Y will only show up in topic X

Create a story Z in topic X

Display story Z without URL rewrite using
../article.php?story=story_Z

Now block X will show up correctly.

Display story Z with URL rewrite

../article.php/story_Z

Now block X will not be shown and the default blocks of the mainpage will be displayed.

Cause:
------

The template system offers both article_url and story_id.
If article_url is used the Topic ID variable gets lost and GL does not know to which topic the story belongs.

Solution:
---------

Good question ;-)
I think the URL module should include an additional query to determine the Topic ID when it picks up the Story.

Not really sure where this should be done.


Anyone a work around ?
Vanrillaer.com - our Family Portal
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Bump?? Anyone?? Now I found out why my What's Related blocks are gone I also found out that it is not possible to make a search engine friendly layout because of this bug.

How can I make a search engine friendly linked story title in my storytext.html AND have the What's Related block??
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
I believe I have to apologize, it seems to be theme specific. If I use the Proff. theme it works fine (except that I don't want that theme..)
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

trinity

Forum User
Regular Poster
Registered: 01/30/05
Posts: 80
The theme your useing probley has not been updated for the most recent version of geeklog. Unfortunetly the developers of geeklog do not maintain other peoples themes. Only the profesional theme is supported
glFusion - Technology Fused with Style - www.gllabs.org
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
The theme I use is a custom theme, I used the Professional theme as a start. The funny thing is that the What's Related Blocks and Story Options block are missing in my template (look here). If I use another theme the blocks do appear.....

I'm pretty sure that my theme is OK, apart from the Javascript for the banners it's valid HTML and CSS, quite clean and fast and I don't seem to miss any variables tags.

So what's blocking these blocks???
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by beewee: The funny thing is that the What's Related Blocks and Story Options block are missing in my template

Those aren't real blocks but only show up if you have either the {whats_related} and {story_options} or the {whats_related_story_options} (for both of them on top of each other) variables in your article.thtml

bye, Dirk
 Quote

Status: offline

beewee

Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
Ah, thats where I had to look. Thnx Dirk!

BTW, I decide not to use these, but to put a textlink to the topic on the bottom of each story instead, better for the search engines.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
 Quote

Status: offline

knuff

Forum User
Full Member
Registered: 12/17/04
Posts: 340
Location:Sweden
Hmmm, just to confirm that I think we are talking two different things here and the bug I described still exists, even in the professional theme.

Beewee was talking about the what´s related, and I was talking about real GL blocks.

Best Regards,
Boris

Vanrillaer.com - our Family Portal
 Quote

All times are EST. The time is now 10:21 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