Universal content module Show list of categories

More
11 years 2 months ago #52480 by Miken
How to show only a list of categories on the home page via the universal module?

Add.

There are several categories.
Category 1
Category 2
Category 3
  -Under Category 1
  -Under Category 2
  -Under Category 3
  -Under Category 4
Category 4



I need to display a list of sub-categories, Category 3

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
11 years 2 months ago #52494 by ggppdk
Hello

module is for displaying items

as you have already seen you can use parameter
-- apply configuration per category

to create a listing of 1 level of categories, with items under every category (or set item count to zero to only get the categories)


maybe you should use a new menu instead ?


-- 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 review. Thanks!

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

More
11 years 2 months ago #52497 by Miken
Hello. Already understood. But it is better to have an article on how to configure the unit only to list the categories.

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
11 years 2 months ago #52500 by ggppdk
Hello

we are doing backend UI work in v3 for

more consistent / easier / responsive (everywhere?) UI with same and better placement of parameters (partly done in v2.x)

and also adding dependency toggling of parameters in fields, modules and component

after v3, we will make tutorial videos too and update features, FAQ etc


-- 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 review. Thanks!

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

More
11 years 2 months ago #52502 by Miken
Here's a video that's cool.

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
11 years 2 months ago #52509 by Rooney
I might write a tutorial how to use the Universal Module as a tree menu. I am using it on my site: www.muenstermann.com/en/overview/references
The links below references are category links in a Universal module. Please remind me if I haven't posted anything until Monday...
Rooney

Joomla! 3.9.24 and FC 3.3.9

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

More
11 years 2 months ago #52521 by micker
great write it !

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
11 years 3 weeks ago #53490 by Miken
Hello. I think to write how I solved my problem.

I went to flexicontent 3.

And so. Open the file in a folder mod_flexicontent.xml Univeral module.

Found there:
Code:
<field name="treeinclude" type="list" default="0" label="FLEXI_INCLUDE_EXTRACATS" description="FLEXI_INCLUDE_EXTRACATS_DESC" class="method_cat_ops" > <option value="0">FLEXI_NONE</option> <option value="1">FLEXI_CHILDREN</option> <option value="2">FLEXI_PARENTS</option> <option value="3">FLEXI_CHILDREN_PARENTS</option> <option value="4">FLEXI_OTHER_CATS_OF_ITEM</option> </field>
and added:
Code:
<option value="5">FLEXI_ALL_CHILDREN</option>

Then opened the file: flexicontent.categories.php in folder: components/com_flexicontent/classes/

found:
Code:
switch ($treeinclude) { // current category only case 0: default: $cats = array($cid); break; case 1: // current category + children $cats = $globalcats[$cid]->descendantsarray; break; case 2: // current category + parents $cats = $globalcats[$cid]->ancestorsarray; break; case 3: // current category + children + parents $cats = array_unique(array_merge($globalcats[$cid]->descendantsarray, $globalcats[$cid]->ancestorsarray)); break; case 4: // all item's categories $cats = $curritemcats; break; } $all_cats = array_merge($all_cats, $cats);

added here:
Code:
case 5: // all children category $all_cats = array(); $child_cat = array_unique(array_merge($globalcats[$cid]->descendantsarray, $globalcats[$cid]->ancestorsarray)); if(($key = array_search($cid,$child_cat)) !== FALSE){ unset($child_cat[$key]); } $cats = $child_cat; break;


It turned out what is described in the first post
[attachment=0:3lagzylz]<!-- ia0 -->ScreenShot 32.jpg<!-- ia0 -->[/attachment:3lagzylz]

Flexicontent 3.1.1 & Joomla 3.7.1

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

More
11 years 2 weeks ago #53518 by ggppdk
Hello

maybe i misunderstood your original post,

but what you have suggested is different from what you asked in your 1st post

- so you want the childrens of a category but no the category itself , right ?

if so, then this was not clear in your original thread, but also i see the usefulness of having this,


-- 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 review. Thanks!

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

More
11 years 2 weeks ago #53539 by Miken
Maybe not right expressed his thought. Poor me with English :)

Flexicontent 3.1.1 & Joomla 3.7.1

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

Moderators: vistamediajoomlacornerggppdk
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
Save