[TYPO3-english] Menu with picture, multiple wraps and real url. Problem: replace spaces with "-"
Brian Hauge Hansen
b.hansen at mobilethink.com
Sun Oct 23 15:51:47 CEST 2011
Hi Jigal
Thanks for the advise and letting me on the right track.
Got the following, which works:
## Menu [Begin]
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu.wrap = <ul id="sdt_menu" class="sdt_menu">|</ul>
lib.mainMenu.1 = TMENU
lib.mainMenu.1.NO {
before.wrap = <li>|
stdWrap.cObject = COA
stdWrap.cObject {
10 = IMAGE
10.file.import = uploads/media/
10.file.import.field = media
10.file.import.listNum = 0
20 = TEXT
20.field = title
20.wrap = <span class="sdt_active"></span><span class="sdt_wrap"><span
class="sdt_link">|
30 = TEXT
30.field = subtitle
30.wrap = </span><span class="sdt_descr">|</span></span>
}
after.wrap = |</li>
}
## Menu [End]
This snippet wraps a menu in <ul></ul> and the menu points in <li></li>
It displayes an image from the current page's ressource, the page title
and subtitle.
A way of realizing: http://tympanus.net/Tutorials/SlideDownBoxMenu/
My demo: http://basic.brianhauge.dk/
--
Best Regards / Med venlig hilsen
Brian Hauge Hansen
Project Manager
Mobilethink-
Ny Banegaardsgade 55
8000 Aarhus C
Denmark
Phone: +45 86 20 78 05
Mobile: +45 25 21 20 02
Email: b.hansen at mobilethink.com
<mailto:support at mobilethink.com>Web: www.mobilethink.dk
<http://www.mobilethink.dk/>
On 10/23/11 2:29 PM, "Jigal van Hemert" <jigal at xs4all.nl> wrote:
>Hi,
>
>On 23-10-2011 12:58, Brian Hauge Hansen wrote:
>> Ive tried to realize this with the following typoscript, which build
>> realurl links. But my problem comes with links (title) that has spaces
>> in them. How can I replace the spaces with "-" ?
>
>That's the wrong way of making links. Just use the normal menu features
>or use typolink (and just use the page ID for that).
>If Realurl is installed and configured properly it will automatically
>modify the links created in the core (in menus, typolink, etc.) and
>create speaking URLs.
>You don't have to try to create them yourself.
>
>Since you're creating a menu, all you need to focus on is to create
>right wraps around various parts of link title, complete link, etc.
>
>--
>Kind regards / met vriendelijke groet,
>
>Jigal van Hemert.
>_______________________________________________
>TYPO3-english mailing list
>TYPO3-english at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list