[TYPO3-english] hide(and make it not reachable) page depending the domain you're on
David Vandemaele
vd2m at hotmail.com
Thu Nov 20 15:39:54 CET 2008
Thx,
ok, didn't thought of that.
And sure I read the tsref, even more than once, but didn't think
'further'....
David.
Tyler Kraft schreef:
> God lord - has anyone other than me read TSref!?
>
> Sorry for sounding snippy but really this isn't a hard solution. Simply
> use conditions and then a simple php header to redirect them out to a
> different page.
>
> [globalVar = TSFE:id=7]&&[globalString = HTTP_HOST=www.typo3.com]
> config.additionalHeaders = Location: www.typo3.com/index.php?id=19
> [global]
>
> Hth
>
> David Vandemaele wrote:
>> Rob,
>>
>> yes, you're correct. But what with preventing people from reaching
>> those page by typing in the url manually. Or am I missing the point here?
>>
>> David
>>
>> Rob De Vries schreef:
>>> David Vandemaele wrote:
>>>> Hello,
>>>>
>>>> depending on the domain you're on, I want some pages to be shown or
>>>> hidden in the menu. I use the 'excludeUidList' param in the template
>>>> setup to do this. However, when you type in the url to that page, it
>>>> is still reachable.
>>>> How can I fix this?
>>>>
>>>> I thought of setting the 'hide page' flag of that page to 1
>>>> depending the domain, but untill know, I was only able to hide that
>>>> field in the BE, but not to change the value of that checkbox.
>>>>
>>>> Best regards,
>>>> David
>>>
>>> add {$myexcludeUidList} instead of a list of numbers in your TS
>>> add the pagenumbers in your constants and place it in a condition.
>>>
>>>
>>> [globalString = HTTP_HOST=www.typo3.com]
>>> myexcludeUidList = 1,2,3
>>> [end]
>>>
>>>
>>> now, for each domain you can choose the pages you like to exlude.
>>>
>>> Rob
>>>
>>>
>>>
More information about the TYPO3-english
mailing list