Standard com_content module, how to link to FLEXicontent

More
12 years 1 week ago #37603 by dc006
Hi, I've just installed FLEXIcontent on my site, bind all articles and did basic set-up.

I use various modules on my site to display articles. Particularly News Show Pro GK5.
I was thought that modules that loads articles from com_content will work with FLEXIcontent as normal.
However article links (from within module) points to com_content display instead of FLEXIcontent. I was thought that your router will take care of this and will display all content as Flexicontent from now on.

So How do I go about this? Do I have to use FLEXIcontent specific modules only?

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

More
12 years 1 week ago #37610 by micker
2 ways :
1 use flexicontent module like flexiscroller or universal module
2 overide your template module and change link programmation like com_content to com_flexicontent
..
reagards

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
12 years 1 week ago #37614 by dc006
Thank you for posting prompt reply.

In the template module I use, the article link is constructed as follow
Code:
$link = ($item['id'] != 0) ? JRoute::_(ContentHelperRoute::getArticleRoute($item['id'], $item['cid'])) : JRoute::_('index.php?option=com_users&view=login');

Would you be able to suggest quick rewrite of this code so the $link would point to com_flexicontent ?

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

More
12 years 1 week ago #37621 by ggppdk
Hello what you need is described in detail here:
How to generate FLEXIcontent SEF URLs in custom code

At top of the file (to execute it once, although placing it inside item link generating loop will harm very little)
Code:
require_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_flexicontent'.DS.'defineconstants.php'); require_once(JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); require_once(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'helpers'.DS.'route.php');

and for your links (inside the loop):
Code:
$link = ($item['id'] != 0) ? JRoute::_(FlexicontentHelperRoute::getItemRoute($item['id'], $item['cid'])) : JRoute::_('index.php?option=com_users&view=login');


-- 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.311 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