<div class="gmail_quote"><div>Editing the tpl works perfectly. For some reason I&#39;d got so fixated on trying to do it through Views itself, I hadn&#39;t even considered the theme layer. Thanks a lot.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Date: Mon, 6 Jun 2011 09:43:06 -0500<br>
From: Joel Willers &lt;<a href="mailto:joel.willers@sigler.com">joel.willers@sigler.com</a>&gt;<br>
Subject: Re: [support] Adding an optional row to a View<br>
To: &lt;<a href="mailto:support@drupal.org">support@drupal.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:36B2D50F2A79114BBB96362C55C973FD021DD6B8@mail.siglercompanies.com">36B2D50F2A79114BBB96362C55C973FD021DD6B8@mail.siglercompanies.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;Windows-1252&quot;<br>
<br>
In the .tpl.php file, you can do this easily.  With the Custom Field module, you can add PHP, and do a row count.<br>
<br>
Also, you could do an attachment so that the main view shows five things with a footer, and then an attachment that shows the next five things with a footer.<br>
<br>
If it were me, I?d use the .tpl.php.<br>
<br>
Hope that helps,<br>
<br>
Joel<br>
<br>
From: <a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a> [mailto:<a href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>] On Behalf Of DTH<br>
Sent: Monday, June 06, 2011 8:02 AM<br>
To: <a href="mailto:support@drupal.org">support@drupal.org</a><br>
Subject: [support] Adding an optional row to a View<br>
<br>
I have a view that works fine. It outputs a table with four columns in, one of which is a unique id. After some rows (which I know the id of), I&#39;d like to add an extra row beneath. After row id 5, say, it would be &lt;td colspan=&#39;4&#39;&gt;some text&lt;/td&gt; and after row 10?&lt;td colspan=&#39;4&#39;&gt;different text&lt;/td&gt;.<br>

<br>
I know this is a bit of a pain of a requirement. Is there any way to do this in Views 2? I&#39;d much rather use Views than hack up some custom code that does a db_query and loops through etc etc.<br></blockquote></div>