Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-08-27 01:29:03

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Seperating article listings (thumbnails) when in a current category?

I have a section of Photography with separate categories of landscape, portrait, abstract, and unfiled.

When you get to an article, I want to have all articles (in thumbnail form) within the section photography and the current category listed in my sidebar. I am using rss_suparchive_bycat and it works, but I am trying to avoid it.

You can see it working in my photography section, but the thumbnails jump if an article is being displayed.

Here Is my code:

inc_photography_sidebar – misc form:
<code>
<txp:if_individual_article>
<h2>Choose an Image</h2>
<div class=“thumb_container”>
<txp:rss_suparchive_bycat section=“photography” useartcat1=“1” showcats=“0” showcatcount=“0” formwraptag=“ul” form=“article_thumbs” />
</div>
<txp:else />
<h2>Recent Photographs</h2>
<div class=“thumb_container”>
<ul>
<txp:article_custom section=“photography” limit=“6” form=“article_thumbs” />
</ul>
</div>
</txp:if_individual_article>
<h2>Photo Portfolios</h2>
<ul class=“listertwo”>
<li><txp:zem_link href=“19”>Industrial</txp:zem_link></li>
<li><txp:zem_link href=“37”>Abstract</txp:zem_link></li>
<li><txp:zem_link href=“49”>Landscape</txp:zem_link></li>
<li><txp:zem_link href=“39”>Portrait</txp:zem_link></li>
</ul>
<txp:output_form form=“inc_artwork_directory” />
<txp:output_form form=“inc_print_info_directory” />
</code>

thumbnail form – article form:
<code>
<li>
<a href=”<txp:permlink />” title=”<txp:title />” class=“innerborder”><txp:bau_article_thumb /></a>
</li>
</code>

Last edited by mattmikulla (2006-08-27 01:30:25)


Art Rogue – Fine Art Photography

Offline

#2 2006-08-27 08:38:42

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,393
Website GitHub Mastodon

Re: Seperating article listings (thumbnails) when in a current category?

Umm, what is the question?

Offline

#3 2006-08-27 15:00:37

mattmikulla
Member
From: Nashville Tennessee
Registered: 2004-08-25
Posts: 281
Website

Re: Seperating article listings (thumbnails) when in a current category?

If I am on and individual article, then I want to display only all other articles in the same category and section as current, in a thumbnail list.

This would be no different than the idea of Having, say, a blog section. If I go to an article in the blog section with a category of technology, I want only the titles of every other article posted in the blog section, category of technology, to be displayed.

Once again, It am doing it with rss_suparchive_bycat at http://www.artrogue.com/photography/containment and other photography pages


Art Rogue – Fine Art Photography

Offline

Board footer

Powered by FluxBB