Technology Tools for Ministry

Community

Web-Empowered Church User Community
Total Posts: 27 - Pages (3): [1] 2 3
user picture Author: Calum MacLeod
Posted: Apr 26 2008 - 11:40 AM
Subject: Category footer
Whilst I have successfully assigned categories to almost all my events, I want now to be able to produce a simple list of events on my home page, but I want to hide the event footer line in the list view that says
"Category: tea party"
or whatever. I would appreciate being pointed in the right direction

I have looked at files under typo3/ext/cal/template but could not see "category" mentioned there.
I have also looked at typo3/ext/cal/view/class.tx_cal_listview.php but when I commented out a couple of conditional lines, that did not work for me. Is it because list_wrapper is missing from that file?

Is there an easy way to suppress the category information? I want category information to remain in the database so that I can manipulate views in other areas of the site, e.g., to show "Services" only or "Youth" events only. However, I do not want to see the category mentioned a dozen times on the front page. Will there be a tick-box added that will enable users to show category or hide category under a selected view?

Thanks,
Calum
Author: Manfred Hungerland
Posted: Apr 28 2008 - 03:27 AM
Subject: re: Category line
Hi Calum

you have to edit the file: >> phpicalendar_event.tmpl

You could make a copy of the file to >> fileadmin/ext-templates/cal/
and then:
event.phpicalendarEventTemplate = fileadmin/ext-templates/cal/phpicalendar_event.tmpl


Edit the file from this ( Line 192 > 207 ):

<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_ODD### start -->
<dt>
<!-- ###EVENT_LINK### start-->###IMAGE### ###TITLE###<!-- ###EVENT_LINK### end--><br />
###STARTDATE### ###ENDDATE### <span class="V9G">###STARTTIME### ###ENDTIME###</span><br />
<br /><span class="V9G">###CATEGORY_LINK###</span>
</dt>
<dd>###DESCRIPTION###</dd>
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_ODD### end -->
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_EVEN### start -->
<dt class="even">
<!-- ###EVENT_LINK### start-->###IMAGE### ###TITLE###<!-- ###EVENT_LINK### end--><br />
###STARTDATE### ###ENDDATE### <span class="V9G">###STARTTIME### ###ENDTIME###</span><br />
<br /><span class="V9G">###CATEGORY_LINK###</span>
</dt>
<dd class="even">###DESCRIPTION###</dd>
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_EVEN### end -->


to this:

<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_ODD### start -->
<dt>
<!-- ###EVENT_LINK### start-->###IMAGE### ###TITLE###<!-- ###EVENT_LINK### end--><br />
###STARTDATE### ###ENDDATE### <span class="V9G">###STARTTIME### ###ENDTIME###</span><br />

</dt>

<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_ODD### end -->
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_EVEN### start -->
<dt class="even">
<!-- ###EVENT_LINK### start-->###IMAGE### ###TITLE###<!-- ###EVENT_LINK### end--><br />
###STARTDATE### ###ENDDATE### <span class="V9G">###STARTTIME### ###ENDTIME###</span><br />

</dt>

<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_EVEN### end -->


Shalom
Manfred
user picture Author: Calum MacLeod
Posted: Apr 28 2008 - 05:59 AM
Subject: re: Category line
Manfred,

Thanks for the quick reply and for providing the fix.

I followed all your instructions including making a copy of the file into fileadmin/ext-templates/cal/ and then editing it there. In fact, I downloaded the file and edited it using PSPad and then uploaded it, taking care to overwrite. I could see what the changes were and why they were being made.

The one thing that I was not sure about was what to do with

event.phpicalendarEventTemplate = fileadmin/ext-templates/cal/phpicalendar_event.tmpl
.

I opted to put it in the typoscript tab of the plugin.tx_cal_controller: in the plugin.
Maybe this is where I did the wrong thing?

To my surprise, even though I have cleared out caches, etc. nothing has changed yet. I still have the category line showing up.

Many thanks,

