[TYPO3-dev] Core list RFC: Feature #5613: Enable/integrate conditions in Page TSconfig

Oliver Hader oliver at typo3.org
Tue Oct 20 23:46:53 CEST 2009


Hi Tyler,

Tyler Kraft schrieb:
> Hi,
> 
> In the pending 4.3 version of Typo3 we will be able to use conditions in
> the page TSconfig. This is great news and I'm very happy to hear it.
> 
> But I have a question/concern based upon the positing in the core list
> this morning. According to Oliver we wont be able to make use of
> '[globalVar = TSFE:whatever]' in page TSconig, which makes sense as it's
> not the front end. But does anyone know if there will be another method
> to access some of these same values? It would be very handy to be able
> to use a condition for a specific page ( [globalVar = TSFE:id=428] ) or
> page layout ( [globalVar = TSFE:page|layout=3] )
> 
> It obviously doesn't have to be the same but it would be very helpful to
> have the same functionality without having to write a custom .inc user
> function to do these conditions?

Currently there is no such functionality in the backend. In the frontend
the TSFE is always there and the page record is loaded automatically. In
the backend things are a bit different.

However, it would be possible to introduce a behaviour that is only
valid for backend disposal - therefore we have two new classes
t3lib_matchCondition_frontend and t3lib_machtCondition_backend.

Just a quick idea:
[globalVar = PAGE:layout = 3]
[globalVar = CURRENT:id = 13]

Where CURRENT refers to a current scenario/setting/whatever that was
used for a request. The PAGE object would ensure that the page record is
loaded if an id is given...

But there are more stuff we could think about.

> Cheers
> Tyler
> 
> p.s. I'm posting this here as I'm unsure if I should or am
> allowed/supposed to post in the core list (so erring on the side of
> caution)

In general everyone is allowed to hand in patches to the core list and
participate in voting or commenting a pending RFC. But IMO discussing
this specific issue here in the dev list is better...

olly
-- 
Oliver Hader
TYPO3 Release Manager 4.3




More information about the TYPO3-dev mailing list