New and old categories Joomla navigation

More
8 years 2 months ago #60005 by micker
it realy strange and i don't understand .. can you explain more ?

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
8 years 2 months ago #60013 by tadzio
I have a problem with this explanation in their own language. I'll try in the evening .
However , I think that this is a problem addressing Joomla and compatibility with Flexi.
Itemids in menus are somtimes good sometimes not.
The website did so changed to make it work.
I'll try to call in the evening the situation so that you can see it.

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

More
8 years 2 months ago #60016 by ggppdk
Hello

i think you speak of module assignments ?
you mean thad different modules appear ?

- that is normal
because the modules are assigned to menu items

if you use Joomla category view then you get "Joomla article" links which will use non-FLEXIcontent menu items, which have different module assignments


-- 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
8 years 1 month ago - 8 years 1 month ago #60475 by tadzio
OK. The problem of constantly harassing me .
All the navigation , the content is based on flexicontent and friendly URLs. And its ok.
URL like next.norwegofil.pl/category/subcategory/itemid-alias is very ok.
Home page is based on the modules are compatible with the com-content.
Unfortunately it is a problem of compatibility with com-content URL like next.norwegofil.pl/catid-category/subcategory/itemid-alias
The question is.
How the hack route.php in com -content to remove catid but leave itemid. (I know the solution to remove all the id but it is not compatible with flexicontent).

I use RewriteRule . What do you think? When I cut catid- URL will be the same with flexicontent url.
Last edit: 8 years 1 month ago by tadzio.

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

More
8 years 1 month ago - 8 years 1 month ago #60479 by ggppdk
Hello

you don't need to hack any files, you can create a Joomla template override for the
- template files of the modules
that you want to change the links from Joomla article links to FLEXIcontent links

-- 1 --
copy:
modules/mod_MMMM/tmpl/somename.php

to
template/ACTIVE_JOOMLA_TMPL/html/mod_MMMM/somename.php


-- 2 --
Then at the top of somename.php, add:
Code:
require_once (JPATH_ADMINISTRATOR.'/components/com_flexicontent/defineconstants.php'); require_once (JPATH_SITE.'/components/com_flexicontent/helpers/route.php');

-- 3 --
Replace links:
Code:
<a href="<?php echo $item->NNNN; ?>">

with:
Code:
<a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->id, 0, 0, $item)); ?>">

or if the "slugs" are available then the above should be:
Code:
<a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug, 0, $item)); ?>"

you can see if the slug are available by doing:
Code:
echo "<pre>"; print_r($item); exit;


-- 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: 8 years 1 month ago by ggppdk.

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

More
8 years 1 month ago - 8 years 1 month ago #60484 by tadzio
Thank you very much for your help. I did it a little differently. But the idea is very helpful .
It may be useful to someone.
Code:
/templates/headline/html/mod_news_pro_gk5/com_content/view.php
about line 192
Code:
return ($item['id'] != 0) ? JRoute::_(FlexicontentHelperRoute::getItemRoute($item['id'], $item['cid'], 0, $item)) : JRoute::_('index.php?option=com_users&view=login'); } // category link generator static function categoryLink($item) { return JRoute::_(FlexicontentHelperRoute::getCategoryRoute($item['cid'])); }

And
Category flexicontent (not Joomla Content) must be pinned to the menu even hidden. (
Then address looks better)
Last edit: 8 years 1 month ago by tadzio.

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

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