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.

Calendar details page not displaying additional content

September 24, 2010 2:09pm

Subscribe [1]
  • #1 / Sep 24, 2010 2:09pm

    susanfw

    62 posts

    I have a calendar that is working correctly and links to a details page. When I view the details page directly, it looks exactly as I want it to with breadcrumbs at the top of the page, followed by a post entry that gives the page a title, followed by the calendar details. But when I view the details page from the link on the calendar, the breadcrumbs and the title post do not appear. Could I get some help figuring out what I’m missing?

    Thanks
    Susan

    The calendar index page code is:

    {embed="embeds/html_header2" my_title="Department of Internal Medicine | Alameda County Medical Center | Calendar"}
    
    <body id="p7bod">
    <div id="wrapper">
    {embed="embeds/page_header"}
    
    {embed="embeds/menu"}
    <div id="left">
    
            <div class="content">
              <h3 class="nomargintop"> </h3>
    </div>
        </div>
    <div id="centercal">
            <div class="content">
    
              <h3 class="nomargintop"></h3>
    {exp:channel:entries channel="title-only"  title_url="calendar_of_events" disable="trackbacks|member_data|pagination" }
    <h3>{title}</h3><p> <br />
    {/exp:channel:entries}<br />
          <br class="clearfloat" >  </p>
    
    <p>  <div id="calendar"><br />
            <br />
    {exp:channel:calendar switch="calendarToday|calendarCell" channel="events" show_future_entries="yes"}</p>
    
    <p><table class="calendarBG" border="0" cellpadding="6" cellspacing="1" summary="My Calendar" width="100%"><br />
    <tr class="calendarHeader"><br />
                            <th><div class="calendarMonthLinks"><a href="http://{previous_path=/calendar/events}"><<</a></div></th><br />
                            <th colspan="5">{date format="%F %Y"}</th><br />
                            <th><div class="calendarMonthLinks"><a href="http://{next_path=/calendar/events}class=calendarMonthLinks">>></a></div></th><br />
                        </tr><br />
    <tr><br />
    {calendar_heading}<br />
    <td class="calendarDayHeading">{lang:weekday_abrev}</td><br />
    {/calendar_heading}<br />
    </tr></p>
    
    <p>{calendar_rows }<br />
    {row_start}<tr>{/row_start}<br />
    {if entries}<br />
    <td class='{switch}' align='center'><br />
    <a href="http://{day_path=calendar/details}">{day_number}</a><br />
    {entries}<br />
    <div class="event_link"><a href="http://{title_permalink=calendar/details}">{title}</a></div><br />
    {/entries}<br />
    </td><br />
    {/if}<br />
    {if not_entries}<br />
    <td class='{switch}' align='center'>{day_number}</td><br />
    {/if}</p>
    
    <p>{if blank}<br />
    <td class='calendarBlank'>{day_number}</td><br />
    {/if}</p>
    
    <p>{row_end}</tr>{/row_end}<br />
    {/calendar_rows}<br />
    </table><br />
    {/exp:channel:calendar}<br />
        <br />
      </div></div>  </div></div></p>
    
    <p>{embed="embeds/footer"}</p>
    
    <p></body><br />
    </html>

    The details page code is:

    {embed="embeds/html_header2" my_title="Department of Internal Medicine | Alameda County Medical Center | Calendar"}
    <body id="p7bod">
    <div id="wrapper">
    {embed="embeds/page_header"}
    {embed="embeds/menu"}
    <div id="left">
     
            <div class="content">
              <h3 class="nomargintop"> </h3>
    </div>
        </div>
    <div id="centercal">
            <div class="content">
    <div class="crumbs">{exp:navee:crumbs nav_title="main-nav" no_last_anchor="true"}</div>
              <h3 class="nomargintop"></h3>
    {exp:channel:entries channel="title-only"  title_url="calendar_of_events" disable="trackbacks|member_data|pagination" }
    <h3>{title}</h3><p> <br />
    {/exp:channel:entries}<br />
          <br class="clearfloat" >  <br />
     {!--This is the main channel:entries tag that will return the text content for this event.   --}<br />
                    {exp:channel:entries channel="events" disable="trackbacks|member_data|pagination" limit="1" show_future_entries="yes"}<br />
                        <div class="post"><br />
                            </p><h5>{entry_date format='%M %j, %Y'}</h5><h4>{title}</h4><p><br> <br />
    {if time != ""}<strong>Time:</strong> {time}{/if}<br />
    {if place != ""}<strong>Place:</strong> {place}{/if}<br />
    {if event-details != ""}<strong>Details:</strong> {event-details}{/if}<br />
                            <br />
                        </div><br />
                    {/exp:channel:entries}</p>
    
    <p> </div>  </div></div></p>
    
    <p>{embed="embeds/footer"}</p>
    
    <p></body><br />
    </html>


    The code on the details page that does not appear when I link from the calendar is:

    <div class="crumbs">{exp:navee:crumbs nav_title="main-nav" no_last_anchor="true"}</div>
              <h3 class="nomargintop"></h3>
    {exp:channel:entries channel="title-only"  title_url="calendar_of_events" disable="trackbacks|member_data|pagination" }
    <h3>{title}</h3><p> <br />
    {/exp:channel:entries}

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

ExpressionEngine News!

#eecms, #events, #releases