[Typo3-dev] FE-editing of tt_news
Stefan Geith
typo3dev at geithware.de
Fri Apr 2 12:10:39 CEST 2004
Hi Devs,
I'm trying to write an extension of tt_news, which allows
FrontEnd-Editing of the News (sg_fenewsedit).
Question:
Is there a way to use editing-functions from the backend ?
First I tried to use getSingleField_typeSelect from t3lib_TCEforms
to get the form-field for the category-selection of the news.
But this works only as long as I am also logged in as a BE user.
Can I simulate a BE-user if none is logged in ?
Or is there a function, which disables the checking of access-rights ?
Is there any chance, to use one of these functions in my
frontent-plugin with NO BE-User logged in ?
Or do I have to rewrite all these functions/utilities ?
Would be much work (Image/Element-Browser etc.) ...
Thanks for any hints!
Stefan Geith
--
P.S.: For all, who want to test my sg_fenewsedit plugin:
1) Most of it is a copy of tt_news, so all parameters in
Constants/Setup are the same.
2) plugin.tx_sgfenewsedit_pi1.edit.mode = 2
enables FE-editing of news for ALL FE-users.
So this is for testing only.
3) plugin.tx_sgfenewsedit_pi1 {
edit.mode = 1
edit.admin.user = 0
edit.admin.groupid = 0
edit.seeAll.user = 0
edit.seeAll.groupid = 0
edit.editHidden.user = 0
edit.editHidden.groupid = 0
edit.editFull.user = 0
edit.editFull.groupid = 0
edit.addHidden.user = 0
edit.addHidden.groupid = 0
edit.addFull.user = 0
edit.addFull.groupid = 0
edit.changeProps.user = 0
edit.changeProps.groupid = 0
}
This enables editing for the given users/groups:
.user is a comma-separated list of user-IDs or user-names
.group is a comma-separated list of group-IDs
For all other users, the plugin behaves like the
normal tt_news plugin.
4) This version was programmed fast and rough, so maybe
my php-code isn't very beautyfull...
Stefan Geith
More information about the TYPO3-dev
mailing list