Last active
November 12, 2015 11:46
-
-
Save Artem-Schander/587b8606ff6ee5d09efa to your computer and use it in GitHub Desktop.
TypoScript: Navi with li > searchfield
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lib.nav_with_search = COA_INT | |
lib.nav_with_search { | |
stdWrap.prefixComment = 2 | lib.searchbox | |
10 = TEXT | |
10.value = <ul class="sf-menu navbar-table"> | |
20 < lib.mainmenu | |
20 { | |
excludeUidList = 136 | |
2 < .1 | |
2.wrap = <ul>|</ul> | |
3 < .2 | |
} | |
30 = COA | |
30 { | |
10 = TEXT | |
10.htmlSpecialChars = 1 | |
10.typolink.parameter = 155 | |
10.typolink.returnLast = url | |
10.wrap = <li class="search"><span class="glyphicon glyphicon-search" aria-hidden="true"></span><form action="|" method="post"> | |
20 = TEXT | |
20.data = GPvar : tx_indexedsearch | sword | |
20.wrap = <input name="tx_indexedsearch[sword]" placeholder="suchen..." value="|" type="text" /> | |
30 = COA | |
30 { | |
wrap = | | |
10 = TEXT | |
10.value = <input type="hidden" name="tx_indexedsearch[sections]" value="0" /> | |
20 = TEXT | |
20.value = <input name="tx_indexedsearch[submit_button]" value="Search" type="hidden" /> | |
} | |
wrap = | </form></li> | |
} | |
40 = TEXT | |
40.value = </ul> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment