[Fixed in J3.8.5] Get active menu issue in Joomla 3.8.4

More
6 years 10 months ago - 6 years 10 months ago #71710 by lipatovroman
Hello!

I use code to get active menu
Code:
<?php $app = JFactory::getApplication(); $menu = $app->getMenu()->getActive()->link; $menu = JRoute::_($menu); echo $menu; ?>

in Joomla 3.8.3 and old versions this code displayed normal Sef url like

/category/subcategory/subsubcategory

but in Joomla 3.8.4 same code displays:

/component/flexicontent/category/144

So, where is problem, in Joomla or in FC ?

Thanks.
Last edit: 6 years 10 months ago by ggppdk.

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

More
6 years 10 months ago - 6 years 10 months ago #71711 by lipatovroman
I have checked with other components - шежы ok.
This is FC issue.
I have many css styles based on url, so it breaks template :(
Last edit: 6 years 10 months ago by ggppdk.

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

More
6 years 10 months ago - 6 years 10 months ago #71718 by ggppdk
Hello

The issue will be fixed in Joomla 3.8.5

Also instead of using
Code:
<?php $app = JFactory::getApplication(); $menu = $app->getMenu()->getActive()->link; $menu = JRoute::_($menu); echo $menu; ?>

Instead try
Code:
<?php $app = JFactory::getApplication(); $menu = $app->getMenu()->getActive(); if ( !empty($menu->query['cid']) ) { $sef_link = JRoute::_( FlexicontentHelperRoute::getCategoryRoute($menu->query['cid']) ); echo $sef_link; } ?>


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

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

More
6 years 10 months ago - 6 years 10 months ago #71719 by lipatovroman
Thanks.
Please, return ability to edit forum posts.
At first, I rename solved posts as "Solved"
And also, I can't fix mistakes in text.

P.S.

Is it possible to assign Joomla template styles for FC categories?
Last edit: 6 years 10 months ago by ggppdk.

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

More
6 years 10 months ago - 6 years 10 months ago #71720 by ggppdk
Hhmm

about editing answers
currently this was changed to be forum admins only

probably to avoid SPAM
i will check if forum in some easy way can show recently edited messages
- if yes , then we can re-enable

about marking as solved
you can just post an answer that things are good and forum admins will mark the forum thread as "solved"


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

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

More
6 years 10 months ago - 6 years 10 months ago #71721 by lipatovroman

ggppdk wrote: Hhmm
about marking as solved
you can just post an answer that things are good and forum admins will mark the forum thread as "solved"


No problem, I just wanted to help with extra work.

Also Kunena panel does not displays (BB Code, Smiles e.t.c)

Last edit: 6 years 10 months ago by lipatovroman.

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

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