Fork me on GitHub

function_bt_userlinks in BlankTheme  Bottom

  • First i woloud say thanks to great job of BlankTheme icon_smile

    I have same question about userlinks, i want to have multilevel as in adminlinks, itried to copie a function that is in admin to user as well as rss files, but the resultat is not good.

    If i put this in userlinks

    Code

    /* Users/Groups link */
        $menu[] = array('users', _NAV_USERS, '#',
                    array(
                        array(null, _NAV_ADMINGROUPS,  pnModURL('Groups', 'admin'),
                            array(
                                array(null, _NAV_GROUPSETTINGS,  pnModURL('Groups', 'admin', 'modifyconfig'))
                            )
                        ),
                        array(null, _NAV_ADMINUSERS,   pnModURL('Users', 'admin'),
                            array(
                                array(null, _NAV_USERSMANAGER,     pnModURL('Users', 'admin', 'modifyconfig')),
                                array(null, _NAV_USERSPROPERTIES,  pnModURL('Profile', 'admin', 'view'))
                            )
                        ),
                        array(null, _NAV_SEARCHUSERS,  pnModURL('Users', 'admin', 'search')),
                        array(null, _NAV_CREATEUSER,  pnModURL('Users', 'admin', 'new'))
                    )
                );


    rhe menu is show but not in multilevel but only in one level so i can see all links at same time. i think the problem is in CSS but where exactly?

    Another thing is it possible to do this with userlinks

    I want that guest have menu A from userlinks
    Members in group A have menu B from userlinks
    members in group B have menu C from userlinks
  • oups i forget to ask where i should put menutemplates for extmenu iz zikula a iave config and images?
  • I think it would be much easier to use the menutree multi level menu block for that purpose. The functionality to use that block is already in BlankTheme, you just have to switch the admin variable from userlinks plugin to blockposition, create a navtop blockposition and you can use the menutree block in the navtop blockposition.
    You can use the userlinks plugin, but then you also need to code the plugin to display the menu and the style sheet to go along with it. This is all implemented in menutree already.
    When you check out the additional Menutree templates that are stored in the BlankTheme project you see that a variety of menus are possible "out of the box" already.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Hi!
    Nice that you like BlankTheme icon_smile

    Well, multilevel menus is something that we consider is in the hands of menutree. Checkout the multilevel templates that Erik has ported to menutree, and use the permission scheme of menutree to lock some options for some Groups. I must confess i haven't played with menutree permissions.

    So, the links you should check:
    * How to use a block in the navigation (link)
    * Templates for Menutree by Erik (link) and get them in the downloads section

    Greetings icon_wink

    Edit: heh, Erik was replying too icon_biggrin

    --
    - Mateo T. -
    Mis principios... son mis fines
  • icon_biggrin

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • thanks for reponse

    i try with a block navtop but he is put on left size and not on the top to have horizontal menu. i have made a block position

    Code

    <!--[blockposition name='navtop']-->


    i think this is beacause of CSS files but how to do that i have menu template for extmenu and menutree but where i should put this in zikula ??

    In optins of block we can choose a model and style for block but where we must put those files thanks



    edited by: nunizgb, Apr 22, 2009 - 09:56 AM
  • In BlankTheme the navtop position is already included in the body templates, just depending of the value of the $usemenu theme variable (must be b)

    And about the menutree templates, you must extract the package and copy it inside the menutree module. Menutree is just a block, but the module structure serves as a container for all this javascript + CSS+ HTML stuff that is required to have multiple options icon_wink

    Copy it and proceed to configure your block
    checking the different templates and styles icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • thanks for reponse one more thing for block position navtop is better to take block extmenu or menutree?
  • Depends on whether you want to have a single level menu (extmenu) or a multilevel menu (menutree).

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • ok thanks BTW about menutree or extmenu block settings there is option for Show editing links by CSS Is there a Wiki for editing block extmemu and menutree

    If we put here CSS for a link where is BTW this file CSS stored in zikula ?

    BTW thanks for help now i know more then yesterady and tomorow whon know i could also give some reponse for help someone icon_smile

    Edit : template for extmenu are put in system/blocks or in the theme?



    edited by: nunizgb, Apr 22, 2009 - 12:41 PM
  • 0 users

This list is based on users active over the last 60 minutes.