简体   繁体   中英

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. When I try this by ###LINK_ITEM### marker it links to the (return-page) I've chosen in flexforms to return.

How should I link that title to the page itself, it also can be used as PERMALINK the other systems like wordpress have.

You can extend tt_news with new marker.

  • create the extension with the kickstarter or just create empty one (extend tt_news table if necessary)
  • create hook-objects and register for the hook "extraItemMarkerProcessor"
  • create the marker and content within that hook and assign value of current url $url=t3lib_div::getIndpEnv('TYPO3_REQUEST_URL');

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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