Pages: [1]
Author Topic: GAMELISTCAT is not used?  (Read 708 times)
Customers
Full Member
*

Karma: 0
Posts: 67


Email
on: Sep 28, 11, 08:08 PM

Sergey,
I see GAMELISTCAT in the blocks list but there is no !GAMELISTCAT! used anywhere. Instead, this block is configured to use block_gamelist and therefore uses !GAMELIST!

Is this correct?

I'm trying to set up TWO blocks on the category page and unfortunately if I add !GAMELIST! and !GAMELISTCAT! it just duplicates the same content even though they are configured differently.

Thanks for your help. This is a great game CMS!
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #1 on: Sep 29, 11, 01:41 AM

block_gamelist.php uses GAMELIST's settings for the home page and GAMELISTCAT's settings for a category page.

in other words, GAMELISTCAT and GAMELIST are configured to use the same php script mentioned above... That's right, you can use the same php script in 2 or more blocks if that's necessary and if you don't affaid to get lost in definitions.
Logged
Customers
Full Member
*

Karma: 0
Posts: 67


Email
Reply #2 on: Sep 30, 11, 09:19 AM

OK I understand this, but the category page does not use !GAMELISTCAT!, it uses !GAMELIST! as well. If I add !GAMELISTCAT! it doesn't work.

What's the best way I could add two blocks:
!GAMELIST!
!GAMELISTCAT!

One would be configured for "newest" and the other for "most played". Do I need to copy block_gamelist.php and edit it so it's all unique for the category page?
Logged
Administrator
Sr. Member
*

Karma: 7
Posts: 486


Email
Reply #3 on: Oct 01, 11, 01:18 AM

yes, you should copy, edit and use a new copy of that php file. Look a its code and you'll see why category page does call GAMELIST, and not GAMELISTCAT... that was a bad idea to use the same php script in two blocks though.
Logged
Pages: [1]
 
Jump to: