pepperstreet VIP
Total posts: 3,837
04 Aug 2014 00:17

Actually, any single option in this bar can be hidden by selecting a J! ACL. You will find the settings here:

-> YourSection -> General Parameters -> Templates -> Markup layout -> default (click edit button)

-> 1.) see tabs "Section Menu"

cob_template_markup_section_menu

-> 2.) see tabs "Filters"

cob_template_markup_filters

As far as I know, these are all params and elements which allows this access restriction by configuration.


Unfortunately, I have some issues in my quick test. Although all inner elements are removed... there is still some HTML markup in the output!? :(

Source:

<div class="navbar" id="cnav">
    <div class="navbar-inner">
        <div class="form-inline navbar-form pull-right search-form">
                <span style="display: none;">Search box</span>
        </div>

    <ul class="nav"></ul>

    <div class="clearfix"></div>
        </div>
        </div>

Visual result in frontend:
cob_section_menu_empty_nav_markup

@ Sergey
Can this be fixed or improved?
BTW, there are those 2 menu parameters for hide/show the whole menu. Shouldn't this have J! ACL selectboxes as well?!


Sergey
Total posts: 13,748
04 Aug 2014 02:13

pepperstreet BTW, there are those 2 menu parameters for hide/show the whole menu. Shouldn't this have J! ACL selectboxes as well?!

Actualy yes, any Yes/No parameter may be changed to accesslevel selector. Unfortunately I cannot change this now, because it will affect all custom templates.


fdaza
Total posts: 12
04 Aug 2014 02:45

Thank you very much

that work for me.


Sergey
Total posts: 13,748
04 Aug 2014 04:08

Another solution is to create custom markup template wheer you interpolate navigation menu in IF user is logged in condition.

Powered by Cobalt