Author Topic: {cat_description} won't show  (Read 6294 times)

0 Members and 1 Guest are viewing this topic.

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
{cat_description} won't show
« on: May 09, 2006, 02:45:43 PM »
I have aprox. 10 categories on my site.

Each category has a unique description which I have entered in the "Description" field in the ACP.

Lets say I'm currently in category 1 (categories.php?cat_id=1).
In the categories.html template I'm using the variable {cat_description}.

Now, when there's no content in cat 1 the {cat_description} shows perfectly. On the other hand, when I add content to the cat, {cat_description} does not show at all, and when I view source nothing appears.

What could be wrong, and how do I fix it? (Obviously I want the cat description to show whether or not I have content added)

Thanks.
Greetz: Lasse

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: {cat_description} won't show
« Reply #1 on: May 09, 2006, 02:55:23 PM »
made a misstake in template? try default template, see if it works.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {cat_description} won't show
« Reply #2 on: May 09, 2006, 04:29:11 PM »
Just checked, doesn't work in the default template either. What to do, what to do...?
Greetz: Lasse

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {cat_description} won't show
« Reply #3 on: May 09, 2006, 05:25:48 PM »
It's weird... Now I've spent a few hours trying different thing, and nothing works... Is this a version 1.7.2 thing? If so, please do tell!
Greetz: Lasse

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: {cat_description} won't show
« Reply #4 on: May 10, 2006, 06:13:04 AM »
Just tested, works fine on fresh installation.

Check categories.php
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {cat_description} won't show
« Reply #5 on: May 10, 2006, 08:42:30 AM »
WTF. Okay, I will have a look at categories.php.

If you think of anything else, do let me know. I will keep this thread updated as I go along. Thanks, so far
Greetz: Lasse

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Re: {cat_description} won't show
« Reply #6 on: May 10, 2006, 10:33:55 AM »
Thanks for you help Vano, I really appreciate it.

After hours of looking at pretty much all files, I just found out it's in my functions.php where there's something wrong... Easy to fix, I recon. Thanks again.  8)
Greetz: Lasse