ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

url title path seems to be working but no content appears

June 25, 2008 7:31am

Subscribe [3]
  • #1 / Jun 25, 2008 7:31am

    tim at warwicks

    13 posts

    I’m working on a site for a golf club.

    I have an events template which lists all upcoming events. Seems to be working fine.

    Link here

    Still lots of styling to do but content seems to be OK.

    Main code for that template is:

    <!-- open left side content div -->
                <div id="content_left_col">
            {exp:weblog:entries weblog="events" show_future_entries="yes" show_expired="no" disable="member_data|trackbacks" sort="asc" paginate="both" limit="30" orderby="date" start_on="{current_time format='%Y-%m-%d %g:%i %A'}"}
                        {if no_results}
                            <h1 class="error">No results.</h1>
                            There are currently no events of this type scheduled.
                        {/if}
                        <div class="event">
                            <div class="event_date">
                                    {entry_date format="%D %j %M"}
                            </div>
                            <div class="event_name">
                                    <a href="http://{url_title_path=events/details}">{title}</a>
                            </div>
                            <div class="event_name">
                                    {event_summary}
                            </div>
                        </div>
                        {paginate}
                        <div class="paginate hidepagination{total_pages}">
                            Page: {current_page} of {total_pages} {pagination_links} 
                        </div>
                           {/paginate}
            {/exp:weblog:entries}
    
            <!-- close left side content div -->
                </div>

    The event name links to an events/details template where eventually I will have much more information about the event. It seems to passing the correct url on OK but the events/details template isn’t getting any content:

    Link here

    Code for the main part of this template is:

    <!-- open left side content div -->
                <div id="content_left_col">
    
                {exp:weblog:entries weblog="events" disable="member_data|trackbacks" limit="1"}
                    {entry_date)
                    {title}
                    {event_summary}
                {/exp:weblog:entries}
                    
            <!-- close left side content div -->
            </div>

    I have kind of been using Michael Boyink’s excellent “Building an Expression Engine Site” as reference but obviously messed it up somewhere along the way..

  • #2 / Jun 25, 2008 7:58am

    Ingmar

    29245 posts

    Might need show_future_entries=“yes” or show_expired=“no” there as well ...

  • #3 / Jun 30, 2008 2:01pm

    October11

    185 posts

    Timprint - I’m working on a similar project and can’t get to list content from Future Events. I’ve tried Ingmar’s suggestion (which is listed on the Wiki as well), but no luck. As soon as I list the event to a ‘current’ or an ‘ongoing’ date - everything works fine.

    Not really sure how to get around this. If I get ahead - I’ll post a solution here.

    Cheers!

  • #4 / Jul 01, 2008 12:30pm

    Robin Sowell

    13255 posts

    Normally, show_future/show_expired should do it.  timprint- did that do it for you?

    And NewDew- can you link us to an example page so we can see it (or not see it) in action?  A test page w/just a single weblog tag on it- and paste the tag used.  It’s likely a parameter- but if just changing the date does the trick, it strongly suggests it has to be a date related param.

  • #5 / Jul 01, 2008 4:43pm

    October11

    185 posts

    Robin:

    Sorry I wasn’t clear enough on my post. I can actually get to list all future/expired events through the:

    show_future_entries="yes"

    However I can’t get to list any custom fields attached to it.

    Lisa Wess explained it to me that custom fields don’t work for the calendar tag - through This Post.

    Until I find a better solution or achieve success while messing with the calendar tag - I’m creating a regular Weblog and assigning two custom fields to it:
    * One for “From Date”
    * The other for “To Date”
    Both having Date Field for the Field Type - then just calling them with {fromdate format="%..."} (fromdate - being the fieldname)...

    I’m not so sure how I can assign this all to an actual calendar, but since I’m not needing an illustrated one at the moment…it’s OK.

    Sorry, I wasn’t able to point you to a live link - I’m working on localhost through my computer - however I hope I was clear through this post.

    Cheers!

  • #6 / Jul 01, 2008 4:47pm

    Ingmar

    29245 posts

    Thanks for keeping us updated. Are we good to close this one out for new then?

  • #7 / Jul 01, 2008 5:26pm

    October11

    185 posts

    Sure that’s fine for now.

  • #8 / Jul 01, 2008 5:38pm

    Ingmar

    29245 posts

    There she goes. If anvthing new comes up, just start a new one, thanks.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases