How to show content in a flexicontent category page

More
9 years 10 months ago #47704 by asabellico
Hi,
i just cannot understand how to show content in a category view page with Universal content module. How to dynamically bind to the current category?

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

More
9 years 10 months ago #47722 by ggppdk
Hello

the universal content module can list content based on the current category of the item currently being displayed

there is no parameter for category of the shown by current category view

i can understand some scenarios that this would be needed, it is not difficult to add to them module, just there is no option/parameter to do this in v2.1.3 / v2.2.0


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

More
9 years 10 months ago #47939 by asabellico
Which module file I have to modify to add this functionality?

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

More
9 years 10 months ago #47952 by ggppdk
Hello

if you want to do this then

-- you can duplicate our module:
mod_flexicontent

... and of course
1. rename the duplicated folder/files
2. rename the class name,
3. and then modify the file
helper.php


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

More
9 years 10 months ago #48028 by asabellico
I modified the universal module to show up items in the category view.

Now i want to create a new template to show items in a custom way.
I see that in news.php custom fields are accessed in this way:

<?php foreach ($item->fields as $k => $field) : ?>


But if I try to access $item->fields, php says the $item has no fields attribute. Why?

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.277 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