How to show tt_news related articles in bottom - typo3

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

Related

TYPO3 Bootstrap Package: Picture smaller / adding picture layout

I'm using the TYPO3 bootstrap package. The picture in a content element is always 100%. I would like to get the picture smaller (fixed at 20px). First I thought of using TSConfig to adjust the size. But this doesn't work because I have images I would like to still have 100%. So I think the best way is creating an additional content element layout. How can I add a new dropdown entry?
You can add items to every dropdown list with TSConfig. In your case you want to extend table tt_content and field layout.
TCEFORM.tt_content.layout.addItems.1525215969 = Your layout name
The number can be any number you want. It just has to be unique.
See the official documentation for details.

TYPO3 6.2: How to limit the number of displayed links in Related pages (based on keywords)

In TYPO3 6.2 the Special Menu "Related pages (based on keywords)", shows a list of the selected page and all other pages, which have one or more keywords, entered in the page properties, in common.
The problem is that my site has lots of pages with the same keywords and hence in some pages the number of displayed links is excessive.
The question is how could I limit the number of displayed links?
As long as the menu is generated by typoscript, which is the case for TYPO3 6.2, you could configure the menu generation like any other typoscript menu object.
Any menu object has the property maxItems (see manual ). You need to look for the definition of the content elements which should be beneath tt_content:
tt_content.menu.20.6.maxItems = 10
For newer TYPO3 versions the place of TS-defined CEs has changed up to the realisation of CEs by fluid. But still the property maxItems is available.

How do I add navigation menu on sidebar in 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.

Layouts for news-articles in the news-extension for TYPO3

While it is possible to choose and edit layout variants for the plugin and so for e.g. list views it seems impossible to have a choice of layout variants for a single news article, which then could be rendered differently in the list or single view. As it was possible with rgnewsimg ...
Any ideas how something like this could be achieved?
Thanks!
This would really be a nice function. On your own you can extend news and add a select field to news records to configure the detail layout. If you extend the extension well, you can access this field in fluid template then.
Another solutation would be using the categories for changing the detail view. You could add categories like "Style1" or "Style2" and then access the selection in fluid. It is possible like this, but its quite dirty.
And perfect would be a ViewHelper to allow for conditions in fluid regarding the aspect ratio of the first image, ie. to control the news article's layout depending on the used image:
if image's aspect ratio < 1 (= Portrait) ...
Unfortunately I can't code that ...

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.