Differnet anycontent in different categories Differnet anycontent in different categories
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Differnet anycontent in different categories

Started by blacksource, December 15, 2006, 10:51:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

blacksource

Hi,
I searched through the forums but didn't find solution for this problem.
Is it possible to have different anycontent tables in different categories? I mean for example like one Welcome message on main page (no problem) but when you go to a category I'd like to have there other anycontent table with some description of that category and albums under it.
Is this possible?
Thanks for answers.

blacksource

Hmm, I looked into it and I think I said it wrong, I'm Sorry.

So once more and better. I would like to have anycontent table in album list and many different depending on category.
For example: One catefory called "China 2005" and after you click on it to see different albums like "landscape/animals/etc." and above it I would like to have anycontant table with a short description of my travelling.
I hope I get an answer, thanks.

Joachim Müller

As you can use PHP code in anycontent.php, you can savely add some switches to it that make content only visible if certain conditions are met (like the users browsing category X). Sample code would be something like this:<?php
if ($cat == 3) {
  print 
'Some text that explains what you can see in category 3';
} elseif (
$cat == 5) {
  print 
'Some text that explains what you can see in category 5';
} elseif (
$cat == 36) {
  print 
'Some text that explains what you can see in category 36';

?>


However, for your purposes I recommend using the MiniCMS plugin, which is much easier to maintain and can do many things more.

blacksource

Thank You a lot  :-*
I installed that great plugin and it does right what I was looking for  ;)