Link to FLEXIcontent category SEF for universal module

More
5 years 10 months ago #75890 by iamrobert
Hi

We are trying to generate a link to a FLEXIcontent category SEF for universal module.

The View all should be the link to the category

Code:
<?php $pi_count1 = 0; foreach($pi_tabs_content as $key => $values){ $pi_class1 = $pi_count1 == 0 ? 'is-active': ''; echo '<div class="tabs-panel '.$pi_class1.'" id="pitab'.$key.'">'; foreach($values as $value){ echo $value; } echo '<a href="'.JRoute::_(FlexicontentHelperRoute::getCategoryRoute($key)).'">Link to category</a>'; echo '</div>'; $pi_count1++; } ?>

FlexicontentHelperRoute generates this link:

/content-page/124

whereas it should be this link:
/power-wheelchairs

Any Ideas how to generate this?

Thanks,

Robert

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

More
5 years 10 months ago - 5 years 10 months ago #75891 by ggppdk
Hello

'power-wheelchairs'

is a menu item alias, right ?


are the menu item and its parent menu items of an access level allowed to the current user?
are the menu item and its parent menu items of an current language and / or of language 'All' ?

also please test on duplicate testing website with
github.com/FLEXIcontent/flexicontent-cck/archive/3.3.x.zip


-- 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...
Last edit: 5 years 10 months ago by ggppdk.

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

More
5 years 10 months ago #75897 by rajeshsingh520
We only have the Category id that is in our $key

and based on the we are trying to generate the menu link

JRoute::_(FlexicontentHelperRoute::getCategoryRoute($key))

what we are getting is

/content-page/124

we have made the menu item to this category and its url is like /power-wheelchairs/

when we add that menu item id in the JRoute code

JRoute::_(FlexicontentHelperRoute::getCategoryRoute($key, $itemid))

it gives us

/power-wheelchairs/$key
($key is category id)

what we want is
/power-wheelchairs/

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

More
5 years 10 months ago #75899 by ggppdk
Hello

there can be other reason for this not being selected by itself

e.g. menu item is a directory view of the category and not a category view

you may send me a PM with super admin access and i will review 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.

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