[TYPO3-dev] EXT:tstemplate patch request.

Dennis Cheung hkdennis2k at gmail.com
Wed Feb 22 12:32:52 CET 2006


Hi,

You can't do it in that way.
the engine will not remember which file the constant come from. (
Unless you rewrite it from zero.)

And same constant may define from different source.

You have to CREATE NEW ATTRIBUTE in the comment,

# allowNonAdmin=0; cat=basic/enable/150; type=boolean; label= ..........
style.header.color=#33cc88
....

And you have to make sure the mod only append constant value into the database.
It can't allow add any comment from non-admin. (because all comment are mixed)

Or you define a white list of constant name somewhere else.

Dennis

On 2/22/06, Stig Nørgaard Færch <stig at 8620.dk> wrote:
> Dennis Cheung skrev:
> > Hi Michael,
> >
> > You idea is possible.
> > In fact, I am working on it for weeks.
> >
> > It can be done, but it take too much to do / to rewrite / test.
> > The most important is you have to define a "admin-list" and
> > "safe-list" of constant name.
>
> I was just thinking it more simple like this:
> adding a ext_conf_template.txt file including this:
>
>    # cat=basic//10; type=boolean; label= Allowing non-admins: Allowing
> non-admins to access the tstemplate module.
> enableNonAdmins = 0
>
>    # cat=basic/enable/120; type=boolean; label= If enableNonAdmins is
> set: Allow the Constant Editor view for non-admins?
> allowCeditor = 0
>
>    # cat=basic/enable/130; type=boolean; label= If enableNonAdmins is
> set: Allow the Info/Modify view for non-admins?
> allowInfoModify = 0
>
>    # cat=basic/enable/140; type=boolean; label= If enableNonAdmins is
> set: Allow the Typoscript Object Browser view for non-admins?
> allowTSObjectBrowser = 0
>
>    # cat=basic/enable/150; type=boolean; label= If enableNonAdmins is
> set: Allow the Template Analyzer view for non-admins?
> allowTemplateAnalyzer = 0
>
> Then you give access to non-admins by setting enableNonAdmin and one or
> more of the allow* parameters.
> Then you will also have to give access to the tstemplate module itself
> to the specific user.
>
> What do you think about this solution?
>
> /Stig
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>




More information about the TYPO3-dev mailing list