VK Datum und Tag ausgeben

Alles über die Anwendung und Entwicklung von AddOns.

VK Datum und Tag ausgeben

Beitragvon sindy » 1. Mär 2009, 11:22

Hallo zusammen,

wie kann ich es realisieren bei dem Veranstaltungskalender in der Übersichtsliste bei dem Datum noch zusätzlich den Wochentag mit auszugeben?
sindy
 

Beitragvon sindy » 2. Mär 2009, 07:51

also ich gehe davon aus, das ich unter Templates die default.htm verändern muss. In der details.htm wird ja mit {$txtWhen} der Tag, das Datum und die Uhrzeit ausgegeben. Rufe ich {$txtWhen} in der default.htm auf, wird nichts geprintet. Was mache ich falsch oder denke ich im Ansatz schon verkehrt?

default.htm
Code: Alles auswählen
<p>&nbsp;</p>
<p>{section name=i loop=$eventsArray}   
 
  {if $mode eq "month"}
  {if $count lt 1} </p>
<h1>{$theMonth} {$theYear}</h1>
   <p>{/if}
     {/if}</p>
   <p> {if $mode eq 'month'}
     {* </p>
   <p class="right">
   <a class="back" href="{$pageBackLink}">&laquo; {$txtPageBackLink}</a>

   <a class="next" href="{$pageNextLink}">{$txtPageNextLink} &raquo;</a>
</p>      *}
      {/if}
      
{if $eventsArray[i].msg eq ""}
<h3>{$eventsArray[i].theMonth} {$eventsArray[i].theYear}</h3>

<table width="100%" cellpadding="10" class="eventlist">
   <tr align="left">
   <th style="width:15%;" class="date">{$txtDate}</th>
   <th style="width:30%;" class="title">{$txtEvent}</th>

   <th style="width:15%;" class="town">{$txtTown}</th>
   <!-- <th class="places">{$txtPlaces}</th> -->
   <th style="width:auto;" class="desc">{$txtShortDesc}</th>
   </tr>

   
   {section name=j loop=$eventsArray[i].array}

      <tr>
      <td class="{$eventsArray[i].array[j].dateclass}">
            {$eventsArray[i].array[j].theDateFrom}
            {if $eventsArray[i].array[j].theDateTo ne ""}
            {$txtUntil} {$eventsArray[i].array[j].theDateTo}
            {/if}      </td>

      <td class="eltitle">
      {if $eventsArray[i].array[j].title ne ""}
      <a href="{$eventsArray[i].array[j].linkEvent}">{$eventsArray[i].array[j].title}</a>
      {else}&nbsp;{/if}      </td>
      
      <td class="elvenue">
      {if $eventsArray[i].array[j].venue ne ""}
      {*<a href="{$eventsArray[i].array[j].linkVenue}">{$eventsArray[i].array[j].venue}</a> -->*}
      {$eventsArray[i].array[j].venue}
      {else}&nbsp;{/if}      </td>

      <!-- <td class="elplaces">
      {if $eventsArray[i].array[j].plaetze ne ""}
      {$eventsArray[i].array[j].plaetze}
      {else}&nbsp;{/if}      </td> -->
      
      <td class="elshortdesc">
      {if $eventsArray[i].array[j].beschreibung ne ""}
      {$eventsArray[i].array[j].beschreibung}
      {else}&nbsp;{/if}      </td>      
      </tr>
   {/section}
</table>

      
{/if}


{/section}   

{if $count eq 0}
   {$noEvents}
{/if}




details.htm
Code: Alles auswählen
<script type="text/javascript">var pagename=' - {$theID}';</script>
<div class="event">
   <p class="backlist">&nbsp;</p>
   <p class="backlist"><a class="jsLink" href="javascript:history.go(-1)">{$txtBack}</a></p>
   <div class="facts">
   <h1>{$txtTitle}</h1>

   <p>{if $theShortDesc ne ""}</p>

   <p><strong>{$txtShortDesc}: </strong><span class="eldesc">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$theShortDesc}</span></p>
   {/if}

   {if $theID ne ""}
   <p><span class="eltitel">{$txtID}</span></p>
   <p><span class="eldesc">{$theID}</span></p>
   {/if}

   {if $theprice ne ""}
   <p><span class="eltitel"><strong>{$txtPrice}:</strong> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$theprice} &euro;</span></p>

   {/if}

   <p><span class="eltitel"><strong>{$txtWhen}:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>{if $days[1] eq "M"}Ab{/if} {$theDayFrom}, <strong>{$theDateFrom}{if $days[1] eq "M"} (Jeden Monat){/if}</strong>, {if $theTime ne "00.00"}
      {$theTime} {$txtOClock}{/if} <br />
    {if $theDateTo ne ""}{$txtUntil} {$theDayTo} {$theDateTo}{/if}</span></p>
   {if $theVenue ne ""}
   <p><span class="eltitel"><strong>{$txtWhere}: <br />
   </strong></span><div style="position: relative; left: 70px; top: -37px; width: 300px;">

     <p><strong>{$theVenue}</strong><br />
    {$theVenueDesc}<br />
    {/if}
   
   {if $theHotel ne ""}<br />
   <span class="eltitel">{$txtHotel}<br />
   </span>{$theHotel}</p>
   {/if}</div>

   
   <!--<div class="desc">   -->
   <p>{if $theDesc ne ""}
   {$theDesc}
     {/if} </p>
</div>
<p><a class="jsLink" href="javascript:history.go(-1)">{$txtBack}</a></p>
</div>
sindy
 


Zurück zu AddOns [R4]

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 3 Gäste