Displaying items by sub category for a FAQ template

More
13 years 11 months ago - 13 years 10 months ago #12482 by loicberder
Hello,

i am stuck on a php problem... maybe one of you can help me on this.

i am trying to display the items related on each subcategories (there are not much items, it's for FAQ use) in a table using the category.php file

it's working pretty well but for the moment it's displaying all the items and not only those from the subcat.
see on my site

My php skills are limited, please have a look and help
thanks in advance
loïc



The CODE from my file category.php
Code:
<div class="column"<?php echo $style; ?>> <?php foreach ($this->categories as $sub) : ?> <div class="floattext"> <h2 class="flexicontent cat<?php echo $sub->id; ?>"> <a href="<?php echo JRoute::_( FlexicontentHelperRoute::getCategoryRoute($sub->slug) ); ?>"> <?php echo $this->escape($sub->title); ?> <?php if ($this->params->get('showassignated')) : ?> <span class="small"><?php echo $sub->assigneditems != null ? '('.$sub->assigneditems.')' : '(0)'; ?></span> <?php endif; ?> </h2> <div id="category-items"> <ul> <?php foreach ($this->items as $item) : ?> <li>[url=<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); ?>]<?php echo $this->escape($item->title); ?>[/url]</li> <?php endforeach; ?> </ul> </div> <ul class="catdets cat<?php echo $sub->id; ?>"> <?php foreach ($sub->subcats as $subcat) :?> <li> [url=<?php echo JRoute::_( FlexicontentHelperRoute::getCategoryRoute($subcat->slug) ); ?>]<?php echo $this->escape($subcat->title); ?>[/url] <?php if ($this->params->get('showassignated')) : ?> <span class="small"><?php echo $subcat->assignedsubitems != null ? '('.$subcat->assignedsubitems.'/'.$subcat->assignedcats.')' : '(0/'.$subcat->assignedcats.')'; ?></span> <?php endif; ?> </li> <?php endforeach; ?> </ul> </div>
Last edit: 13 years 10 months ago by loicberder.

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

More
13 years 11 months ago #12528 by loicberder
hello,
anybody with minimum php skills and flexicontent knowledge can help me ?
thanks in advance
loïc

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

More
13 years 11 months ago #12540 by micker
sorry i am not devellopper ....

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
13 years 10 months ago #12997 by loicberder
helleo,
thanks mickey

does anybody here have and idea on how to display only subcategories items on category view ??? please help

loïc

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

More
13 years 4 months ago #17026 by loicberder
Hello,
does anybody here have and idea on how to display subcategories and subcategories items on category view ??? please help

i am trying to make something like that (done with flexicontent) :
www.jomsocial.com/support/docs.html

thanks for your help
loïc

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

More
13 years 4 months ago #17029 by ggppdk
Hello,

this will be a nice addition to the 2 templates of Flexicontent, i will make one and add it to the trunk.

Now i don't have the 1-4 hours needed to do it.

I will post the files here too,
if i don't post in 3 days remind me ...

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.403 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