Page 1 of 1

[solved] News Layout issue

Posted: Fri Jan 14, 2011 3:11 pm
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!!

Re: News Layout issue

Posted: Fri Jan 14, 2011 3:23 pm
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

Re: News Layout issue

Posted: Fri Jan 14, 2011 3:30 pm
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

Re: News Layout issue

Posted: Fri Jan 14, 2011 4:11 pm
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

Re: News Layout issue

Posted: Fri Jan 14, 2011 4:24 pm
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) :)