Translation of this page is incomplete.
ì¬ì©ì ì§ì ë©ë´ ë§ë¤ê¸°
í°í¤ììë ì¬ì©ì ì§ì ë©ë´ë¥¼ ë§ë¤ê±°ë, í¹ì ìí¤ íì´ì§ìì ë©ë´ë¥¼ ë§ë¤ê±°ë, í¹ì 구조체ìì ë©ë´ë¥¼ ë§ë¤ ì ììµëë¤. ë©ë´ ë° ë¤ë¥¸ ë§ì ê²ë¤ì Smarty {menu ...} 문ë²ì ì¬ì©íì¬ ë§ì¶¤í "ì¬ì©ì" modules ìì¼ë¡ ëì¬ì§ ì ììµëë¤. 모ëì ì¢ í¹ì ì°ì¸¡ ì´ì ëì ííë¡ ëì´ê±°ë, í¹ì 구문(syntax)ì´ Look & Feel ê´ë¦¬í¨ëì ë¤ìí ì¬ì©ì ì§ì ì½ë í
ì¤í¸ ììì ì§ì ëì¬ì§ ìë ììµëë¤ (í°í¤ 7ììë ìë¨ê³¼ íë¨ìë 모ëì ì§ì í ì ìì ê²ì
ëë¤. ë©ë´ë ë¨ìíê±°ë, ì íë ë°©ìì´ ë ìë ììµëë¤. ê·íë ë¶ëª¨ 구ì (í´ë) ë´ë¶ìì íì¥ëê±°ë ì í ì ìë ë©ë´ ìì´í
ì 구ìì ê°ì§ê³ ìë ë©ë´ë ë§ë¤ ì ìì¼ë©°, í¹ì CSS ì jQuery 를 ì´ì©íì¬ ëªëªì ëì ëë ì¸íê³¼ í¨ê³¼ë¥¼ ì§ë ì ëì ë©ë´ë¡ í기 ë ìë ììµëë¤.
í°í¤9 ììë ë©ë´ ê´ë¦¬ì ëªëª ë¶ë¶ì´ í¥ìëììµëë¤, ì´ë ì¬ì©ì± í¥ì, íì¼ë¡ ë¶ë¦¬ë ì¹ì
, "ë¹ ë¥¸ URL" ìì ìì , íì´ì§ì ëí ìëìì± ì¶ê°, ì í¸ì¤ì , ë° ê¶í ë±ì í¬í¨íë©° ë¯¸ë¦¬ë³´ê¸°ê° í¥ìëììµëë¤
í:
ìì½ê³ , 커뮤ëí° ë´ìì ì§ì í¸ì§ê°ë¥í ë©ë´ë¥¼ ìíìë©´, Module menupage 를 ì¬ì©íììì¤, ì´ë ì§ì ë ìí¤ íì´ì§ìì ë©ë´ë¥¼ ë§ë¤ì´ë
ëë¤.
ì¬ì©ì ì§ì ë©ë´ ë§ë¤ê¸°
ê´ë¦¬ > ë©ë´ ë¡ ê°ììì¤ (í¹ì í°í¤ ì¬ì´í¸ì 기본 주ìì URL ë¤ì ë¤ìì ì¶ê°íììì¤: .../tiki-admin_menus.php).
ìì± ê°ë¥í ë©ë´ìë 3ê°ì§ ë¤ë¥¸ ì¢
ë¥ê° ììµëë¤:
- ê³ ì (f): ë©ë´ë ì ì ì¼ ê²ì
ëë¤; 모ë ì íì¬íì ë©ë´ 모ëì í기ë ê²ì
ëë¤.
ì¬ê¸°ì ì¤í¬ë¦°ì· ì½ì
í´ì¼ í¨
- ì í ì ëí (d): ì´ ë©ë´ë ì ëíì
ëë¤; ë©ë´ ë´ë¶ì ë¶ë¶ë¤ë§ì´ í기ëë©°, ë¶ë¶ë¤ì ì´ê¸°/ë«ê¸°ë¥¼ ìí +/- ë§í¬ í¹ì í´ë ìì´ì½ì´ í기ë ê²ì
ëë¤. í°í¤ ë´ë¶ì ìì©íë¡ê·¸ë¨ ë©ë´ë ë©ë´ì 본 í´ëì¤ì í ìì ì
ëë¤.
ì¬ê¸°ì ì¤í¬ë¦°ì· ì½ì
í´ì¼ í¨
- í¼ì³ì§ ì ëí (e): ìì ëì¼íì§ë§ 모ë ë¶ë¶ì´ 기본ì¼ë¡ í¼ì³ì ¸ìê³ ì¬ì©ìê° ë«ê¸°ë¥¼ ìíë ë¶ë¶ì (-) í¹ì í´ë ìì´ì½ì¼ë¡ ë«ì ì ììµëë¤.
ì¬ê¸°ì ì¤í¬ë¦°ì· ì½ì
í´ì¼ í¨
구조체 목차ìì ë©ë´ ìì±í기
구조체 ì¬ì©ì 를 참조
From Tiki 7 or 8 (definitely in 8) the module_menu is working for structures.↵
↵
You can either make a navigation menu from a "menu Id" od from a "structure Id".↵
ë§ì¶¤í ë©ë´ 구ì±í기
ìì±ëê³ ëë©´, ì´ ì ë©ë´ì íì ìë ì¤ì ë²í¼ì í¬ë¦íììì¤, ì´ë /tiki-admin_menu_options.php?menuId=n ì¼ë¡ ì´ëíê² ë©ëë¤
ë©ë´ í목ì ìì±íë ¤ë©´, ë©ë´ ì íì¬í ììì ë´ì©ì 기ì
íììì¤ : ìµì Name, URL (ìëì í¹ì ì ëì ), Type = "option" ë° Position ì´ë ë©ë´ í목 ìì를 ì¤ì í기 ìí ì«ìì
ëë¤. ì ì¥íìê³ ë©ë´ì 미리보기를 ì´í´ë³´ììì¤.
í°í¤ >= 2.0 ììë , ((pageName)) 문ë²ì¼ë¡ ë©ë´ ì íì¬í ë´ë¶ì ìí¤ íì´ì§ë¡ì ë§í´ë¥´ ì§ì í ì ììµëë¤. ì¥ì ì ìí¤ íì´ì§ ì´ë¦ ì´ ë³ê²½ë ë ì íì¬íì ì´ë¦ë³ê²½ì í ì ìë ê²ì´ë©° SEFURLs 기ë¥ì´ ì²´í¬ëìì ê²½ì° SEFURL ë§í¬ë¥¼ ê°ì§ ì ìë ê²ì
ëë¤. SEFURL ë http://mysite.com/tiki-index_raw.php?page=Home ì ê°ì ë³µì¡í ë§í¬ ëì http://mysite.com/Home ì²ë¼ ë ê²ì
ëë¤
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.
- A section is an option that can fold the following options. The options dependant on a section are defined as the list of consecutive options with type 'option'. The options of a section stop when the next option is a section, a sorted section, or a separator.
- A sorted section sorts all its dependent options when displayed.
- A separator does nothing - except to stop a section (useful if you want to do a section followed by an option)
Example
- option1
- section1
- option4
- section2
will be
option1 | option
| section1 | section
| option2 | option
| option3 | option
| | separator
| option4 | option
| section2 | section
| option5 | option |
In Tiki > 1.9.8, more levels have been introduced
Example:
- option1
- section1
- option2
- section3
- section5
- option6
will be
option1 | option
| section1 | section level 0
| option2 | option
| section3 | section level 1
| option3 | option
| option4 | option
| section4 | section level 2
| option5 | option
| section5 | section level1
| | separator
| | separator
| option6 | option |
Tip: Leave intentional gaps when numbering positional value for options. (Ex: 1,3,5,7,9). This will make future additions easier.
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:
Name: | User Preferences
| URL: | tiki-user_preferences.php
| Sections: |
| Permissions: |
| Group: | Registered
| Type: | option | Position: | 100 |
You can specify a list of groups (separated by comma in Tiki =< 1.9.x, multiple select since Tiki 2.x). In this case, it means that the user needs to be in each group to see the option.
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:
Name: | Users map
| URL: | tiki-gmap_usermap.php
| Sections: | feature_gmap
| Permissions: |
| Group: |
| Type: | option | Position: | 110 |
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:
Name: | Upload image
| URL: | tiki-upload_image.php
| Sections: | feature_galleries
| Permissions: | tiki_p_upload_images
| Group: |
| Type: | option | Position: | 120 |
Tips
- You could add to a menu entry any combination of settings for sections, permissions or groups.
- If you need a same option with different perms or group, duplicate the option with the same position value.
- To know the section names in order to allow only some new options when the feature is enabled, you can disable/enable them under "Admin home > Features" (tiki-admin.php?page=features), and you will see its name reported on top of the page when it's reloaded after you saved your changes. Then, you can enable/disable them again to its original state, if you don't want to change this setting.
- To know the permission names, go to Admin > Groups > press on the key icon (
) next to a group) (tiki-assignpermission.php?group=Registered, for instance)
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).
On Admin Modules you can assign the module using the "Assign new module" form.
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}.
- Ensure that CSS menus are enabled in admin>features.
- Create a menu in the normal way at admin > menus.
- Note the ID number of the menu you have created.
- Edit the module (within tiki) or .tpl file (via ftp) and include (along with whatever html is required) the following syntax: {menu id=1 css=y}.
- In Tiki 3.0, the module containing the CSS menu needs this parameter: overflow=y. This allows the submenu items to display outside the module's borders.
Additional Parameters
type | horiz or vert op open | open will close no submenus
| sectionLevel | numeric | all the submenus beginning at this level will be displayed if the url matches one of the option of this level or above or below
| toLevel | numeric | do not display option higher than this level
| subMenu | numeric | menu option ID root. Only the submenu of this option will be displayed
|
Imagine this menu (id=101)
will display when you are on rose, or flower or monaco
flower | tree
rose|daisy
will display when you are tree, oak
flower } tree
tree|oak
- I presuppose, that you know how to set up a menu.
for getting this working well, you need:
section level0 menu items for the top bar and
option menu items for the left subnavigation menu (user module)
- First to setup a Contextual Menu, where the Top-Bar (or Top Menu) shows kind of „rubrics“ and the submenuitems are shown in a contextual submenu in the left or right culomn you have to do this:
- Put the following code into the "Site menu custom code:" box of Admin → Look and Feel → General Layout (2nd Tab) → Top Bar
use the number of the appropriate Menu → in this example I did choose the Standard „my menu“ for the Top Bar with the Standard ID=43
leave the "Menu ID" box empty
- Check on „Top Bar“ and then check on the „Site menu bar“ checkbox
Copy to clipboard <div id="topMenu">
{menu id=43 css=y type=horiz toLevel=0}
<br clear="both" />
</div>
- Second, setup a custom user module in Admin → Modules (.../tiki-admin_modules.php)
- No menu need to be setup for that
- second tab „user modules“, scroll down to „Create New User Module“
- name it for example „mnu_subMenu“ and do NOT apply to inculde any objects.
- instead put in the following code into the data box:
Copy to clipboard <div id="subMenu">
{menu id=43 css=y type=vert sectionLevel=1}
<br clear="both" />
</div>
- this Module has to be assigned in the first tab „assign/edit modules“.
- as this kind of contextual menu might be mostlikely used for a Standard „small companies website“ or similar, it should be assigned for „anonymous“ group or anonymous and registered.
- perhabs a good place would be top left (Position: Left / Order: 1); no parameters needed to work
=> Now you should be done – technically the menu should work
- Third: Maybe you will have to adjust the style/template css-file, to get the contextual menu into the custom design of your website.
- in my style, I had to change the following css-items:
- /***** XHTML Elements (other than body tag) ******/
- a:link, a:visited {color: ...
- /***** Site Header & Identity *****/
- /****** Menus, Links ******/ … /** CSS (suckerfish) menus **/
- .cssmenu li, .cssmenu_horiz li, .cssmenu_vert li {border-top: 0px solid #dedede}
- If and what you will have to change in your css-file, depends on your style/template, on your Tiki-version (2.x, 3.x, 4.x, 5.x etc.) and perhabs on more factors, that did not apply in my case.
This example works fine with Tiki 3.5 → when I will find out major differences in higher Versions, I will add this here lateron. Please mind that there have been changes in the templates from Tiki4 on.
Update: works fine in 4.x, 5.x and 6.x .
Please mind, that this custom-contextual-menu will only show items, when you are "on a page" that is linked from the menu.
If you move forward on a more complex website, then the left submenu will show up "empty". That makes no sense and I am on to get more problems solved related to the contextual menu.
Example:
You link to a "startpage" of a Wikistructure, but the other pages of the structure are not linked "in" the menu ...
... clicking on the menuitem linking to that page will let appear the appropriate (not emty) contextual menu ...
... but if you "move" forward in the wikistructure, the contextual menu will become empty.
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 /* Needs to be set for CSS menu in col2 to work */
.box-menu_css_v_43,
.box-menu_css_v_43 .box-data,
.box-menu_css_v_43 ul {overflow: visible !important}
.box-menu_css_v_43 {padding-left: 1em}
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).
If you want to let external links be opened in a new Tab or window, you need a target=_blank.
Please mind a difference in the notation regarded to "normal" HTML (the starting and ending quotes are intended to be missing):
In the menu you have to type: target=_blank Copy to clipboard http://foo.bar" target="_blank
.
And it will only work, if you enable the following in the admin panel "general settings -> navigation":
allow-HTML Copy to clipboard Allow HTML in link text and do not escape the url in menu items
(Please note: this might be insecure if you allow more people to edit menus)
Alternatively, you can try How to make menu items open in a new window
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): Link opens in iframe Copy to clipboard tiki-featured_link.php?type=f&url=http%3A%2F%2Fwww.siemens.com%2f
All special characters have to be replaced with the html encoding, e.g. / has to be replaced with %2f!
Perms
- tikiwiki< 1.10: you need to have tiki_p_admin to create/edit the menus
- tikiwiki>=1.10: to create a menu or delete one, you need tiki_p_edit_menu, to create/edit a menu option, you need tiki_p_edit_menu_option (of course, you have implicitly the 2 perms when you have tiki_p_admin)
tikiwiki>=1.10
There are 2 ways to change the folder icons
1) to change it as every other icons by overloading it at the templates level. You need to create 2 icons
- styles/my_style/img/icons/folder.png
- styles/my_style/img/icons/ofolder.png
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>=?
ê´ë¦¬->ì¼ë°-> ì ë´ë¶ìì ì¼ë° ì í¸ì¤ì ì íì±íí´ì¼ í©ëë¤
ê·¸ë¦¬ê³ í¹ì ë©ë´ì ëíì¬, ì´ ë©ë´ë¥¼ ë§ë¤ê¸°/í¸ì§í기 í ë, ë©ë´ í목ì ëíì¬ ìì´ì½ 구ì±' ì íì¬íì ì²´í¬íì¬ì¼ë§ í©ëë¤
ê·¸ë¦¬ê³ ê°ê°ì ì íì¬íì ëíì¬, ìì´ì½ì í¬í¨íë íì¼ì ì´ë¦ì ì¤ ì ììµëë¤ (ê´ë¦¬->ì¼ë° ì ë´ë¶ì ì§ì í ëë í°ë¦¬ìì íì¼ì ê°ì ¸ì¤ê² ë©ëë¤) í¹ì ìì´ì½ì ê²½ë¡ë¥¼ tikiroot ì ëíì¬ ìëì ì¼ë¡ ì¤ ìë ììµëë¤.
ì¶ê° ìë£
í¹ì 그룹ìë§ í´ë¹íë ë©ë´ë¥¼ ë§ëë ê²ì ëí ì¶ê° ì ë³´ë ë¤ìì ì´í´ë³´ììì¤: Menu HOWTO
참조
ì커í¼ì (Suckerfish) ë©ë´ (css ë©ë´):
Alias
|