Flexicontent modules display on Directory page.

More
11 years 1 week ago #42351 by norm
Hi. I am trying to get Flexicontent modules to appear on a Directory page i.e. menu item showing directory categories.

I can get Joomla modules to display on the page and Flexicontent modules show on all pages (Category pages) except the Directory. The modules I am trying to get to show are the Advanced Search and Tag Cloud.

There is a similar post here, but it does give a solution.
www.flexicontent.org/forum/index ... =viewtopic

I have set the Hide/Show parameters in the modules to include everything i.e. categories, items, favorites, etc - but there is nothing that effects the directory page.

Using Joomla 3.1.6 on localhost with com_flexicontent_v2.1.2_r1806_J25_J32_beta.

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

More
11 years 1 week ago #42352 by ggppdk
Hello

will add this,
you can use PHP code to control when your FLEXIcontent module will be shown, so in your case

-- for FLEXIContent direcory view use:
Code:
return ( JRequest::getCmd( 'option' ) == 'com_flexicontent' && JRequest::getCmd( 'view' ) == 'flexicontent' );
the above will make the module show when current view is directory view (view=='flexicontent')

-- also you can also make use of variable rootcat, (when directory view starts at a specific category instead of TOP-level e.g.:
Code:
return ( JRequest::getCmd( 'option' ) == 'com_flexicontent' && JRequest::getCmd( 'view' ) == 'flexicontent' && in_array(JRequest::getInt( 'rootcat' ), array(57,71)) );

the above will show the module in directory view when directory view starts at category no: 57 OR 71

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.

More
11 years 1 week ago #42376 by norm
Thanks very much for the quick reply.

Still having trouble with this one.

I have included both sets of php code that you mention and unfortunately still no display on the directory page.

Without the code, the modules will display on the subcategory pages, but not the root of the directory page, i.e. main menu item is "directory" - no module. Subcategory on that page, when clicked, has the module.

Modules will display on category views - just not directory view.

If the "combine rules" is set to "And" with the code then the module will not show anyhere on the site. Set to "Or" the module display returns throughout the site but still not on the directory root page.

Module display set to "all pages"

I do have a Site Content page with directory view in the Flexicontent hidden menu but cannot see how this would effect the module display. Publish or Unpublish of this item makes no change.

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

More
11 years 1 week ago #42377 by ggppdk
Hello

1. setting combine rule to 'AND' is meaningless

e.g. your current view cannot be both 'category' view and 'directory' view at the same time

2. above option should be compared with 'com_flexicontent' and not with 'flexicontent'

i have corrected the above code , please recopy it


-- 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
11 years 1 week ago #42378 by norm
Thanks very much. Change to the code fixed it.

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

More
10 years 11 months ago #42946 by jrodgar
Is this a intended behaviour?

Unless otherwise indicated:
Joomla 3.8.1
Flexicontent 3.2.1.7

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

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