How can I add id or class attribute for menu-item?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How can I add id or class attribute for menu-item?

gavinju
Please help me.
I want to add id or class attribute for menu-item, so can get the tag in javascript or css.
Please give me some idea?
Thank you very much.
Reply | Threaded
Open this post in threaded view
|

Re: How can I add id or class attribute for menu-item?

Sumit  Pandit
Hi,
Following is the way how a id/class can be added to the menu-item:

<menu-item name="x" title="x" widget-style="liclassname">
    <link id="linkid" style="linkclassname" target="y"/>
</menu-item>

- A class can be added to <li> using -
      widget-style="liclassname"

- A id & class can be added to link using
      id="linkid" style="linkclassname"

Equivalent HTML code will be generated -
    <li class="liclassname">
        <a href="y" class="linkclassname" id="linkid">x</a>
    </li>


--
Thanks and Regards
Sumit Pandit
Digital Commerce
Digital Software and Solutions
Tata Consultancy Services
Ph:- +91 124 610 1145
Buzz:- 414 1145
Cell:- (+91) 750 304 6188
Mailto: [hidden email]
____________________________________________


----- Original Message -----
| From: "gavinju" <[hidden email]>
| To: [hidden email]
| Sent: Sunday, March 30, 2014 7:10:57 AM
| Subject: How can I add id or class attribute for menu-item?
|
| Please help me.
| I want to add id or class attribute for menu-item, so can get the tag
| in
| javascript or css.
| Please give me some idea?
| Thank you very much.
|
|
|
| --
| View this message in context:
| http://ofbiz.135035.n4.nabble.com/How-can-I-add-id-or-class-attribute-for-menu-item-tp4649999.html
| Sent from the OFBiz - Dev mailing list archive at Nabble.com.
|
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


Reply | Threaded
Open this post in threaded view
|

Re: How can I add id or class attribute for menu-item?

gavinju
Thank you for your help, I have solved the problem.