English 中文(简体)
joomla 添加 html 到菜单链接标题
原标题:joomla add html to menu link title

希望一个简单的...

我想在Joomla(v2.5.4)菜单链接中加上以下内容,并加上链接文本:

<i class="icon-book"></i>

像这样:

<li>
 <a href="page-name.html"><i class="icon-book"></i> Library</a>
</li>

我试过把上面的标签 放在菜单标题中作为 html, 但Joomla不会持有/保存它 并把它撕掉。

有帮助/想法吗?

谢谢 谢谢

问题回答

Joomla 不允许菜单标题中的任何标签, 甚至 HTML 编码( 即 & amp; lt; 等) 。 要做到这一点, 您需要使用支持它的第三方菜单系统。 周围有很多这样的系统, 您可以查看 < a href=" http:// extensions.joomla. org/ extensions/ sequal- a- navigation/menu- systems" rel= "nofollow" > Menu Systems 部分 < a href="http://extensions.joomla. org" rel= "nofolvection > Jomla! 扩展目录 < a > 。

否则, 在 Joomla! 您可以使用“ 链接类型选项” 面板中的参数 。

在此情况下, 您可以在“ Link CSS 样式” 参数中设置 < code> aSCSlass 参数, 将一个类指定为 标签。 您的 < code@ lt; a> a\gt; 标签将转换为

然后您可以在模板 CSS 文件中定义类, 并按您想要的做 。





相关问题
Automatically pick tags from context using Python

How can I pick tags from an article or a user s post using Python? Is the following method ok? Build a list of word frequency from the text and sort them. Remove some common words and pick the top ...

Embed font into PDF file by using iText

I defined a tag map, and got a XML data file. I want to convert the XML data file to PDF by using iText. The question is how to embed fonts (e.g. Polish font, Chinese font) into the target PDF when ...

Splitting a string in C#

I was wondering if somebody could help me use string split to get all occurrences of text in between <p> </p> tags in an HTML document?

Tagging Posts via Wordpress XMLRPC

i am trying to publish a new post to a wordpress blog over the XMLRPC API. This works out fine so far, but now i want to add tags to the post. Either at creation time or afterwards. But i can t find ...

linq query for tag system - search for multiple tags

I have two tables, Tags(tagid, postid, tagname) and posts(postid, name, ...) now i want to make a query that returns me all posts that have a generic amount of tags. like: i want all posts that have ...

Is it sometimes bad to use <BR />?

Is it sometimes bad to use <BR/> tags? I ask because some of the first advice my development team gave me was this: Don t use <BR/> ; instead, use styles. But why? Are there negative ...

iphone - Get dynamically created UITextField by tag

I add a UITextField to a table cell dynamically in my app. I d like to implement a "backgroundClick" method to dismiss the keyboard if the user presses outside the textfield (and outside the keyboard) ...

Re-insertion of <script> tags

Insertion of a file s tag, thus executing the file s code. Removal of the file s tag. Insertion of the same file s tag. Firebug does not seem to acknowledge and does not show the reinserted tag ...

热门标签