A
A
Alexander Lebedev2014-10-19 14:31:40
CMS
Alexander Lebedev, 2014-10-19 14:31:40

How to add custom code to menu title in Joomla 2.5?

Good afternoon.
Situation: there is a site Agrogreenhouse made an eternity ago on Joomla 2.5. I need to add custom html code to the menu headings (for example, an icon or bold). Each item has its own, so simply adding tags in the code will not work.
If you specify the code directly in the title of the menu item, it is chopped, leaving only the text. I looked for manuals, added a field filter="raw"for code in modules.xml:

<field name="title" type="text"
description="COM_MODULES_FIELD_TITLE_DESC"
label="JGLOBAL_TITLE"
maxlength="100"
required="true"
filter="raw"
size="35"
/>

It does not help - it still cuts.
Question: what to do? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-10-19
@cyber-jet

Perhaps I did not catch the essence of the problem, but each menu item has its own id, then think for yourself what to do with it...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question