WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
show_menu2( $aMenu = 2, $aStart = SM2_ROOT, $aMaxLevel = SM2_ALL, $aOptions = SM2_ALL, $aItemOpen = '<li><a href="[url]">[menu_title]<span>[page_description]</span></a>', $aItemClose = '</li>', $aMenuOpen = '<ul class="home-sidelinks">', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false ); ?>
PAGE_DESCRIPTION page description of actual page
<?php echo page_description; ?>
show_menu2( $aMenu = 2, $aStart = SM2_ROOT, $aMaxLevel = SM2_ALL, $aOptions = SM2_ALLINFO|SM2_ALL, $aItemOpen = '<li><a href="[url]">[menu_title]<span> - [description]</span></a>', $aItemClose = '</li>', $aMenuOpen = '<ul class="home-sidelinks">', $aMenuClose = '</ul>', $aTopItemOpen = false, $aTopMenuOpen = false );
Where is the readme you are talking about?
FORMAT STRINGS==============The following tags may be included in the format strings for $aItemOpen and$aMenuOpen and will be replaced with the appropriate text.[a] <a> tag (no class): '<a href="[url]" target="[target]">'[ac] <a> tag including class: '<a href="[url]" target="[target]" class="[class]">'[ li ] <li> tag including class: '<li class="[class]">'[ul] <ul> tag including class: '<ul class="[class]">'[class] List of classes for that page[menu_title] Menu title text (HTML entity escaped unless SM2_NOESCAPE flag is used)[menu_icon_0] URL poining to an image for display normal - status (from WB2.8.4)[menu_icon_1] URL poining to an image for display active/hover - status (from WB2.8.4)[page_title] Page title text (HTML entity escaped unless SM2_NOESCAPE flag is used)[page_icon] URL poining to an image relating to the current page (from WB2.8.4)[tooltip] Tooltip caption, normaly shown in title-attribute of links (ab WB2.8.4)[url] Page URL for the <a> tag[target] Page target for the <a> tag[page_id] Page ID of the current menu item[parent] Page ID of the parent menu item[level] Page level, the same number as is used for the "menu-N" CSS tag.[sib] Current menu sibling number[sibCount] Total number of siblings in this menu[if] Conditional test (see section CONDITIONAL FORMATTING)The following tags are only available when the SM2_ALLINFO flag is used.[description] Page description[keywords] Page keywords
SM2_ALLINFO Load all fields from the page table of the database. This will result in quite a lot of memory being used and is not recommended, however it will make keywords, descriptions, and other fields available. This data is not loaded by default.
Only, to talk about.... it's, of course, also possible, to make a little change in show_menu2/include.php, if you dont want to load all datas for the whole menu tree, but with the risk, to lost this in the next upgrade. tell me, if you need more detailos about it
Should I do something in the include.php file or just leave it this way.
$fields = '`parent`,`page_id`,`menu_title`,`page_title`,`link`,`target`,'; $fields .= '`level`,`visibility`,`viewing_groups`, `page_trail`';
$fields = '`parent`,`page_id`,`menu_title`,`page_title`,`link`,`target`,'; $fields .= '`level`,`visibility`,`viewing_groups`, `page_trail`,'; $fields .= '`subtitle`,`page_subdescription`,`shorturl`, `custom1`';