Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Calendar Base Extension > iconic link to editorial page
Total Posts: 12 - Pages (2): [1] 2
user picture Author: Calum MacLeod
Posted: Apr 11 2008 - 03:42 PM
Subject: iconic link to editorial page
You know how there are four icons on the top right corner of the calendar - for day, week, month and year? I have set up pages to show additional views such as: event, list and edit. I wonder how to access them at the front end. Do I need to allow these pages to be in the menu or is there a way of linking to them using icons? Just curious at this stage as I can include list with some of the other views.

What is the function of Edit Calendar or Edit Event or Edit Organiser, etc. if one has to do it in the back end anyway? Just wondering how I might use these extra options made available as items in the General Settings - Allowed Views section?

Just wondering if there is a way to edit the calendar without doing it at the back end?

Looking forward to finding out as I reckon that these views have been made available for a purpose!

Cheers,
Calum
Author: Manfred Hungerland
Posted: Apr 12 2008 - 03:06 PM
Subject: re: iconic link to editorial page
Hi Calum

I have set up pages to show additional views such as: event, list and edit.

I can do that but i don't have to.

[url]Do I need to allow these pages to be in the menu or is there a way of linking to them using icons?[/url]
Yes and Yes

To allow the views you have to select them in: Allowed views
( For the beginning try to enable all )

What is the function of Edit Calendar or Edit Event or Edit Organiser, etc. if one has to do it in the back end anyway? Just wondering how I might use these extra options made available as items in the General Settings - Allowed Views section?


You have to set the propper rights.
( Check out the configsample )
The admingroup / User has all rights.

The Manual is also very Helpfull. As soon you now for what to look for.
Sample Constants:

plugin.tx_cal_controller {
emailOrganisation = {$constants.wec.siteName}
emailAddress = noreplay@domain.ch
emailName = {$constants.wec.siteName}
view {
#event.event.dateFormat = DD-MM-YYYY
dateFormat = %d.%m.%Y
timeFormat = %H:%M
# Templates
event.phpicalendarEventTemplate = fileadmin/ext-templates/cal/phpicalendar_event.tmpl
event.createEventTemplate = fileadmin/ext-templates/cal/create_event.tmpl
list.listWithTeaserTemplate = fileadmin/ext-templates/cal/list_w_teaser.tmpl
list.listTemplate = fileadmin/ext-templates/cal/list.tmpl
#testwec.domain.ch
location.map.apiKey = ABQIAAAALAyPM0cN5H4k4KM-TEST ONLY
#www.domain.ch
#location.map.apiKey = ABQIAAAALAyPM0cN5H4uqv-TEST ONLY
location.map.mapWidth = 500
location.map.mapHeight = 500
location.showMap = 1
}
}


Sample Setup:

#config.sys_language_mode = strict
# This is only for Multilanguages Site usefull
#
plugin.tx_cal_controller {
pidList = 170
#showRecordsWithoutDefaultTranslation = 1
subscribeFeUser = 1
view {
event.eventViewPid = 114
create_event.redirectAfterCreateToPid =114
translation.languageMenu{
0 = IMAGE
0 {
file = fileadmin/ext-templates/lang_flags/de.gif
offset = 2,2
}
54 = IMAGE
54 {
file = fileadmin/ext-templates/lang_flags/fr.gif
offset = 2,2
}
55 = IMAGE
55 {
file = fileadmin/ext-templates/lang_flags/it.gif
offset = 2,2
}
}
}
rights {
defaultSavePid = 170
edit = 1
admin.group = 32,33
allowedGroups = 32,33,1
create.translation.group = 1
#
create {
event.group = 1
event.enableAllFields.group = 1
event.fields.cal_location.group = 1
location.group = 1
location.enableAllFields.group = 1
}
edit {
event.group = 1
event.enableAllFields.group = 1
#enableRTE = 0
location.group = 1
location.enableAllFields.group = 1
#organizer.group = 1
#organizer.enableAllFields.group = 1
}
delete {
#event.group = 1
event.onlyOwnEvents.group = 1
location.group = 1
}
}
}
user picture Author: Calum MacLeod
Posted: Apr 12 2008 - 03:31 PM
Subject: re: iconic link to editorial page
Manfred,

