简体   繁体   English

如何将tt_news H1标题链接到新闻本身?

[英]How to link tt_news H1 title to the news itself?

For the SEO reason, I have to link the news title in single view to the news itself. 由于SEO的原因,我必须将单一标题的新闻标题链接到新闻本身。 When I try this by ###LINK_ITEM### marker it links to the (return-page) I've chosen in flexforms to return. 当我通过###LINK_ITEM###标记尝试此操作时,它会链接到我在flexforms中选择要返回的(返回页面)。

How should I link that title to the page itself, it also can be used as PERMALINK the other systems like wordpress have. 我应该如何将该标题链接到页面本身,它也可以用作PERMALINK等其他系统,如wordpress。

You can extend tt_news with new marker. 您可以使用新标记扩展tt_news。

  • create the extension with the kickstarter or just create empty one (extend tt_news table if necessary) 使用kickstarter创建扩展名或仅创建一个空扩展名(如有必要,扩展tt_news表)
  • create hook-objects and register for the hook "extraItemMarkerProcessor" 创建钩子对象并注册钩子“ extraItemMarkerProcessor”
  • create the marker and content within that hook and assign value of current url $url=t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'); 在该挂钩中创建标记和内容,并分配当前网址的值$ url = t3lib_div :: getIndpEnv('TYPO3_REQUEST_URL');

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM