How to add HTML element inside of link tag in typoscript


   

How to add span tag inside of link tag in typoscript
OR
How to add span tag between link of menu in typoscript

stdWrap.wrap = <span>|</span>

Typoscript for menu

lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.wrap = <ul>|</ul>
lib.mainMenu.1 = TMENU>
lib.mainMenu.1.NO {
    allWrap = <li>|</li>
    stdWrap.wrap = <span>|</span>
}

OUT PUT is like

<ul>
    <li><a href="..."><span>Menu 1</span></a></li>
    <li><a href="..."><span>Menu 2</span></a></li>
    <li><a href="..."><span>Menu 3</span></a></li>
</ul>
Advertisements

One thought on “How to add HTML element inside of link tag in typoscript

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s