How do I add navigation menu on sidebar in TyPO3 - typo3

I want to add a submenu on sidebar in some selected pages. The idea is like the following:
http://venicexplorer.com/explore-venice/annual-events/carnival-of-venice.html
How can I do that on TYPO3?
Thanks
Prasun

For buildung menus there a two ways.
1) The traditional way is by using typoscript and HMENU. Here you find the documentation:
https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/ContentObjects/Hmenu/Index.html
2) The alternative is to use MenuProcessors. Here you find the documentation:
https://docs.typo3.org/m/typo3/tutorial-sitepackage/master/en-us/MainMenuCreation/Index.html
To show only the subpages of a special page you can use a condition in your fluid template where you integrate your menu:
[PIDupinRootline = uid]
... here is your menu ...
[end]
The uid belongs to the page from which you want to display the subpages.

Related

TYPO3: subpages menu: filter by category?

in TYPO3 there is a content element: a menu that displays subpages. Now I want to have some kind of filter function: the user should be able to select a TYPO3 system category and then the menu should only display subpages that belong to this category.
Is there an extension that I can use for a lookup or as a base to achieve my goal?
There is a content element type "Categorized Pages" that does exactly that.
If you need it to react to a user input coming form the frontend, you can easily add some lines of TypoScript to modify the rendering of that element so that it will consume a GET parameter to configure itself.

Give a class to specific Page in Main Menu in Typo3

I want to achieve having a menu with 2 levels, and some should always be expanded - some shouldn't. Is there any way I can hand over a class or something, if possible set up in the backend, to be able to choose which menu links should be expanded?
For example:
Menu Link 1 with no subitems
Menu Link 2 with subitems expandable (sublinks only visible on click)
Menu Link 3 with subitems always expanded (sublinks always visible)
Sub link 1
Sub link 2
In general you need to add a class to the link or the litag so CSS or javascript can decide which parts are visible.
A similar question would be to have some submenus not rendered at all, but as you want these submenus to be visible on a click they must be rendered anyway. so it is only the question how to get this information into the rendered menu. it should be a flag which can change the visibility. that could be done with CSS and javascript.
You can sore this information in the pagesrecord, where you can use any otherwise unused field (example would be layout). The realisation depends on the way you generate the menu.
Meanwhile you have two options:
classic: with typoscript
fluid: menu-processor
With both options you can add classes to the menu-items, where the JS can work on.

How to show tt_news related articles in bottom

I use tt_news 8.7 and Typo3 8.7, in news single view i like to show related news articles (same category) as Image/Teaser boxes at the bottom of the page, is this possible with tt_news ? can this be done by typoscript or changing the templates ?
Best regards,
Masmoudi M.
Yes, tt_news has an option to show related news by category in the single view. You can activate it by setting plugin.tt_news.showRelatedNewsByCategory = 1 in TypoScript. In your single template you have to have the marker ###NEWS_RELATED_BY_CATEGORY###. It will replace this with a list view of the related items.
More on this can be found here: https://docs.typo3.org/typo3cms/extensions/tt_news/Manual/Index.html#related-news-by-category

TYPO3 TCA - Display or hide tabs at treelevel

For an project, I have extended the TYPO3 TCA with a extra extension, named "project_extends". Now, I have all new TCA Objects - sorted in tabs - on every Treepoint/Contentpage, to configurate some fluid templates or extensions.
For example: I have three tabs, named "Tab1","Tab2" and "Tab3".
Now I want to display Tab1 and Tab3 at the second tree-level of the contentpages, but not at level one.
I don't found a understandable solution via google & co and hope here of helpful solutions :)
That's simple, to hide whole tab you just need to disable ALL fields which are visible on it.
To do this open page properties, find Page TSconfig field and for each field you want to disable add something like this:
TCEFORM.tt_content.list_type.disabled = 1
in this sample tt_content is a required table and list_type is the field. Normally (without above config) it should be visible as only field on the Plugin tab when inserting TT content with type Insert Plugin , however while you disabled it will be hidden and also tab will disappear.
Tip: you can recognize these values using some browser inspection tool, i.e. FireBug of Firefox.

In TYPO3 6.x BE, how to enable another doktype's fields in a sysfolder

In TYPO3 6.x, I have a sysfolder where I would like to enable the "abstract" and "media" fields in the Backend page settings. How can this be done?
PS The reason for is that I need their contents cascading to subpages. But the sysfolder/page they're on can't be displayed in the FE, so I want to prevent editors from adding content.
The easiest workaround without manipulating the TypoScript (so it can be clicked-out in 5 seconds) is creating a Shortcut instead of SysFolder, it will behave similar, but you'll keep the page typical fields. Theoretically SysFolders shouldn't be used for storing subpages therefore Shortcuts are more appropriate
Create a Shortcut page type and set its mode to First subpage of selected/current page
Hide this page in menus
If using RealURL check the Exclude from speaking URL checkbox.
Create subpages of that.
That's all