Presenting Content items in relation to one another

More
12 years 9 months ago #30618 by ggppdk
This is a kind of item scoping "=selecting items" is tricky but i think it is possible with FLEXIcontent module,

First make sure that your:
cities items, are of 'City' Content Type
events items, are of 'Event' Content Type
news items, are of 'News' Content Type

Create 2 -new- FLEXIcontent modules (i repeat NEW one, to avoid problems with already forgotten parameters you may have set):

a. in the first of the two modules enable Type scope (set Method to "include") and Select "Event"
b. in the second of the two modules enable Type scope (set Method to "include") and Select "News"

c. In both modules go to categories scope (do not touch Method parameter) and in Behavior parameter set "Items is same category", and in Extra categories set it to "Children Categories"

Now one module will show related events and the other related "news" of the currently displayed item

Remember to have the structure you described
item of type city belongs to cat-A and cat-A has sub cats:
"cat-B" that contains "events" and
"cat-C" that contains "news"

Please post feedback here, to lets us now of the result


-- 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
12 years 9 months ago #30661 by FranckD
Ok sidebar -a and -b displays only these 3 warnings

Warning: Invalid argument supplied for foreach() in C:\wamp\www\test1.org\modules\mod_flexicontent\helper.php on line 1411

Warning: array_unique() expects parameter 1 to be array, integer given in C:\wamp\www\test1.org\modules\mod_flexicontent\helper.php on line 1434

Warning: implode() [<a href='function.implode'>function.implode</a>]: Invalid arguments passed in C:\wamp\www\ test1.org\modules\mod_flexicontent\helper.php on line 836


Here is the setup

Category tree
National -> CityA -> CityA_News
National -> CityA -> CityA_Events
National -> CityB -> CityB_News
National -> CityB -> CityB_Events

Item Type
- City News (has CityA News / CityB News (items))
- City Events (has CityA Events / CityB Events (items))

Both Flexi Uni modules have

Type scope:
- Method (include)
- Select Type (City News and City Events (respectively))
- Behavior (static)

Category Scope:
- Method (all)
- Behavior (Items in same category)
- Extra Cats (Children)

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

More
12 years 9 months ago #30662 by ggppdk
Ok, this is a bug

please test this fix:

in file helper.php of the module
change line 832 (r1514)
Code:
$catids_arr = modFlexicontentHelper::getExtraCats($cid, $treeinclude, $curritemcats);
to
Code:
$catids_arr = modFlexicontentHelper::getExtraCats(array($cid), $treeinclude, $curritemcats);

You may want to latest, which includes the fix:

Get latest FLEXIcontent RC9a r1457 for J1.5 / J2.5

with fixed/improved advanced search, and new Content lists Filter module

from here


-- 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
12 years 9 months ago #30669 by FranckD
Hi George,

This has fixed the issue and I'm happy to say it is working very well.

Will test further.

By the way I see the fix involves the array directive
Is this related to a version of php.


Again thank you very much!

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

More
12 years 9 months ago #30670 by ggppdk
No it is just a bug,

just the function expects an array to be given.


-- 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: 1.969 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