Technology Tools for Ministry

Community

Web-Empowered Church User Community
Total Posts: 3 - Pages (1): [1]
Author: Martijn Verstrate
Posted: May 30 2008 - 08:19 AM
Subject: Labels
Hello,

I have a question regarding Calendar Base.

I have edited the template in such a way that the list view shows a table containing the event information. This table has a header row with the column titles (like date, description, time, location and such). However in the actual tables cells their are sometimes also labels like "title:" "location:" and "category". Is it possible to remove those, preferable just in the list view, but if necessary everywhere?

Edit: btw, for some reason one event does show the label "title:" and the other doesn't. Maybe something to dao with odd and even layouts? (I have only two events at the moment.)

Regards,

Martijn
Author: Martijn Verstrate
Posted: May 30 2008 - 08:32 AM
Subject: Labels
SOLVED: And some other problem: there is no link to the single event view in the list.

I use the following code for in the list.tmpl:
<!-- ###LIST_TEMPLATE### begin -->

<!-- ###PAGEBROWSER### begin -->
<p class="pagebrowser">
###PAGEOF### ###PAGES### ###PREVIOUS### ###NEXT###
</p>
<!-- ###PAGEBROWSER### end -->

<h1>###HEADING###</h1>
###FOUND###
<!-- ###PRE_LIST_TEMPLATE### begin -->
<table>
<tr><th>Image</th><th>Name of Event</th><th>Description</th><th>Date</th><th>Location</th><th>Time</th><th>Category</th></tr>
<!-- ###PRE_LIST_TEMPLATE### end -->
<dd class="even">###DESCRIPTION###</dd>
<!-- ###LIST### start -->
<!-- ###LIST### end -->
<!-- ###POST_LIST_TEMPLATE### begin -->
</table>
<!-- ###POST_LIST_TEMPLATE### end -->

<!-- ###PAGEBROWSER### begin -->
<p class="pagebrowser">
###PAGEOF### ###PAGES### ###PREVIOUS### ###NEXT###
</p>
<!-- ###PAGEBROWSER### end -->

###CREATE_EVENT_LINK###
<!-- ###LIST_TEMPLATE### end -->


End this in phpicalendar_event:
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_ODD### start -->
<tr>
<!-- ###EVENT_LINK### start--><td>###IMAGE###</td><td>###TITLE###</td><!-- ###EVENT_LINK### end--><td>###DESCRIPTION###</td>
<td>###STARTDATE### ###ENDDATE###</td> <td>###LOCATION###</td><td><span class="V9G">###STARTTIME### ###ENDTIME###</span></td>
<td><span class="V9G">###CATEGORY_LINK###</span></td>
</tr>
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_ODD### end -->
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_EVEN### start -->
<tr>
<!-- ###EVENT_LINK### start--><td>###IMAGE###</td><td>###TITLE###</td><!-- ###EVENT_LINK### end--><td>###DESCRIPTION###</td>
<td>###STARTDATE### ###ENDDATE###</td> <td>###LOCATION###</td><td><span class="V9G">###STARTTIME### ###ENDTIME###</span></td>
<td><span class="V9G">###CATEGORY_LINK###</span></td>
</tr>
<!-- ###TEMPLATE_PHPICALENDAR_EVENT_LIST_EVEN### end -->


Any ideas?

Thanks in advance for any help.

Regards,

Martijn

Edit: this second problem is solved. The link markers were outside the table cells, which caused the link not to function.
Author: Martijn Verstrate
Posted: Jun 01 2008 - 03:44 AM
Subject: Labels
I have another question. Like I wrote above my current list.tmlp code contains the following:

<!-- ###PRE_LIST_TEMPLATE### begin -->
<table>
<tr><th>Image</th><th>Name of Event</th><th>Description</th><th>Date</th><th>Location</th><th>Time</th><th>Category</th></tr>
<!-- ###PRE_LIST_TEMPLATE### end -->
<dd class="even">###DESCRIPTION###</dd>
<!-- ###LIST### start -->
<!-- ###LIST### end -->
<!-- ###POST_LIST_TEMPLATE### begin -->
</table>
<!-- ###POST_LIST_TEMPLATE### end -->


This creates the header row in my events table with the column-labels. However, I would like to be able to translate these labels (I'm building a multi-language site). Either by putting the text in constants for different languages, or by using the locallang labels.
But although I know how to do the first option (constants) with my overall template (adding a marker + some TS in setup and constants) this does not seem the work when I try it with the cal extension template. Also, adding the label markers as found in de phpicalendar_event.tmpl to the list.tmpl code above does not work, I guess they only work in the phpicalendar_event.tmpl file.

Anyone an idea how I could get this working?

Thanks in advance.

Regards,

Martijn
Total Posts: 3 - Pages (1): [1]
You must login to post a message to this conference.