How to add category description in directory view?

More
13 years 8 months ago - 13 years 8 months ago #9306 by hossam abohassan
i think this is what i am searching for

where should i put this code


<?php if ($this->params->get('show_description') && $this->category->description) : ?>
<?php echo $this->category->description; ?>
<?php endif; ?>
Last edit: 13 years 8 months ago by hossam abohassan.

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #9358 by yopyop001
Hi,

To add category description in the directory view :

You can add in com_flexicontent/views/flexicontent/tmpl/default_categories.php
Code:
<?php echo $sub->description; ?>

for example before
Code:
<ul class="catdets cat<?php echo $sub->id; ?>">

And to display subcategories description :

Add
Code:
<?php echo $subcat->description; ?>

between
Code:
<?php foreach ($sub->subcats as $subcat) :?>
And
Code:
<?php endforeach; ?>

Use Joomla overriding way to keep it when you will update FC.

BR

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #9370 by hossam abohassan
this worked well
thaaaaaaaaaaaaaaaaaaaaaanks yopyop001
:D :D :D :D :D :D

Please Log in or Create an account to join the conversation.

More
13 years 8 months ago #9412 by micker
hello
great news edit your post to [solved]
thanks

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #21712 by ggppdk
We have updated directory view not only to use category image and description, the result now is very nice ...,
also added
- separate thumbnail creation parameters for categories and subcategories (different sizes, processing method, etc)
- also added ability to extract an image from description or try both category parameter and extracting from description
- also added description with stripped html and parameter for maximum length (separate parameters for categories and subcategories)
- css styling

in Joomla 1.6+, removed the category image column!

New location is in category attributes, so code must be updated to use new location ...

As soon as the category model and the directory (called flexicontent) model are update the J1.7 category image parameter will start working too.

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.281 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline