Universal content module Show list of categories

More
10 years 4 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
10 years 2 months 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
Attachments:

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

More
10 years 2 months 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...

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

More
10 years 2 months 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
Time to create page: 0.286 seconds
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