Thanks for your reply.

Based on the sample setup information you supply, I am going to see if I can work out how to customise that to my setup.

I shall need a little while to digest what you have said. The last time that I looked at the typo3 extensions site I did not see the manual, so I shall also read that before I come back with more questions.

Thanks very much for pointing me in helpful directions,

Cheers,
Calum


user picture Author: Calum MacLeod
Posted: Apr 13 2008 - 04:29 PM
Subject: re: iconic link to editorial page
I have had a look at the manual and have made a little progress in that I now get little yellow pencils at the end of events in my month view.

However, I am uncertain as to the rights issues because I am not sure whether your use of 1 consistently refers to groups or is usually just a switch that is set at ON ?

I am afraid that my grasp of Typo3 is very weak.

My pages are arranged roughly like this:
Pid= [37] Calendar
Pid= [54] Event
Pid= [103] Day
Pid= [104] Week
Pid= [53] Month
Pid= [100] Year
Pid= [101] List

I have the calendar system folder at Pid=[99] calstore

The group that can edit has an ID of 31

The fe-users who can edit are 11 and 10.

My main system folder is at Pid=33.

If there is a how-to that would enable me to configure typoscript to use the above values, I think that I would be OK. However, I have not yet found someone as backward as myself who wants to tackle this

Thanks,
Calum
Author: Manfred Hungerland
Posted: Apr 14 2008 - 02:54 AM
Subject: re: iconic link to editorial page
Hi Calum

Pid= [37] Calendar
Pid= [54] Event
Pid= [103] Day
Pid= [104] Week
Pid= [53] Month
Pid= [100] Year
Pid= [101] List

First do you need that? If you want a diffrent Pagedesign for every Page then yes else i would suggest that you take 1 Page for the Cal and maybe one for a sigleview.


I have the calendar system folder at Pid=[99] calstore

Please Check to right Place for this Settings in my last Post:
pidList = 99
defaultSavePid = 99

The group that can edit has an ID of 31
The fe-users who can edit are 11 and 10.

