[TYPO3-UG Dutch] generen menu met <a> element op andere plaats
Thijs Hakkenberg
thijs at hakkenberg.com
Wed Jun 2 17:12:06 CEST 2010
Ach ja, natuurlijk!
Ik heb nu dit:
config.spamProtectEmailAddresses = 2
config.spamProtectEmailAddresses_atSubst = (at)
config.language = nl
config.sys_language_uid = 0
config.locale_all = nl_NL
config.locale_all = nl_NL.ISO8859-1
config.locale_all = nl_NL.ISO8859-15
config.doctype = xhtml_trans
config.xhtml_cleaning = all
# Configuring the Auto-Parser for main template:
plugin.tx_automaketemplate_pi1 {
# Read the template file:
content = FILE
content.file = fileadmin/template/2010/index.html
# Here we define which elements in the HTML that
# should be wrapped in subpart-comments:
elements {
BODY.all = 1
BODY.all.subpartMarker = DOCUMENT_BODY
HEAD.all = 1
HEAD.all.subpartMarker = DOCUMENT_HEADER
HEAD.rmTagSections = title
TD.all = 1
DIV.all = 1
}
# Prefix all relative paths with this value:
relPathPrefix = fileadmin/template/2010/
}
# Menu 1 cObject
temp.menu_1 = HMENU
# First level menu-object, textual
temp.menu_1.1 = TMENU
temp.menu_1.1.wrap = <ul> | </ul>
temp.menu_1.1 {
NO
{
allWrap =<li>|</li>
ATagBeforeWrap = 1
linkWrap= <span>|</span>
}
ACT = 1
{
allWrap =<li>|</li>
ATagBeforeWrap = 1
linkWrap= <span>|</span>
ATagParams = class="active"
}
On 2-6-2010 16:30, Eef Wesselink wrote:
> Hallo Thijs,
>
> met ATagParams kun je bijvoorbeeld aangeven:
>
> ATagParams = class="mijnclass"
>
> Met vriendelijke groet,
>
> Eef Wesselink
> mictoss
>
> Thijs Hakkenberg wrote:
>
>
>> Maar dan is het toch niet mogelijk om in het<a> element een class te
>> laten generen? Alleen daarbinnen?
>> Ik heb nu deze code:
>>
>> # Menu 1 cObject
>> temp.menu_1 = HMENU
>> # First level menu-object, textual
>> temp.menu_1.1 = TMENU
>> temp.menu_1.1.wrap =<ul> |</ul>
>> temp.menu_1.1 {
>>
>> NO
>> {
>> allWrap =<li>|</li>
>> ATagBeforeWrap = 1
>> linkWrap=<span>|</span>
>> }
>> ACT = 1
>> {
>> allWrap =<li>|</li>
>> ATagBeforeWrap = 1
>> linkWrap=<span>|</span>
>> }
>>
>> }
>>
>> maar dit lijkt niet te werken...
>>
>>
>> On 2-6-2010 8:17, Daniel Doesburg | Doesburg.biz wrote:
>>
>>> Op 1-6-2010 23:39, Drs. ing. W.S.M. Perquin schreef:
>>>
>>>> http://lists.typo3.org/pipermail/typo3-ug-dutch/2010-January/013053.html
>>>> Daniel geeft je antwoord.
>>>> Met uitleg en een stuk typoscript.
>>>>
>>>> Willem
>>>>
>>> Waarbij ATagBeforeWrap = 1 de essentie is. Die zorgt er voor dat de
>>> wrap "binnen" de link komt.
>>>
>>> Met vriendelijke groeten,
>>>
>>> Daniel Doesburg
>>> _______________________________________________
>>> TYPO3-UG-Dutch mailing list
>>> TYPO3-UG-Dutch at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
>>>
>>>
> _______________________________________________
> TYPO3-UG-Dutch mailing list
> TYPO3-UG-Dutch at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-ug-dutch
>
>
More information about the TYPO3-UG-Dutch
mailing list