[TYPO3] Unique wrap based on menuitem pid
James Corell
jcorell at e-p-c-s.com
Mon Jul 9 22:28:12 CEST 2007
I'm beginning to think that TYPO3 doesn't have the capability to make
exceptions for individual menuitems. This is a serious downside to TYPO3.
I've tried [if] [else] statements, which only work on global data, not the
menuitem data.
I've tried stdWrap.if statements, which work, but don't provide "else"
capability.
Somebody please tell me I don't have to create a user-written handler
(PHP/Javascript) of some kind to specify unique menuitem behavior for
individual links?
-------------------------
James Corell
EPCS, 111 W. Mitchell St. Suite E, Gaylord, MI 49735
DSL for Businesses - Websites That Work!
jcorell at e-p-c-s.com www.e-p-c-s.com
989-732-1366 (fax 989-732-0893)
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de]On Behalf Of James
Corell
Sent: Monday, July 09, 2007 2:33 PM
To: TYPO3 English
Subject: Re: [TYPO3] Unique wrap based on menuitem pid
I did some more experimental work with this, and discovered two things:
1) wrapItemAndSub doesn't seem to allow .if statements
2) equals.field = uid doesn't work
I'm using "wrap" now, but any ideas on what other equality statements I
could use to test the uid of the current menuitem?
-------------------------
James Corell
EPCS, 111 W. Mitchell St. Suite E, Gaylord, MI 49735
DSL for Businesses - Websites That Work!
jcorell at e-p-c-s.com www.e-p-c-s.com
989-732-1366 (fax 989-732-0893)
-----Original Message-----
From: typo3-english-bounces at lists.netfielders.de
[mailto:typo3-english-bounces at lists.netfielders.de]On Behalf Of Tapio
Markula
Sent: Saturday, July 07, 2007 2:59 AM
To: typo3-english at lists.netfielders.de
Subject: Re: [TYPO3] Unique wrap based on menuitem pid
James Corell:
>
> THIS_SITE.menuLeft.1 = TMENU
> THIS_SITE.menuLeft.1 {
> expAll = 1
> IFSUB = 1
> IFSUB.doNotLinkIt = 1
> IFSUB.wrapItemAndSub = <div class="menuleft-no1"> | </div>
> NO.wrapItemAndSub = <div class="menuleft-no1"> | </div>
> }
>
> I ought to be able to do something like this:
>
> NO.wrapItemAndSub = <div class="menuleft-no1" onClick="return
> submitForm();"> | </div>
> NO.wrapItemAndSub.if {
> value = 400
> equals.field = the_name_of_the_variable_that_holds_the_menuitem_pid
> }
>
> and have the wrap only affect PID 400. But what is
> "the_name_of_the_variable_that_holds_the_menuitem_pid"? And will this
work?
uid - you could use phpMyAdmin to look field names
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list