[TYPO3] RealURL and custom menu

Loek Hilgersom hilgersom at xs4all.nl
Sat Apr 29 17:33:33 CEST 2006


Hi all,

Here's a TypoScript link-creating puzzle:

I configured RealURL for a site and all works fine, except for one customized 
menu. It is totally clear why the URL's are not changed to speaking-Url's 
(because they are 'handcrafted' by TS), but I have no idea how to get the same 
result otherwise. Would it possible to do this using typolinks?


# Menu-object, with div-tags for graphics and titles in separate div
temp.pmenu.1 = TMENU
temp.pmenu.1 {
	# expand all submenus by default (= 1)
	expAll = 0
	# wrap everything
	wrap = <div class="blockmenu">|</div>
	# Normal state properties
	NO {
		stdWrap.htmlSpecialChars = 1
		beforeWrap = <div class="color1">|| <div class="color2">|| <div 
class="color3">|| <div class="color4">|| <div class="color5">|| <div 
class="color6">|| <div class="color7">
		linkWrap = |
		doNotShowLink = 1
		before.cObject = TEXT
		before.cObject.field = uid
		before.cObject.dataWrap = <a href="index.php?id= | ">&nbsp;</a>
		after.cObject = TEXT
		after.cObject.field = title//nav_title
		after.cObject.wrap = <div>|</div></div>
		#afterWrap =
	}
}


The resulting HTML should look like this, except that I would like the url to be 
speaking-Url's:

<div class="blockmenu">
	<div class="color1">
		<a href="index.php?id=28">&nbsp;</a>
		<div>Item1</div>
	</div>
	....
</div>

Thanks,
Loek



More information about the TYPO3-english mailing list