Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我做了一个扩展,它使用 header_link 字段来设置链接。问题是,对于外部链接,我想要<a>带有额外类的标签,这没关系,因为后端有一个字段。问题是,我不知道这个值存储在哪里。任何人都可以帮助我,好吗?
<a>
谢谢!
重新阅读您的问题后,我认为答案比我最初想的要简单。标准链接字段是存储到数据库中的字符串,如下所示:
www.linktarget.com - - - customlinkclass
这几乎可以解释自己。t3lib_div::trimExplode()您可以在扩展 php 代码中单独访问这些值,然后使用创建链接tslib_cObj::typoLink
t3lib_div::trimExplode()
tslib_cObj::typoLink
但是,我不知道您对header_link字段的确切含义。
header_link