사용자 지정 메뉴 만들기 | |
추가 스크린샷 이 필요함
티키9 에서는 메뉴 관리에 몇몇 부분이 향상되었습니다, 이는 사용성 향상, 탭으로 분리된 섹션, "빠른 URL" 상자 수정, 페이지에 대한 자동완성 추가, 선호설정, 및 권한 등을 포함하며 미리보기가 향상되었습니다 팁:
손쉽고, 커뮤니티 내에서 직접 편집가능한 메뉴를 원하시면, Module menupage 를 사용하십시오, 이는 지정된 위키 페이지에서 메뉴를 만들어냅니다.
|
사용자 지정 메뉴 만들기 | |
여기에 스크린샷 삽입해야 함
여기에 스크린샷 삽입해야 함
여기에 스크린샷 삽입해야 함
|
구조체 목차에서 메뉴 생성하기 | |
구조체 사용자 를 참조 From Tiki 7 or 8 (definitely in 8) the module_menu is working for structures.↵
|
맞춤형 메뉴 구성하기 | |
생성되고 나면, 이 새 메뉴의 행에 있는 설정 버튼을 크릭하십시오, 이는 /tiki-admin_menu_options.php?menuId=n 으로 이동하게 됩니다 메뉴 항목을 생성하려면, 메뉴 선택사항 서식에 내용을 기입하십시오 : 최소 Name, URL (상대적 혹은 절대적), Type = "option" 및 Position 이는 메뉴 항목 순서를 설정하기 위한 숫자입니다. 저장하시고 메뉴의 미리보기를 살펴보십시오.
To create a section (i.e. a folder) that can be opened or collapsed, fill in the edit menu options form with at least Name, URL, Type = "section" and Position. NOTE: Do not put anything in Sections unless you know the tiki specific feature references e.g. feature_wiki or feature_blog_rankings. These can be auto-filled using Some useful URLs pull-downs, or look at the Tips below to know how to guess the section name of the feature you are interested in.
|
Example | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
will be
will be
|
Allow viewing options/sections only under some conditions | |
Allow only to some specific groups | ||||||||||||||||||||||||
You can restrict the view of some options and sections in the menu, so that only specific groups can view them. For instance, you could add a "User Preferences" option in position 100 to your customized menu that is seen by users only when they log in (registered group). To do this, you would add:
If you want a list of groups to see the option, = a user to be only in one of the groups to see the option, you have to insert has many options as groups. Each option must have the same parameters (same position, ...) except for the group. The trick is, if you don't select any Groups, everyone can see the menu option. If you want to exclude a group, select all the other groups (but not the group you want to exclude). Similarly, you can inadvertently exclude a logged-in group by selecting too many groups. You don't need to select all of your Admin-type groups (they can usually see everything anyway). Just select the one logged-in group that you want to able to see the menu item. (Yes, this is all very weird.) |
Allow only if feature X is enabled | ||||||||||||||||||||||||
Imagine you want to add the option "Users Map" in position 110, to anonymous or registered groups, only when the feature Google Maps (gmap) is enabled in your site. You can do that with:
|
Allow only if feature X enabled and if user in a group with given permission | ||||||||||||||||||||||||
You could also restrict the menu option to be seen when the feature X is enabled, but also only when the user belongs to a group which has a specific permission. For instance, you could add an option "Upload image" in position 120 which is seen only when the feature image galleries (feature_galleries) is enabled AND only by users in groups which have the permission to upload images (tiki_p_upload_images). To achieve this behavior, you have to add something like:
|
Tips | |
|
Include menu in a new user module or in templates | |
Once the menu has all or most of the options go to "Admin Modules" page (/tiki-admin_modules.php), under " Create new user module" at the bottom, find your menu title in the pull-down "Menus" on the right, click use menu and "{menu id=n}" (where n = your menu ID) will appear in the "Create new user module" data box. Add a title (what will users will see) and a name (what admin sees) and click create/edit. Now you have created a new user module for the custom menu. Moreover, it is possible to create dynamic pop-up menus by putting {phplayers id=n} in a TPL file. For older versions of Tiki, you might need to copy the layersmenu CSS entries out of damian.css into the css of your choice (or copy them from a later version).
|
Multilingual menu | |
|
CSS (Suckerfish) Menus | |
In Tiki 2 and newer, it is possible to use a suckerfish menu. This menu can be either vertical (in a module), or horizontal (in a template or in Site Identity custom code or, as of Tiki 3.0, as the topbar menu by just indicating the menu id number. Even nicer, jquery Superfish effects can be applied to CSS menus in Tiki 3. To summarize: a menu created in Admin Menus can be displayed in one of three forms: a normal tiki menu (like the default menu in the side column), a PHP Layers menu, and a suckerfish (CSS) menu. In any form it can be integrated in tiki either directly in a module, in a template file {menu id=1} or in Admin Look and Feel (custom code in Tiki 2, or topbar menu selection in Tiki 3.0). To have a suckerfish menu used, in a module (via admin) or a template (via file editing) add the parameter css=y to the smarty tag {menu}.
|
How to Set Up a CSS Menu (in progess) | |
|
Additional Parameters | ||||||||||||||||
|
Contextual menu example | |
Imagine this menu (id=101)
will display when you are on rose, or flower or monaco
Three steps to a contextual menu
Please mind, that this custom-contextual-menu will only show items, when you are "on a page" that is linked from the menu.
Example:
|
Required CSS Classes | |
As of Tiki 3.0, suckerfish menus are supported in CSS by default, and no additional CSS styles need to be added. The following information applies to Tiki 2. NOTES
For a CSS menu to work in the side column, these changes have to be made to the theme's stylesheet, after the .box selector in the file: Copy to clipboard
The number is the id number of the menu, so this will have to be changed if the menu has a different id number. In the future release, there will probably be a general CSS solution, but in the meantime (May 2008), this previous hack should do the job. The first part is to enable the menu items to be visible outside of the module; the fourth item is probably necessary to bring the menu (top-level items) fully into view in the module. They are probably too far to the left initially. You might have to adjust the "1em" to another figure (whole numbers or decimal numbers like 1.4em are OK).
|
External Links in Menus | |
If you want to let external links be opened in a new Tab or window, you need a target=_blank.
Copy to clipboard
And it will only work, if you enable the following in the admin panel "general settings -> navigation": Copy to clipboard
|
Links in iframe | |
Links to be opened inside an iframe in the main display area can be done this way ( Featured Links feature has to be enabled): Copy to clipboard
|
Perms | |
|
Change the folder icons of a tiki menu | |
tikiwiki>=1.10
2)to change locally for a menu. You must specify the path to the icon folder for close section like my_modifications/my_icon.gif and you must supply this icon and the closed icon that must be name my_modifications/omy_icon.gif (notice the o letter) For the change to take effect, you may have to clear Tiki's caches (at tiki-admin_system.php) and your browser cache, and/or log out of Tiki to clear session information. |
메뉴의 각 선택사항에 아이콘 추가 | |
tiki>=?
|
추가 자료 | |
특정 그룹에만 해당하는 메뉴를 만드는 것에 대한 추가 정보는 다음을 살펴보십시오: Menu HOWTO
참조
서커피시 (Suckerfish) 메뉴 (css 메뉴):
Alias
|