[TYPO3-english] How to check if menu have content and remove the link for it if it haven't content

Xavier Perseguers typo3 at perseguers.ch
Tue Nov 10 15:23:07 CET 2009


Hi,

> I need to remove links for the menus witch haven't content yet. Is it 
> possible to do this?
> I can use doNotLinkIt for removing of the links, but how to loop each 
> menu point and check if it have or no content in it? Please help....

1) Manually hide page as long as it does not contain any content element
2) Write a userfunc and checks whether tt_content table contains 
visibles entries for current page and use it as TS condition

-- 
Xavier Perseguers
DBAL Leader

http://forge.typo3.org/projects/show/extension-dbal


More information about the TYPO3-english mailing list