Category Menu item does not detect items FlexiContent

More
9 years 2 months ago - 9 years 2 months ago #56378 by anarmohu
Hello I hope you can help me.

Everything works perfectly, until I get to search and sends articles to a URL without menu. Same articles in Community Builder. The categories also detects FLEXIcontent menu item.

if I changed [/ component / content / article /] Default joomla by one of FLEXIcontent.

As you can do that ??

I have another solution ?? Thanks
Excuse my bad English.

Long live FLEXIcontent :D
Last edit: 9 years 2 months ago by anarmohu.

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

More
9 years 2 months ago #56381 by ggppdk
Hello

Joomla category links and Joomla category menu items, are not redirecting to FLEXIcontent category view

- only Joomla article view is redirected to FLEXIcontent item view

is the above what you are asking ?
yes we do allow Joomla category views


-- 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...
The following user(s) said Thank You: anarmohu

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

More
9 years 2 months ago - 9 years 2 months ago #56453 by anarmohu
Hi, sorry I can not explain well.

this is what I want to do. How to generate FLEXIcontent SEF URLs in custom code

not how to do it, I do not know correct file.

Excuse my ignorance do not know how :(

FexliContent Version: 3.0.4
Joomla Version: Joomla! 3.4.3


This file is called route.php
its location is: / components / com_content / helpers


Code:
// Create the link $link = 'index.php?option=com_flexicontent&view=article&id=' . $id; if ((int) $catid > 1) { $categories = JCategories::getInstance('Content'); $category = $categories->get((int) $catid); if ($category) { $needles['category'] = array_reverse($category->getPath()); $needles['categories'] = $needles['category']; $link .= '&catid=' . $catid; }

No such insert the code, not in that line

Code:
// Create an FC item link and then convert to SEF link JRoute::_( FlexicontentHelperRoute::getItemRoute($id, $catid, $Itemid, $item) ); // Create an FC category link and then convert to SEF link JRoute::_( FlexicontentHelperRoute::getCategoryRoute($catid, $Itemid) );
Last edit: 9 years 2 months ago by anarmohu.

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

More
9 years 2 months ago #56470 by ggppdk
Hello

i am confused
you were talking about menu items
and then about creating FLEXIcontent links in custom code

did you mean that Joomla category view does not include some FLEXIcontent items ?
-- FLEXIcontent items in Joomla category will show only inside their main category


-- 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...
The following user(s) said Thank You: anarmohu

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

More
9 years 2 months ago #56486 by anarmohu
yes, it is what I do.

How to generate FLEXIcontent SEF URLs in custom code.

Makes a bad question. Sorry

but I really want to do this and not how.

How to generate FLEXIcontent SEF URLs in custom code. :huh:

I appreciate your time, you are a successful developer thanks.

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

More
9 years 2 months ago - 9 years 2 months ago #56500 by ggppdk
Hello

i have updated the FAQ article, (see below)
Code:
JRoute::_( FlexicontentHelperRoute::getItemRoute($id, $catid=0, $Itemid=0, $item=null) );
$catid (categoryID:categoryAllias)
$Itemid (menu item id)
$item (the item object)

are optional, e.g
Code:
$id =557; $link = JRoute::_( FlexicontentHelperRoute::getItemRoute($id) ); echo '<a href="'.$link.'">Some text</a>

- about your question if you want to use a specific menu item, then note that it must be of FLEXIcontent component and not of any other component
- to get best URL you also need $catid, and for correct language behaviour if you do not have $item object, then try setting the language in a new object
Code:
$id =557; $catid=45; $item = new stdClass(); $item->language='fr-Fr'; // or whatever the item's language is $link = JRoute::_( FlexicontentHelperRoute::getItemRoute($id, $catid, 0, $item) ); echo '<a href="'.$link.'">Some text</a>


-- 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: 9 years 2 months ago by ggppdk.
The following user(s) said Thank You: anarmohu

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

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