• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Calendar help with List template [solved]
PostPosted: Thu Oct 14, 2010 5:07 pm 
Offline
Forum Members
Forum Members

Joined: Thu Jan 31, 2008 5:48 pm
Posts: 138
I have a List Template from the Calendar module that I have been editing so that the event details has all the content from the event.

Here is my code:

Code:
<div class="calendar-list" id="{$table_id}">
{if $compact_view neq 1}
<!-- <span class="calendar-prev"><a href="{$navigation.prev}">{$lang.prev}</a></span>     <span class="calendar-next"><a href="{$navigation.next}">{$lang.next}</a></span>

<h1>{if $day > 0}{$day} {/if}{$month_names[$month]} {$year}</h1> -->
{/if}
{foreach from=$events key=key item=event}



    <div class="calendar-event">
    <h3>{$event.event_title}</h3>

            <!-- {assign var=Today value=$current_date|date_format:"%e"} -->
    

{if $Today == $event.event_date_start || $event.event_date_end == ""}


    <div class="calendar-date-from"><span class="calendar-date-title"> <!--  {$lang.date}: </span>{$current_date|date_format:"%e"} {$month_names[$month_number]} {$current_date|date_format:"%Y"} --> </div>
    {else}
    {if $current_date|date_format:"%d%m%Y" == $event.event_date_end|date_format:"%d%m%Y"}
    <div class="calendar-date-from"><span class="calendar-date-title">{$lang.date}: </span>

 {$current_date|date_format:"%Y %H:%M"} {$lang.to} {$event.event_date_end|date_format:"%H:%M"}</div>
    {else}
    <div class="calendar-date-from"><span class="calendar-date-title">{$lang.date}: </span>{$current_date|date_format:"%e"} {$month_names[$month_number]} {$current_date|date_format:"%Y %H:%M"} {$lang.to} {$event.event_date_end|date_format:"%d"} {$month_names[$end_month_number]} {$event.event_date_end|date_format:"%Y %H:%M"}</div>
    {/if}
    {/if}
    {if $event.event_summary !="" && ($detail != 1 || ($event.event_details =="" ||  $event.event_details == "<br />"))}
        <div class="calendar-summary"><span class="calendar-summary-title">{$lang.summary}: </span>{$event.event_summary}</div>
    {/if}
    {if $detail == 1}
        {if $event.event_details !="" && $event.event_details != "<br />"}
        <div class="calendar-details">

{$event.event_details}
</div>
    {/if}
    {else}
    
        <a href="index.php?page=specials">Click Here for All Drink Specials</a>
                          <a href="{$event.url}">{$moretext}</a>
    {/if}



    </div>



{/foreach}


{if $return_url != ""}
<div class="calendar-returnlink">{$return_url}</div>
{/if}
</div>


Now I have commented out a few things just for display purposes. The issue I am having is that I created a event that has a title and it the content I placed an image. Everything is pulling correctly except when it displays the "Return" link and the footer of my site is not placed at the bottom below the image, it is fixed in one spot on the page and does not move.

I have checked the CSS and tried to add
to it but nothing moves the link and footer. Can anyone help me with this


Attachments:
details.jpg
details.jpg [ 74.6 KiB | Viewed 888 times ]


Last edited by Alpdog14 on Tue Oct 19, 2010 9:58 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: Calendar help with List template
PostPosted: Thu Oct 14, 2010 6:55 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11815
Location: Arizona
It would help if there was a link to the site/page as I'm sure it has to do with the CSS, most likely you need to give the footer a clear:both call to get it to go below, most times this happens when a container above it has some float: attribute...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Calendar help with List template
PostPosted: Tue Oct 19, 2010 1:21 pm 
Offline
Forum Members
Forum Members

Joined: Thu Jan 31, 2008 5:48 pm
Posts: 138
Hi Dr. CSS, thanks for replying but it still is not working. Basically here is the webpage with the calendar,

http://www.jetspublichouse.com/index.php?page=events

when you click on one of the Saturday events (WATCH ND Football), it brings to a detail page about that day. In that detailed webpage there just an image and you will see the "Return" link and the footer in the middle of that image. I tried adding:

Code:
div#footer {
   clear:both;    

}


to the Calendar CSS but it still did not change. Any further help would be most appreciated.


Top
 Profile  
 
 Post subject: Re: Calendar help with List template
PostPosted: Tue Oct 19, 2010 9:42 pm 
Offline
Power Poster
Power Poster
User avatar

Joined: Thu May 14, 2009 8:11 pm
Posts: 1269
Location: Lithuania
What are these for ?
Code:
.calendar-list {
height:150px;
}

.calendar-details {
height:50px;
}

_________________
My best friends are: FAQ: How can I debug my code/site ?...showtemplate=false...module_customhow to create a patch, {process_pagedata}
And Yours ? :)


Top
 Profile  
 
 Post subject: Re: Calendar help with List template
PostPosted: Tue Oct 19, 2010 9:58 pm 
Offline
Forum Members
Forum Members

Joined: Thu Jan 31, 2008 5:48 pm
Posts: 138
You are awesome, thanks I am usually pretty good with CSS, it was a while since I revisited this CSS and forgot everything I put in it. Thanks for helping


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting