Revision 1119
Added by Matthias over 16 years ago
| README.en.txt | ||
|---|---|---|
| 1 |
show_menu2, version 4.8
|
|
| 1 |
show_menu2, version 4.9
|
|
| 2 | 2 |
======================= |
| 3 | 3 |
A code snippet for the Website Baker CMS software. It provides a complete |
| 4 | 4 |
replacement for the builtin menu functions. All menu data is retrieved using |
| ... | ... | |
| 329 | 329 |
SM2_NUMCLASS Add the numbered menu classes to the menu. If this |
| 330 | 330 |
flag is supplied, the "menu-N" and "menu-child-N" |
| 331 | 331 |
classes will be added. |
| 332 |
|
|
| 332 | 333 |
SM2_ALLINFO Load all fields from the page table of the database. |
| 333 | 334 |
This will result in quite a lot of memory being used |
| 334 | 335 |
and is not recommended, however it will make keywords, |
| ... | ... | |
| 337 | 338 |
NOTE: This flag must be used on the *FIRST* call to |
| 338 | 339 |
show_menu2 *for this menu ID*, or in combination with |
| 339 | 340 |
SM2_NOCACHE otherwise it will have no effect. |
| 341 |
|
|
| 340 | 342 |
SM2_NOCACHE Do not reuse or store the data read from the database |
| 341 | 343 |
between calls to show_menu2. |
| 344 |
|
|
| 342 | 345 |
SM2_PRETTY Pretty print the menu HTML with spacing and newlines |
| 343 | 346 |
for debugging purposes. |
| 347 |
|
|
| 344 | 348 |
SM2_BUFFER Do not output the menu HTML but instead buffer it |
| 345 | 349 |
internally and return it as a string from show_menu2. |
| 350 |
|
|
| 346 | 351 |
SM2_CURRTREE Exclude all other top level menus from being considered. |
| 347 | 352 |
Only items in the current menu tree will be output. |
| 348 | 353 |
This can be combined with any of the Group 1 flags as |
| 349 | 354 |
necessary. |
| 355 |
|
|
| 350 | 356 |
SM2_ESCAPE Call htmlspecialchars on the menu strings. This may be |
| 351 | 357 |
required with older installations of WB. By escaping the |
| 352 | 358 |
raw database strings, it permits menus to have HTML |
| 353 | 359 |
formatting in them that would cause otherwise cause |
| 354 | 360 |
pages to fail validation. |
| 355 |
SM2_NOESCAPE Default behaviour. Exists only for backwards compatibility. |
|
| 361 |
|
|
| 362 |
SM2_SHOWHIDDEN Hidden pages are usually hidden all of the time, including |
|
| 363 |
when they are active (i.e. current page or a parent page). |
|
| 364 |
Use private pages for time when you want pages to be |
|
| 365 |
hidden except when active. However for compatibility with |
|
| 366 |
release 4.8, supply this flag to enable hidden pages to |
|
| 367 |
become visible when they are active. |
|
| 356 | 368 |
|
| 357 | 369 |
This parameter also has an extended mode where an associative array of |
| 358 | 370 |
options is supplied. See the EXTENDED OPTIONS section for details. |
Also available in: Unified diff
Updated show_menu2 to version 4.9