[TYPO3-calendar] fe_cruser_id = 0
Stephan Grass
itunes at stephan-grass.de
Wed Jan 18 11:37:31 CET 2012
> one last question, why don't you use the cruser_id?
I need to differ between events added by fe_user and backend-user.
If I add an event via backend, the cruser_id will become the userid of
the backend-user. When add via frontend, the id of the fe_user. So the
fe_user with the same id as an backend-user will be able to edit the
event. And the event added by this backend-user will be shown in the
list of the fe-user.
In my website, each event-view, which is added by a fe_user, will
become a short visit-card of the fe_user.
Stephan
On 2012-01-17 19:32:05 +0100, Mario Matzulla said:
> Hi Stephan,
>
> one last question, why don't you use the cruser_id?
>
> Regards,
> Mario
>
> Am 16.01.12 10:41, schrieb Stephan Grass:
>> I think it is a standard field. You can found it in ext_tables.sql.
>>
>> To insert the current FE-User in the field fe_cruser_is when create an
>> event I edit /service/class.tx_cal_event_service.php
>>
>> In function saveExceptionEvent($pid) I inset the line
>>
>> // Creating DB records
>> ...
>> $insertFields['fe_cruser_id'] = $GLOBALS['TSFE']->fe_user->user['uid'];
>>
>> This will work for me...
>>
>> Stephan
>>
>>
>> On 2012-01-13 20:09:18 +0100, Mario Matzulla said:
>>
>>> Hi Stephan,
>>>
>>> Am 13.01.12 13:22, schrieb Stephan Grass:
>>>> Hi,
>>>> when add an event in the frontend, the field fe_cruser_id will be 0. The
>>>> fe_user ID will writen in the field cruser_id.
>>>>
>>>> I need the fe_user Id also in the fiel fe_cruser_id to select events
>>>> from fe_users and backend-admins.
>>>>
>>>> What is to do, do set the field fe_cruser_id correctly?
>>>
>>> Is this a new standard field? Or a custom one?
>>>
>>> Regards,
>>> Mario
>>>>
>>>>
>>>> using cal 1.4.0.
>>>>
>>>> Thanks.
More information about the TYPO3-project-calendar
mailing list