[TYPO3-english] Flexible menu starting points
Pero Peric
pperic at mail.com
Wed Jul 23 16:10:17 CEST 2014
On 22.7.2014. 23:42, JoH asenau wrote:
>>> special.value.data = levelfield:-1, myfieldname, slide
>>
>> So, there is something like register rootline fields in Install tool?
>> Can you give some more hints where to look because i never saw this?
>
> Go to "All Configuration" and open the FE accordion
>
> addRootlineFields
>
>>> The slide option will make levelfield start at the given level and then
>>> check for an existing value of that field down the rooltine until a
>>> value will be found or the root page is reached. Is there a value on
>>> page J? No? - OK, check page G and so on.
>>
>> So, if I set levelfield to -1 it will slide to -2,-3 etc., not to
>> 0,1,2..?
>
> Exactly - positive and negative starting values will both slide "up the
> rootline", so they will start at the given position and then go to the
> parent levels until there is something to be found.
Joey thank you very much for help. I made this to work but i like to be
as much as user friendly as possible so one more question if it's not a
problem. So, for now i did it like this:
Created field in pages tables called "menuroot" of type "Database
relation". This gives BE user possibility to pick one page (this should
be in fact the same page he edits). So this will be pageID for:
special.value.data = levelfield:-1, menuroot, slide
and this works fine.
What would be more user friendly is to put only a checkbox "Menu
starting point" but then i should do something like:
if (levelfield:-1, menuroot, slide) == 1
special.value = pageID_of_the_page_where_this_is_true
so i wonder if this is possible? Thx!
regards.
More information about the TYPO3-english
mailing list