tx-news

TYPO3 9: add date to URL routing enhancers for news extension

岁酱吖の 提交于 2021-02-16 09:35:08
问题 For the detail pages of tx_news records as well as a calendar extension I wrote myself I want the record date in the URL as I had it until TYPO3 8LTS with the realURL extension: /path-to/my-page/yyyy/mm/dd/extension-record-path-segment/ . I managed to have the link created but with the cHash attached . My routeEnhancers settings for the tx_news_pi1 in /typo3conf/sites/my-site/config.yaml are as follows: routeEnhancers: NewsPlugin: type: Extbase limitToPages: [7] extension: News plugin: Pi1

How to properly set url-routing for tx-news in TYPO3 9.5.5?

你离开我真会死。 提交于 2021-01-05 10:37:02
问题 I use TYPO3 V9.5.5 with PHP V7.2.10. Also there is tx-news plugin installed. The site configuration is set and works. But if I add routeEnhancers for news detail it doesnt't show it in the url. It always looks like: http://p510984.mittwaldserver.info/aktuell/detail?tx_news_pi1%5Bnews%5D=5&cHash=c68f25c1ef4b5bd7320220373cfed332 I searched for solutions in stackoverflow and google. Also I read the manual of the news extension https://docs.typo3.org/typo3cms/extensions/news/stable

How to properly set url-routing for tx-news in TYPO3 9.5.5?

谁说胖子不能爱 提交于 2021-01-05 10:35:31
问题 I use TYPO3 V9.5.5 with PHP V7.2.10. Also there is tx-news plugin installed. The site configuration is set and works. But if I add routeEnhancers for news detail it doesnt't show it in the url. It always looks like: http://p510984.mittwaldserver.info/aktuell/detail?tx_news_pi1%5Bnews%5D=5&cHash=c68f25c1ef4b5bd7320220373cfed332 I searched for solutions in stackoverflow and google. Also I read the manual of the news extension https://docs.typo3.org/typo3cms/extensions/news/stable

TYPO3 9.5.3 News Archiv and Route Enhancers

ぐ巨炮叔叔 提交于 2020-01-15 09:46:09
问题 I included the RouteEnhancers for the News Plugin and there working as exspected for News List and News Detail Pages. Now i try to implement the DateMenu Archiv and there i have some Problems. My config.yaml looks like that. routeEnhancers: PageTypeSuffix: type: ForceAppendingSlash NewsPlugin: type: Extbase extension: News plugin: Pi1 routes: - routePath: '/news/{page}' _controller: 'News::list' _arguments: page: '@widget_0/currentPage' - routePath: '/{news_title}' _controller: 'News::detail'

TYPO3 6.2 performance, Typoscript Select, Typoscript Cache

时光总嘲笑我的痴心妄想 提交于 2020-01-07 05:50:15
问题 The problem itself is solved, but the question is still open cause I want to test the tipps from Krystian. See Edit 3 at the bottom of this question. I have a TYPO3 project that is very slow. So I did some tests and found some problems. I tested the startpage, the startpage containers 2 news list (total 9 articles) (tx_news version 2.3.0 - not the newest one). It contains the menu (created with fluid v:page.menu), the footer (also created with v:page.menu), a right column (mainly image

TYPO3 7.6 - tx_news 4.2.1 - no detail name in realurl?

≯℡__Kan透↙ 提交于 2020-01-07 02:43:07
问题 The realurl config with tx_news works fine for me, but I have one problem. I dont need the detail-name in the address. www.domain.org/news-list/ news-detail /test-news-name-here/ and now i dont need the "news-detail". Here the PHP code realurl.php <?php $TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment'; $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array( 'pagePath' => array( 'type' => 'user', 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl

TYPO3: How can I translate content elements within articles for news?

爷,独闯天下 提交于 2020-01-05 07:38:33
问题 I am using the news extension: news and have enabled the content element rendering for my articles via extension setup (Use content element relation). This works great and redacteurs can use content elements in the news articles, too. Furthermore I have localized and translated all the articles So if I switch the language in frontend then the translated articles will show up, but the content elements within this translated articles are still in the default language and not translated. So it

TYPO3 & tx_news need ViewHelper for show count of Entities in category

て烟熏妆下的殇ゞ 提交于 2020-01-05 03:37:49
问题 Task: in category menu show count of item in each category, like Category_one (38) Category_two (14) Etc ... I have try count by $demand but did'nt work <?php namespace HIT\huskytheme\ViewHelpers\News; class CountCategoriesViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper { /** * @var \GeorgRinger\News\Domain\Repository\NewsRepository * @inject */ protected $newsRepository = null; /** * * @param string $category * @return string */ public function render($category) {

Exception on executing ext:news upgrade wizard for updating path_segment in TYPO3 9

爷,独闯天下 提交于 2019-12-13 20:17:20
问题 After upgrading to TYPO3 9, some of the tx_news_domain_model_news path_segment fields were empty, so I marked Upgrade Wizard "Updates slug field "path_segment" of EXT:news records" of news extension" as undone and tried to execute it. This throws an exception . Makes no difference if executed via backend or on command line, though the command line shows a success message before the error:: typo3-cli upgrade:run newsSlug Output: In UpgradeWizardsService.php line 466: No valid wizard identifier

TYPO3 news - How to show different media files in default language and overlay language

别等时光非礼了梦想. 提交于 2019-12-12 10:23:12
问题 I use the following syntax in my fluid template to render the media files in news: <f:for each="{v:content.resources.fal(field: 'fal_media',table:'tx_news_domain_model_news',uid:'{newsItem.uid}')}" as="singleImage"> <div style="background-image: url({singleImage.url})" class="teaser__image"></div> </f:for> German is my default language, English the overlay language. In the English news I have implemented a different media image, but only the German (default) image is shown. How can I render