Bug #15182
closednew similar Option to HMENU includeNotInMenu
0%
Description
We have the "Hide in Menu" property for any page type, but there is no option for HMENU to include menu-hidden pages in a special menu, like includeNotInMenu for the pagetype 'Not in Menu'.
(issue imported from #M1794)
Files
Updated by tob about 19 years ago
that should work by setting excludeDoktypes, see http://typo3.org/documentation/document-library/doc_core_tsref/HMENU/
Updated by Sebastian Kurfuerst about 19 years ago
I think as well that this can be done like tob outlined. If not, please reopen the bug report.
Greets, Sebastian
Updated by Marc Bastian Heinrichs about 19 years ago
I don't want to exclude other doktypes from menus, which is done by excludeDoktypes.
I think, it's useful to have the TS-option for an HMENU to include pages, where the option "Hide in menu" is set.
This is currently done by the TS-option includeNotInMenu for pages with the pagetype 'Not in menu', but don't work with option "Hide in menu".
Updated by tob about 19 years ago
ok confirmed..
following menu shows only pages with the doctype "not in menu", but not "hide in menu" (hide in menu sets nav_hide=1 in pages and this is hardcodet in class.tslib_menu.php
eg:
$extraWhere = ' AND pages.nav_hide=0'.$this->getDoktypeExcludeWhere();
)
temp.menu=HMENU
temp.menu.includeNotInMenu=1
temp.menu.excludeDoktypes=5
temp.menu.1=TMENU
temp.menu.1.NO {
allWrap = | >>
}
I also wondered why there are 2 possibilities to hide a page .. maybe for eg. mailform confirm/thank you pages which you really dont want to have in a menu
Updated by Marc Bastian Heinrichs about 19 years ago
I think the option "Hide in menu" was implemeted later and now the Pagetype 'Not in menu' is obsolete.
http://bugs.typo3.org/view.php?id=1150
http://bugs.typo3.org/view.php?id=1062
Updated by Sebastian Kurfuerst about 19 years ago
basheinr: Yes, you are right. The pagetype "not in menu" will most likely be removed in 4.0 and replaced by the nav_hide setting during the update.
Greets, Sebastian
Updated by Sebastian Kurfuerst about 19 years ago
Hi,
the current patch modifies the behavior in a way that the pages with the "hide in menu" property are shown when includeNotInMenu is set.
Does this make sense?
It would be great if you could test the patch,
Greets, Sebastian
Updated by Marc Bastian Heinrichs about 19 years ago
Hi Sebastian,
I've tested tes patch and it doesn't work, sorry.
I looked at the source and I think your changes applies only to HMENU special 'updated' and 'keywords'. In function filterMenuPages pages with 'nav_hide' set don't get into the menu.
In function generate_level of class tslib_jsmenu the nav_hide options is also used.
greets, Marc Bastian
Updated by Sebastian Kurfuerst almost 19 years ago
I think you are right - however I don't have time to provide a new patch at the moment. Will look at this later.
Greets, Sebastian