When I create categories in different directories, all these categories (totally) were listed in the backend of the plugin "news".
In the news items and also in the list-plugin e.g.
How can I tell news to list only the categories of a special dedicated directory (or page)?
The configuration can be changed in the Extension Manager > news: There is the field categoryRestriction. Check the full configuration manual described in the manual: https://docs.typo3.org/typo3cms/extensions/news/AdministratorManual/Configuration/ExtensionManager/Index.html#categoryrestriction
For next time, please always include the TYPO3 Version and extension version(s). thanks!
Nice, it works, but only during creating a news item.
If you put a plugin (list e.g.) into a page, the complete list of existing categories is listed, not only those from the dedicated News directory?
Related
Is there a possibility to update all slugs of all pages in all languages?
In an installation of one of my clients are hundreds of pages in multiple languages with wrong slugs (e.g.: prefix translate+german page name instead of translated page name etc.).
I remember an upgrade wizard in TYPO3 v9 but in version i cannot find this wizard.
This upgrade wizards appears if you just empty all slug fields of the table pages which is the fastest way to renew all slugs.
For special cases, maybe you would like to build your own Command.
Some nice thoughts (and helper methods) have been collected under TYPO3/Extbase How to create unique slug within create action?
I am working on a TYPO3 v10 LTS website with integration of the news extension v8.3.0. Many news are assigned to multiple categories and they are displayed on different detail pages according to their assigned categories. Now I would like to define one categories as master and use this category for the generation of canonical links to avoid duplicate content problems. On an older version of the website (TYPO3 v7 LTS) I used the solution explained here: https://www.typo3.net/forum/thematik/zeige/thema/116056/
I'm not so experienced with TYPO3 v9/v10 LTS yet, but I think that there must be a solution with routeEnhancers.
Any hints are welcome.
You need no route enhancer, just use the basic configuration of EXT:news.
one solution would be: for detail-view (show) always use one page. in this way each news will have a unique url. (problem: you can't ´return´ to the former list view with a hard link[1], as you don't know from which list you came)
2nd: configure a show-page with your news-categories: this page will be preferred for detail view (it always will be the first category) and each news will always be shown on this category detail page. (no ´return´ to the original list as above)
[1] you can't use a page as link target, but you can use javascript:history.back()
I am developing a site which has two main area's which I destinguish as two main system categories.
I use the latest version of tx-news (5.3.2) for articles and I assign them firstly to one of the two main system categories, and then to a specif category which exists for both main categories ...
in the frontpage I list a limited number of the latest articles, not limited by any category
how can I create links that considers the choice of the main category?
how can this show up in the
Url: mydomain.com/category-1/article or
mydomain.com/category-2/article
You need to copy the LinkViewViewHelper of EXT:news to a custom extension and add the category uid then to the link. After that it is possible to rewrite the id with realurl to the title.
i have more then one news resource folder in my typo3. My question: Can i use all of them in tx_news?
I want to build a news summary page of all these folders.
Thank you for your help!
Owi
Ohhhh ... Sorry!
Yes - You can use more then one sysfolder with news storage in one news plugin.
I was blind! You can select more then one source folder in the plugin config.
i'm currently working on a TYPO3 6.2 site using tx_news.
My goal is that a user can use the listView directly to download a related file, like it was possible in TT_news with type download.
The problem is in TX_news is only type news, internal page, external page available.
I dont really want to extend news that much to generate a new news type.
I got two possible solutions:
Use external page as link to file
Problem:
I dont really want the user to type the external file link
into these fields, since its a bigger project with many files.
Use sys_category and link the "more" field to related file
Problem:
I need a hardcoded check in the template files for the "File
Download Category" UID. What if this changes, or in a year some new
people need to maintain this.
This is possible with some template like this, but as is said before, this is an ugly hardcoded check in a template file:
<f:for each="{newsItem.categories}" as="category" iteration="catIterator">
</f:for>
Any help is very appreciated, if someone knows a better, cleaner solution.
To clarify: With 'listView' you mean a list of news items?
If so,
You could add a TemplateLayout to display only the URLs of the related files.
tx_news provides the news type "Internal Link", too.
With this type, it is possible to create a direct link to a file (on your webspace), page, folder or email.
HTH.