Calum
user picture Author: Calum MacLeod
Posted: Apr 28 2008 - 06:21 AM
Subject: re: re: Category line
Manfred,
Joy!
I edited the file in the typo3conf section and that worked.
I am still interested in how to get it to work from the fileadmin section?
Thanks very much.
I am very pleased.
Cheers,
Calum
Author: Manfred Hungerland
Posted: Apr 28 2008 - 07:57 AM
Subject: re: Category line
Hi Calum

this Line:
event.phpicalendarEventTemplate = fileadmin/ext-templates/cal/phpicalendar_event.tmpl


Belong to the TS Settings in the Template where your other TS Settings for the Cal are.

Shalom
Manfred
Author: Jeff Segars
Posted: Apr 28 2008 - 08:59 AM
Subject: re: Category line
Hey guys,
I'll jump in with one quick bit of advice. In the Typoscript above, make sure you're including plugin.tx_cal_controller before the event.phpicalendarEventTemplate part. Manfred is probably copying this from a big Typsocript block where the cal-specific part is already included in some earlier lines.

Thanks,
Jeff
Author: Manfred Hungerland
Posted: Apr 28 2008 - 10:09 AM
Subject: re: Category line
user picture Author: Calum MacLeod
Posted: Apr 28 2008 - 11:18 AM
Subject: re: Category line
Manfred,
I am able to edit the file:
typo3conf/ext/cal/template/phpicalendar_event.tmpl
and to switch the categories line on or off very easily.

In addition to having the calendar in the standard wec-typo3 location, I also have a list view of the calendar that runs down the right_hand_side of my homepage.

It seems that the homepage is taking its control from
typo3conf/ext/cal/template/phpicalendar_event.tmpl

rather than from
fileadmin/ext-templates/cal/phpicalendar_event.tmpl


If I edit the file under typo3conf, changes appear in the homepage.
If I edit the file under fileadmin, NO changes appear in the homepage.

I have added the lines
plugin.tx_cal_controller {
event.phpicalendarEventTemplate = fileadmin/ext-templates/cal/phpicalendar_event.tmpl
}

into the setup of my homepage and as the only entry into the plugin.tx_cal_controller tab when inserting the page item for the calendar.

In this connection, I am afraid that I do not follow Jeff's comment? Do you mean, Jeff, that I should add the piece I have just quoted into the phpicalendar_event.tmpl under fileadmin or under tpo3conf? I am sorry to be confused

Cheers,

Calum

user picture Author: Calum MacLeod
Posted: Apr 28 2008 - 11:25 AM
Subject: re: Category line
duplicated in error

Author: Manfred Hungerland
Posted: Apr 28 2008 - 01:21 PM
Subject: re: Category line
Hi Calum

this belong in the Constants: / not Setup:
here my Sample:
plugin.tx_cal_controller {
emailOrganisation = {$constants.wec.siteName}
emailAddress = noreplay@domain.ch
emailName = {$constants.wec.siteName}
view {
dateFormat = {$constants.wec.dateFormat}
timeFormat = {$constants.wec.timeFormat}
# Templates
event.phpicalendarEventTemplate = fileadmin/ext-templates/cal/phpicalendar_event.tmpl
#event.createEventTemplate = fileadmin/ext-templates/cal/create_event.tmpl
event.createEventTemplate = fileadmin/ext-templates/cal/create_event__ver_1.tmpl
list.listWithTeaserTemplate = fileadmin/ext-templates/cal/list_w_teaser.tmpl
list.listTemplate = fileadmin/ext-templates/cal/list.tmpl
#testwec.domain2.ch
location.map.apiKey = H4k4KM-7W6VQBRmwqTdHk8hgPCsUarNIQCqEjEtURRR8obrNWC8pEvmLAj5Z--CUDlTcg
#www.domain1.ch
#location.map.apiKey = -7W6VQBRf0FePgkyxmUXJn9hmf5uqva2aGBQEHbZ_hWLtb_TV7znBj6MvQHpX5w
location.map.mapWidth = 500
location.map.mapHeight = 500
location.showMap = 1
}
}
Total Posts: 27 - Pages (3): [1] 2 3
You must login to post a message to this conference.