[solved] News Layout issue

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Locked
tommycahir
Forum Members
Forum Members
Posts: 17
Joined: Tue Mar 03, 2009 11:29 am

[solved] News Layout issue

Post by tommycahir »

Hi guys

I am long time admirer of CMSMS and only starting to use it in anger this week, However! I have come a cropper in modifiying the News Summary template and need some advice from the people here

When I modified it I wanted the summary to show who it was posted by and in what section, unfortunately that info seems to be moved to the next node entry and is skewing up what i want things to look like

I have included the summary template code below and links to some screenshots from firebug showing what I mean (cant add attachements as it says "Sorry, the board attachment quota has been reached.")

Code: Select all

   <!-- Start News Display Template -->
  {foreach from=$items item=entry}
    <div class="NewsSummary">

      <h2 class="NewsSummaryLink">{$entry->titlelink}</h2>

      {if $entry->formatpostdate}
        <div class="NewsSummaryPostdate">
          {$entry->formatpostdate}
        </div>
      {/if}

      {if $entry->summary}
        <div class="NewsSummarySummary">
          {eval var=$entry->summary}
        </div>

        <div class="NewsSummaryMorelink">
          [{$entry->morelink}]
        </div>

      {else if $entry->content}

        <div class="NewsSummaryContent">
          {eval var=$entry->content}
        </div>
      {/if}
      <div style="border-top:1px solid black; margin-top:1em;">
      {if $entry->author}
        <div class="NewsSummaryAuthor" style="float:left;">
        Posted by {$entry->authorname} in {$entry->category}
        </div>
      {/if}
      </div>
    </div>
  {/foreach}
  <!-- End News Display Template -->
Screenshots
http://pix.ie/tommycahir/2124441/size/1024
http://pix.ie/tommycahir/2124442/size/1024
http://pix.ie/tommycahir/2124443/size/912

Any help is greatly appreciated as it looks like something silly I am doing!!
Last edited by tommycahir on Fri Jan 14, 2011 4:25 pm, edited 2 times in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: News Layout issue

Post by RonnyK »

I cant see the images, as I need to login there....

In the default summary template of News, the information is already available. Do you have an issue in the default summary-template as well?

Ronny
tommycahir
Forum Members
Forum Members
Posts: 17
Joined: Tue Mar 03, 2009 11:29 am

Re: News Layout issue

Post by tommycahir »

There is no issue with the information being available, I just want to style it a little bit differently is all..
I have modified the files on the imagehost to allow public access now
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: News Layout issue

Post by RonnyK »

OK, the issue is that you have the break-line above the author...

Code: Select all

<div style="border-top:1px solid black; margin-top:1em;">
Pull that below the data and it will split entries instead of in between an entry.

Ronny
tommycahir
Forum Members
Forum Members
Posts: 17
Joined: Tue Mar 03, 2009 11:29 am

Re: News Layout issue

Post by tommycahir »

Excellent, Thanks a mil;l for the help, for some reason that was escaping me all afternoon.
http://pix.ie/tommycahir/2124452/size/800

Have to say that CMSMS is living up to everything i expected from it.. (all good) :)
Locked

Return to “Layout and Design (CSS & HTML)”