[TYPO3-templavoila] FCE with User Login
Francois Suter
fsuter at cobweb.ch
Wed Sep 26 13:19:43 CEST 2007
Hi,
> Is it possible, that some fields in a FCE are user restricted fields,
> means that some fields are only visible if a user is logged in.
>
> Someone understand my question?
I think so :-)
Basically the output of your FCE is entirely driven by TypoScript,
either because it directly references some TypoScript (when a field is
of type TypoScript Object Path) or because the rendering is defined
using TypoScript. For example, a field designed to contain Content
Elements is rendered as:
[snip]
<eType>ce</eType>
<TypoScript>
10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end-->
</TypoScript>
[/snip]
So if you add a condition in that place (either [usergroup = x, y] or
[loginUser = x, y]) you should be able to filter your rendering
according to identification (to just test login or no login, use
[loginUser = *]).
HTH
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-project-templavoila
mailing list