Typo3:外部链接额外的类。存储在哪里?
我制作了一个扩展,它使用 header_link 字段来设置链接。问题是,对于外部链接,我想要带有额外类的 标记,这是可以的,因为后端有一个字段。问题是,我不知道这个值存储在哪里。任何人都可以帮助我吗?
谢谢!
I made an extension which uses the header_link field to set up links. Problem is that with external links I want the <a>
tag with an extra class, which is ok since there is a field for that in the backend. Problem is, I dont know where this value is stored. Anyone can help me, please?
Thanks!
重新阅读您的问题后,我认为答案比我最初想象的要简单。
标准链接字段是存储到数据库中的字符串,如下所示:
这几乎可以解释自己。您可以在扩展 php 代码中使用
t3lib_div::trimExplode()
单独访问这些值,然后使用tslib_cObj::typoLink
创建链接但是,我不太清楚
header_link
字段的含义。After re-reading your question, I think the answer is simpler then I initially thought.
Standard link fields are a string stored to the database like that:
Which pretty much explains itself. You can access the values seperately with
t3lib_div::trimExplode()
in your extensions php code, then create the link withtslib_cObj::typoLink
However, I don't know exactly what you mean with
header_link
field.