News Module Problem [SOLVED]

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"
Post Reply
matejzivko
New Member
New Member
Posts: 8
Joined: Sat Jan 15, 2011 4:42 pm

News Module Problem [SOLVED]

Post by matejzivko »

Hello,

does anybody know how can i make summary templates like on my pic on link...please help me :)

Image
Last edited by matejzivko on Sat Jan 15, 2011 9:50 pm, edited 2 times in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Module Problem

Post by Dr.CSS »

You will have to make a new News Summary template...
matejzivko
New Member
New Member
Posts: 8
Joined: Sat Jan 15, 2011 4:42 pm

Re: News Module Problem

Post by matejzivko »

lol, i know that, how to show one news in left div and other 3 in right div
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Module Problem

Post by Dr.CSS »

You could do it with 2 news calls that use different news summary templates, one would need number='1' call other would need the call that starts it at 2 and limits it to 3...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: News Module Problem [SOLVED]

Post by calguy1000 »

In Your news Summar template change the foreach statement to have a 'name' parameter. i.e: name=foo

then, inside the foreach:
{if $smarty.foreach.foo.iteration == 0}
{* special divs and stuff that only happen for the first iteration *}
{else}
{* the divs and layout stuff for the other three iterations *}
{/if}
{/foreach}

With CMSMS there is usually numerous ways to do stuff like this.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Module Problem [SOLVED]

Post by Dr.CSS »

Better than my idea ;)...
Post Reply

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