[EventCalendar] Page with listings

zoyd zoyd at gmx.de
Fri Sep 7 20:06:10 UTC 2007


hi bertrand,

 > but since I need the event calendar date and not the post date, how 
do I pull the date out of ec3_schedule table?

you can get the event date by calling ec3_get_schedule. i use the 
following to insert event date, event title and event text (excerpt) 
into an accordion (hence the definition list ; dt- and dd-tags).

<?php query_posts('ec3_after=today&showposts=6&order=DESC'); ?>
    <dl class="accordion">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
            <dt class="toggle"> <?php echo ec3_get_schedule('%s 
','%1$s','%s'); ?>: <?php the_title(); ?>
            </dt>
                 <dd>
                <?php the_excerpt_reloaded(); ?>
                </dd>                
        </div>
    <?php endwhile; ?>


cheers,
marcus

Bertrand schrieb:
> the display functions really need some expanding.
>
> i ended up taking the function out of the core code and tweaking to 
> get the data out that i needed. (post text rather than just title)
> it wouldnt be too hard to extend the core, as it's using templates as 
> is. just needs some more DB logic ala lazy loading:
> 1. find all the requested variables in template
> 2. form db select based on what data is requested
> 3. populate template with data
>
>
>
> Bertrand wrote:
>> I can pull a page up that's close to what I expect with something 
>> like so:
>>
>>
>> <?php
>> query_posts('cat=5');
>> while (have_posts()) : the_post();
>> $title = the_title(false,false,false);
>> $date = get_the_date();
>> $txt = get_the_content();
>>
>> print <<<END
>> <h3>$title</h3>
>> $txt
>> <hr />
>> END;
>>
>> endwhile;
>> ?>
>>
>>
>> but since I need the event calendar date and not the post date, how 
>> do I pull the date out of ec3_schedule table?
>>
>>
>>
>>
>>
>> Bertrand 4ltkfi702-at-sneakemail.com |bugmenot| wrote:
>>> I'd like my listing page to include the blog text instead of just 
>>> the event title:
>>>
>>> September 2007:
>>>
>>> This is an event
>>>
>>> This is the event text
>>> This is the event text
>>> This is the event text
>>>
>>> This is another event
>>>
>>> This is the event text
>>> This is the event text
>>> This is the event text
>>>
>>>
>>> Is there an easy way to do this?
>>>
>>>
>>> _______________________________________________
>>> Blog: http://wpcal.firetree.net/
>>> EventCalendar at firetree.net mailing list
>>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>>
>>
>>
>
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>
>




More information about the EventCalendar mailing list