Skip to content
Support Joomla!

Narrow screen resolution Wide screen resolution Auto adjust screen size Increase font size Decrease font size Default font size default color brick color green color
You are here:
Community Forum  


<< Start < Prev 1 2 Next > End >>
Possible to show Category Description if it's empt - 2007/07/19 18:12 I posted the following to the Joomla boards and nobody answered me... so I figure I'll try it here:

------

Hello,

I'm new to Joomla and I am trying to have Joomla show the Category Description.

It's doing it if I have items underneath the category... For example:

Animals: Here is my Description of How Cute Animals are Bla bla bla
Dogs (click here to read more)
Cats (click here to read more)

You get the idea. However, if the category is empty... for instance if Dogs and cats didn't exist, it shows this:

Animals
There are No Items to Display

Instead, I want it to say:

Animals: Here is my Description of How Cute Animals are Bla bla bla

And it doesn't even need to mention taht there are no items, it just won't show anything underneath it. The important thing is that the description for animals is still there.. I don't understand why it would disappear when there are no items, the description should still stay the same! At least it makes common sense to ME that way! There are no animals, but that doesn't change what an animal is or what the section is for, etc. You know?

Thanks in advance for any help,

~jimmy.
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/19 19:12 Jimmy, you could set those preferences under the "Parameters" panel.
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/19 19:29 I'm still having trouble with this. I am assuming you mean to go to the menu manager, click on the category that I want... then underneath that there is a Parameters tab.

Well in this tab I have these settings

Description = show
Description Image = show

Is there something else I need to do? This was always set this way but it has never worked. By that I mean, it works if there are content items underneath the category, but if the category is empty then it does not show the description. Is there still something I'm missing? Thanks,

~jimmy.
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/19 20:47 OK I figured it out. I linked to it from "Blog - Content Category" instead of "Table - Content Category".

And the "Show Empty Categories" option is only available for "Table Content Category"!

But I still have 1 question... why wouldn't the Blog- Content Category" have this same option?

I would ideally want the "look" of a Blog Content Category rather than a table look (which is ugly).
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/19 21:04 Jimmy, can you send me a link of the page?
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/19 21:25 No I can't because the server it's on is inside a firewall that the outside can't see... it's just my development server.

Do you understand my question though?

If you link to a category from a menu as a "Table - Content Category" it shows you the "Show/Hide Empty Category" option. But if you link to it as a "Blog - Content Category" that same option is not there in the admin parameters.

I want it to look like a "Blog - Content Category" but also have "Show Empty Category".

  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/20 13:44 Jimmy, depending on how many content items and intros you choose to show, you may have a long page.

Do you want to have links to other categories (including empty categories at the bottom of the page?

If that's the case, you can add a module position at the bottom of your Joomla template under your main content to show all the categories you have.
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/20 16:07 I don't think you understand what I'm asking for.

But it doesn't matter because I figured it out.

I had to hack this file:

components - com_content - content.php

starting from line 1386, in the else statement where it says to just print the generic _EMPTY_BLOG statement, I made it print the category description. It's a hack, but it works exactly how I wanted it to.
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/07/20 16:40 Sorry I wasn't much help I'm glad you figured out though
  | | The administrator has disabled public write access.
Re:Possible to show Category Description if it's e - 2007/12/11 09:39 Hi,

I ran into exact the same 'problem'. Could you tell me the lines of code you replaced

echo _EMPTY_BLOG;

with?

That would really help.

Theo
  | | The administrator has disabled public write access.
<< Start < Prev 1 2 Next > End >>

Member Login