admin.group = you should also create a Admingroup that has all rights /
It is also very useufull for testing then you see
if you have a rights Problem or another.
allowedGroups = 31
Have a look at my Sample. The main Group for the Users is 1 on my Site.
( It is Easyer to maintain Groups if you have many Users

http://typo3.org/documentation/document-library/extension-manuals/cal/0.17.1/view/10/9/#id4018594
Look for this >> plugin.tx_cal_controller.rights.edit.event

If there is a how-to that would enable me to configure typoscript to use the above values, I think that I would be OK. However, I have not yet found someone as backward as myself who wants to tackle this


I did not find one. After gong thru the Manual for a "some" time i could figer it out.
Also with the Help of the Newsgroup.

I hope i cold help you.
Shalom
Manfred
user picture Author: Calum MacLeod
Posted: Apr 14 2008 - 07:51 AM
Subject: re: iconic link to editorial page
Manfred,
Thanks again for your informative response.

I have found that if try to show all views using the one plugin, that does not work for me. I suppose I could put several different views of the calendar on one page but I have chosen to put the views on different pages. To do so, all I change is the header for the plugin and the view that is to be displayed.

I can get the Calendar to display without difficulty at the front end. I can get it to display properly in Year, Month, Week, Day, Event or List view.

Somehow, there is something that I have missed out on in setting it up for front-end editing. I can get the pencil icons showing up but they do not take me anywhere.

Although I can create a user group, I am unable to create one with the ID=1, like you have done.

Sorry for being so obtuse about this!

I am away from my computer until the end of the week for a few days' break, but I shall be thinking about how to configure all this.

Cheers,
Calum
Author: Manfred Hungerland
Posted: Apr 14 2008 - 08:15 AM
Subject: re: iconic link to editorial page
Hi Calum

Sorry for being so obtuse about this!

No not at all !! I understand it is in the beginnig not that simple.

Although I can create a user group, I am unable to create one with the ID=1, like you have done.

You don't have to do a Group with uid=1 / just adapt the settings /
In your case >> The group that can edit has an ID of 31

here a little bit adapted ( I just adapted the Edit-User !! )


plugin.tx_cal_controller {
pidList = 3170
#showRecordsWithoutDefaultTranslation = 1
subscribeFeUser = 31
view {
event.eventViewPid = 114
create_event.redirectAfterCreateToPid =31314
translation.languageMenu{
0 = IMAGE
0 {
file = fileadmin/ext-templates/lang_flags/de.gif
offset = 2,2
}
54 = IMAGE
54 {
file = fileadmin/ext-templates/lang_flags/fr.gif
offset = 2,2
}
55 = IMAGE
55 {
file = fileadmin/ext-templates/lang_flags/it.gif
offset = 2,2
}
}
}
rights {
defaultSavePid = 3170
edit = 31
admin.group = # put the uid of the admin group here
allowedGroups = 31 # and also your other Groups
create.translation.group = 31
#
create {
event.group = 31
event.enableAllFields.group = 31
event.fields.cal_location.group = 31
location.group = 31
location.enableAllFields.group = 31
}
edit {
event.group = 31
event.enableAllFields.group = 31
#enableRTE = 0
location.group = 31
location.enableAllFields.group = 31
#organizer.group = 31
#organizer.enableAllFields.group = 31
}
delete {
#event.group = 31
event.onlyOwnEvents.group = 31
location.group = 31
}
}
}


for you this will be interesting:
http://typo3.org/documentation/document-library/extension-manuals/cal/0.17.0/view/10/9/#id3847991

Specialy these setings:
plugin.tx_cal_controller.view {
dayLinkTarget= 103 ## The view to be rendered when clicking on a day link
weekLinkTarget = 104 ## The view to be rendered when clicking on a week link
monthLinkTarget = 53 ## The view to be rendered when clicking on a month link
yearLinkTarget = 100 ## The view to be rendered when clicking on a year link
}

Hope this helps.

btw: If your loking for a realy good Offline Editor try this one
http://www.pspad.com/de/
this Edito has also typoscript support ( looks nicer )

Shalom
Manfred
user picture Author: Calum MacLeod
Posted: Apr 21 2008 - 05:40 PM
Subject: re: iconic link to editorial page
Manfred,

Thanks for your further help.

Currently, when I click on the little pencil for front-end editing, what happens is that that a dialog box appears. It is blue with adjustable edges. It has a title-bar with a _ and an x at the right hand end. For a few seconds, it says "Loading ..." and then a couple of buttons appear: "Save" and "Cancel".

I reckon that I must be getting close but not close enough yet I shall keep trying.

Cheers,

Calum

Author: Manfred Hungerland
Posted: Apr 22 2008 - 05:19 AM
Subject: re: iconic link to editorial page
Ok, in that case you have the Ajax FE Edit Template. This is still Experimental.
( under Static Templates in the Main-Template)

Please change this to Fe-Editing ( cal ).

Shalom
Manfred
user picture Author: Calum MacLeod
Posted: Apr 22 2008 - 07:35 AM
Subject: re: iconic link to editorial page
Manfred - blessings upon you!
With your help, I have succeeded.
Thank you for your patience!
I feel that a new world has opened up to me with all the options for adding pictures and so forth. Had I realised how great the options were, I would have felt even more frustrated than I did
Thank you very much for sharing your knowledge and your time. It has worked out perfectly for me.
Cheers,
Calum
Total Posts: 12 - Pages (2): [1] 2
You must login to post a message to this conference.