I cannot control menu items from FlexiAccess

More
15 years 9 months ago #5831 by internete
I can see menu items in the list of Frontend Permissions. Once I select a menu item and change the permissions it will not show up at all to anyone.

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

More
15 years 9 months ago #5834 by vistamedia
Did you do these modifications www.flexicontent.org/documentation/flexi...-acl/menu-items.html ?
Cheers,
Emmanuel.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
15 years 9 months ago #5911 by gby
I have the same problem ...

I do these modifications www.flexicontent.org/documentati ... items.html ? and i check it.

It's OK for the content articles, but i want also hidden different menu items, like the content items.

I try different solutions with the "Frontend permissions" in FLEXIAccess but i failed.

Do you have an idea to solve this problem?

Thanks a lot, best regards

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

More
15 years 9 months ago #5929 by supryin
Same problem. I did the modifications and I cannot control anything... Everything is being hided if I set permissions.

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

More
15 years 9 months ago #5932 by vistamedia
Ok,
Then it seems to be a bug :)
I'll try to reproduce it in the week end and give you the fix.
Cheers,
Emmanuel.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
15 years 9 months ago #5939 by gby
Thanks a lot

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

More
15 years 9 months ago #6045 by supryin
I'm really sorry. I found the error. It was my fault.
I copied the default.php not in the mod_mainmenu directory but in the mod_mainmenu/tmpl...

Again, sorry for the abuse... :(

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

More
15 years 9 months ago #6069 by gby
My default.php is under /mod_mainmenu directory and it's not OK.

Supryin, is it OK for you, now, because i can't understand, why it's not for me.

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

More
15 years 9 months ago #6251 by vistamedia
That means your default.php file is maybe already overriden in you template directory.
Code:
templates/[your_template]/html/mod_mainmenu/default.php
Or the menu you wish to adapt isn't the mod_mainemnu. For example joomlart and rockettheme have their own menu system.
Cheers,
Emmanuel.

FLEXIcontent lead developer.
www.vistamedia.fr web agency and custom development.
www.joomla.fr co-administrator.
Please no PM for support request, use the forum for that!!!

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

More
15 years 9 months ago #6374 by gby
That's what has been done. No mistake for me.

templates/mys_exposant/html/mod_mainmenu/default.php
Code:
<?php // no direct access defined('_JEXEC') or die('Restricted access'); if ( ! defined('modMainMenuXMLCallbackDefined') ) { function modMainMenuXMLCallback(&$node, $args) { $user = &JFactory::getUser(); $menu = &JSite::getMenu(); $active = $menu->getActive(); $path = isset($active) ? array_reverse($active->tree) : null; if (($args['end']) && ($node->attributes('level') >= $args['end'])) { $children = $node->children(); foreach ($node->children() as $child) { if ($child->name() == 'ul') { $node->removeChild($child); } } } if ($node->name() == 'ul') { foreach ($node->children() as $child) { if ($child->attributes('access') > $user->get('aid', 0)) { $node->removeChild($child); } // Ajout pour droit FLEXIACCESS if (FLEXI_ACCESS) { if (!FAccess::checkAllItemReadAccess('com_content','read','users',$user->gmid,'menu',$child->attributes('id'))) { $node->removeChild($child); } } else { if ($child->attributes('access') > $user->get('aid', 0)) { $node->removeChild($child); } } // Fin Ajout pour droit FLEXIACCESS } } if (($node->name() == 'li') && isset($node->ul)) { $node->addAttribute('class', 'parent'); } if (isset($path) && (in_array($node->attributes('id'), $path) || in_array($node->attributes('rel'), $path))) { if ($node->attributes('class')) { $node->addAttribute('class', $node->attributes('class').' active'); } else { $node->addAttribute('class', 'active'); } } else { if (isset($args['children']) && !$args['children']) { $children = $node->children(); foreach ($node->children() as $child) { if ($child->name() == 'ul') { $node->removeChild($child); } } } } if (($node->name() == 'li') && ($id = $node->attributes('id'))) { if ($node->attributes('class')) { $node->addAttribute('class', $node->attributes('class').' item'.$id); } else { $node->addAttribute('class', 'item'.$id); } } if (isset($path) && $node->attributes('id') == $path[0]) { $node->addAttribute('id', 'current'); } else { $node->removeAttribute('id'); } $node->removeAttribute('rel'); $node->removeAttribute('level'); $node->removeAttribute('access'); } define('modMainMenuXMLCallbackDefined', true); } modMainMenuHelper::render($params, 'modMainMenuXMLCallback');

Could there be another point where I make a mistake?

Thanks for your help

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

Moderators: vistamediajoomlacornerggppdk
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