EllisLab text mark
Advanced Search
     
Is there a parameter opposite to “backspace”?
Posted: 09 July 2010 01:42 PM   [ Ignore ]
Avatar
Joined: 2010-05-13
24 posts

What I want is to add breaks after the loop is done.
This is my code:

{exp:channel:month_links channel="noticias" }
   {year_heading}
      
<h3>{year}</h3>
   
{/year_heading}
   
<a href="{path=">{month}</a> &frasl;                         
{/exp:channel:month_links} 

Thanks!

 
Posted: 09 July 2010 03:06 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2008-12-18
1680 posts
{exp:channel:month_links channel="noticias" }
   {year_heading}
      
<h3>{year}</h3>
   
{/year_heading}
   
<a href="{path=">{month}</a> &frasl;                         
{/exp:channel:month_links} 
<br /> 

??

 Signature 

EE Pro Network
eMarketSouth - full service web design, development, and SEO
ExpressionEngine consulting services - SQL queries, .htaccess rewrites, template optimization, jQuery/AJAX, and more!
our add-ons - please “favorite” and rate our products on devot:ee if you like our work. smile

 
Posted: 09 July 2010 03:18 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2010-05-13
24 posts

But that will add a break after all the loops have been displayed.
What I want is a break after each loop.

I’ve attached an image so I can explain myself better, I want to add a break after “July/January”.

I know I can solve this by adding a top margin to my h3 heading, but I’m not allowed to manipulate any CSS on this project…

Thanks!

Image Attachments
Screen shot 2010-07-09 at 1.12.20 PM.png
 
Posted: 11 July 2010 10:20 AM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2004-02-10
28 posts

How about:

{exp:channel:month_links channel="noticias" }
   {year_heading}
      
<br /> 
      <
h3>{year}</h3>
   
{/year_heading}
   
<a href="{path=">{month}</a> &frasl;                         
{/exp:channel:month_links} 

Not ideal since it will also create an odd space above your first year but perhaps that’s more visually livable?

 
Posted: 12 July 2010 11:24 AM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2009-10-21
29 posts

not sure if this works but can you use count?

{exp:channel:month_links channel="noticias" }
   {year_heading}
{if count 
!= 1}<br />{/if}
      
<h3>{year}</h3>
   
{/year_heading}
   
<a href="{path=">{month}</a> &frasl;                         
{/exp:channel:month_links}