<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" 
      xmlns:thr="http://purl.org/syndication/thread/1.0">
  <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html" />
  <link rel="self" type="application/atom+xml" href="http://forums.movabletype.org/atom.xml" />
  <id>tag:forums.movabletype.org,2011://24/tag:forums.movabletype.org,2009://24.15745-</id>
  <updated>2011-09-01T02:24:13Z</updated>
  <title>Comments for Help with thumbnail archive!</title>
  
  <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.292</generator>
  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745</id>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html" />
    <link rel="service.edit" type="application/atom+xml" href="http://www.movabletype.org/cgi-bin/mt/mt-atom.cgi/weblog/blog_id=24/entry_id=15745" title="Help with thumbnail archive!" />
    <published>2009-06-26T16:35:13Z</published>
    <updated>2009-06-29T15:29:43Z</updated>
    <title>Help with thumbnail archive!</title>
    <summary><![CDATA[I am trying to generate category archive pages which output thumbnails in a table-like grid, ex: 4 thumbnails per row. However, it's not working. What am I doing wrong? http://www.elenajatia.com/jody/archives.html &lt;mt:Entries&gt; &lt;table&gt; &lt;mt:EntryAssets lastn="300" type="image" assets_per_row="4"&gt;&lt;br /&gt; &lt;mt:AssetIsFirstInRow&gt;&lt;tr&gt;&lt;/mt:AssetIsFirstInRow&gt; &lt;mt:AssetsHeader&gt; &lt;/mt:AssetsHeader&gt;...]]></summary>
    <author>
      <name>vittali13</name>
      
    </author>
    
    <category term="Design, Templates, &amp; Tags" />
    
    <content type="html" xml:lang="en" xml:base="http://forums.movabletype.org/">
      <![CDATA[<p>I am trying to generate category archive pages which output thumbnails in a table-like grid, ex: 4 thumbnails per row. However, it's not working. What am I doing wrong?</p>

<p><br />
http://www.elenajatia.com/jody/archives.html</p>

<p><br />
<pre><br />
&lt;mt:Entries&gt;<br />
&lt;table&gt;<br />
&lt;mt:EntryAssets lastn="300" type="image" assets_per_row="4"&gt;&lt;br /&gt;<br />
&lt;mt:AssetIsFirstInRow&gt;&lt;tr&gt;&lt;/mt:AssetIsFirstInRow&gt;<br />
&lt;mt:AssetsHeader&gt;<br />
&lt;/mt:AssetsHeader&gt; <br />
&lt;td&gt;&lt;ul style="padding:0; margin:8px 0;&gt; <br />
&lt;li style="padding:0; margin:8px 0; list-style-type: none; align: left; border: 2px;"&gt;&lt;a href="&lt;$mt:EntryPermalink$&gt;" title="&lt;$MTEntryTitle remove_html="1" encode_xml="1"$&gt;"&gt;&lt;img src="&lt;$mt:AssetThumbnailURL square="1" height="100" width="100"$&gt;" alt="&lt;$mt:AssetLabel$&gt;" title="&lt;$mt:AssetLabel$&gt;" /&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/td&gt;<br />
&lt;mt:AssetsFooter&gt;<br />
&lt;/mt:AssetsFooter&gt;<br />
&lt;mt:AssetIsLastInRow&gt;&lt;/tr&gt;&lt;/mt:AssetIsLastInRow&gt;<br />
&lt;/mt:EntryAssets&gt;<br />
&lt;/table&gt;<br />
&lt;/mt:Entries&gt; <br />
</pre></p>]]>
      
    </content>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745-comment:25733</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.15745" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html#c25733" />
    <title>Comment from shenews on 2009-06-26</title>
    <author>
        <name>shenews</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>This came up earlier in the week. Here's one approach: <a href="http://forums.movabletype.org/" rel="nofollow">Assets tag</a></p>]]>
    </content>
    <published>2009-06-26T21:09:58Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745-comment:25753</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.15745" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html#c25753" />
    <title>Comment from vittali13 on 2009-06-27</title>
    <author>
        <name>vittali13</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>So I used the code your provided in the post "Assets tag" (below): </p>

<pre>
&lt;mt:IfNonZero tag="AssetCount"&gt;
&lt;mt:Assets type="image" lastn="30"&gt;
&lt;mt:AssetsHeader&gt;

<p>&lt;div class="widget-content" align="center"&gt;<br />
&lt;/mt:AssetsHeader&gt; <br />
&lt;ul style="padding: 0; margin: 8px 4px; list-style-type: none; display: inline; line-height:10em;"&gt; <br />
&lt;li style="padding: 0; margin: 8px 4px; list-style-type: none; display: inline; border: 4px 4px;"&gt;&lt;a class="asset-image" href="&lt;$mt:AssetURL$&gt;"&gt;&lt;img src="&lt;$mt:AssetThumbnailURL width="120"$&gt;" class="asset-img-thumb" vspace="20" align="top" alt="&lt;$mt:AssetLabel$&gt;" title="&lt;$mt:AssetLabel$&gt;" /&gt;&lt;/a&gt;&lt;/li&gt;</p>

<p>&lt;mt:AssetsFooter&gt;</p>

<p>&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;/mt:AssetsFooter&gt;<br />
&lt;/mt:Assets&gt;<br />
&lt;/mt:IfNonZero&gt;<br />
</p></pre>

<p></p>

<p>But I'm trying to find a way to have the thumbnail link to the post. I tried replacing this:<br />
<pre><br />
href="&lt;$mt:AssetURL$&gt;"<br />
</pre></p>

<p>with this:<br />
<pre><br />
href="&lt;$mt:EntryPermalink$&gt;"<br />
</pre></p>

<p><br />
Nothing appears. I understand that mt:Entries was not used, that's why it would not appear. Is there a solution with the code that you provided that would allow me to link the thumbnails with its entry post?</p>

<p>Thank you for all your help!!!<br />
</p>]]>
    </content>
    <published>2009-06-27T23:00:13Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745-comment:25761</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.15745" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html#c25761" />
    <title>Comment from shenews on 2009-06-28</title>
    <author>
        <name>shenews</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>That stymied me last summer when I worked this out, because I couldn't give it a context -- which entries to get the assets from. I just figured it out -- use multiblog to include "this blog." This works for me:</p>

<p><br />
&lt;mt:setvarblock name="thisblog"&gt;&lt;$MTBlogID$&gt;&lt;/mt:setvarblock&gt;<br />
&lt;mt:multiblog include_blogs="$thisblog"&gt;</p>

<p>&lt;mt:Entries&gt;<br />
&lt;mt:EntryAssets lastn="32" type="image"&gt;&lt;br /&gt;<br />
        &lt;mt:AssetsHeader&gt;</p>

<p>&lt;div class="widget-content" align="center"&gt;<br />
&lt;/mt:AssetsHeader&gt;    </p>

<p>&lt;ul style="padding: 0; margin: 8px 4px; list-style-type: none; display: inline; line-height:10em;"&gt;       <br />
&lt;li style="padding: 0; margin: 8px 4px; list-style-type: none; display: inline; border: 4px 4px;"&gt;&lt;a class="asset-image"<br />
href="&lt;$mt:EntryPermalink$&gt;" title="&lt;$MTEntryTitle<br />
remove_html="1" encode_xml="1"$&gt;"&gt;&lt;img src="&lt;$mt:AssetThumbnailURL width="120"$&gt;" class="asset-img-thumb" vspace="20" align="top" alt="&lt;$mt:AssetLabel$&gt;" title="&lt;$mt:AssetLabel$&gt;" /&gt;&lt;/a&gt;&lt;/li&gt;</p>

<p>&lt;mt:AssetsFooter&gt;</p>

<p>&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;/mt:AssetsFooter&gt;<br />
    &lt;/mt:Assets&gt;<br />
&lt;/mt:EntryAssets&gt;<br />
&lt;/mt:Entries&gt;</p>

<p>&lt;/mt:multiblog&gt;</p>]]>
    </content>
    <published>2009-06-28T14:11:03Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745-comment:25763</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.15745" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html#c25763" />
    <title>Comment from shenews on 2009-06-28</title>
    <author>
        <name>shenews</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Sorry, that CSS is displaying one long row, but I'll have to fix it later.</p>]]>
    </content>
    <published>2009-06-28T14:18:43Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745-comment:25771</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.15745" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html#c25771" />
    <title>Comment from shenews on 2009-06-28</title>
    <author>
        <name>shenews</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>Coding out loud:<br />
Okay, everything needed to switch to the mt:Entries context. I'm not happy with this yet, because this leaves me tapping the number of entries rather than a specific number of images. (EntryAssets doesn't seem to recognize a lastn or limit)</p>

<p>If that doesn't matter to you, this works. I want to look at it from another angle when I don't have a houseful of people. There's probably a more elegant solution.</p>

<p>&lt;mt:setvarblock name="thisblog"&gt;&lt;$MTBlogID$&gt;&lt;/mt:setvarblock&gt;<br />
&lt;mt:multiblog include_blogs="$thisblog"&gt;</p>

<p>&lt;mt:Entries lastn="50"&gt<br />
&lt;mt:EntriesHeader&gt;<br />
&lt;div class="widget-content"&gt;<br />
&lt;/mt:EntriesHeader&gt; <br />
 <br />
&lt;mt:EntryAssets type="image"&gt;<br />
&lt;ul style="padding: 0; margin: 8px 4px; list-style-type: none; display: inline; line-height:10em;"&gt;       <br />
&lt;li style="padding: 0; margin: 8px 4px; list-style-type: none; display: inline; border: 4px 4px;"&gt;<br />
&lt;a class="asset-image" href="&lt;$mt:EntryPermalink$&gt;" title="&lt;$MTEntryTitle<br />
remove_html="1" encode_xml="1"$&gt;"&gt;&lt;img src="&lt;$mt:AssetThumbnailURL width="120"$&gt;" class="asset-img-thumb" vspace="20" align="top" alt="&lt;$mt:AssetLabel$&gt;" title="&lt;$mt:AssetLabel$&gt;" /&gt;&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;/mt:EntryAssets&gt;<br />
&lt;mt:EntriesFooter&gt;</p>

<p>&lt;/ul&gt;<br />
&lt;/div&gt;<br />
&lt;/mt:EntriesFooter&gt;<br />
&lt;/mt:Entries&gt;<br />
&lt;/mt:multiblog&gt;<br />
</p>]]>
    </content>
    <published>2009-06-28T20:36:25Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745-comment:25791</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.15745" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html#c25791" />
    <title>Comment from vittali13 on 2009-06-29</title>
    <author>
        <name>vittali13</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>It seems to work! Thank you!</p>

<p>Still a few kinks. Please refer to the archive page I've set up: <a href="http://www.elenajatia.com/jody/archives.html" rel="nofollow">http://www.elenajatia.com/jody/archives.html</a></p>

<p><br />
With the code you have provided above, it continues to display the thumbnails in an uneven order, instead of evenly distributing in rows and columns.</p>

<p>I also could not find the CSS for "widget-content", "asset-image" and "asset-img-thumb" in the motion.css file. Could this be causing the problem then?</p>

<p>In the "Mt:Entries" tag I am also trying to restrict it to a certain category within my blog. So, I added "  label="sports"  " but still displays all the images from all categories.</p>]]>
    </content>
    <published>2009-06-29T14:47:05Z</published>
  </entry>

  <entry>
    <id>tag:forums.movabletype.org,2009://24.15745-comment:25795</id>
    <thr:in-reply-to ref="tag:forums.movabletype.org,2009://24.15745" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html"/>
    <link rel="alternate" type="text/html" href="http://forums.movabletype.org/2009/06/help-with-thumbnail-archive.html#c25795" />
    <title>Comment from shenews on 2009-06-29</title>
    <author>
        <name>shenews</name>
        <uri></uri>
    </author>
    <content type="html" xml:lang="en" xml:base="">
        <![CDATA[<p>I see they're linked to entries now, at least. Fwiw, I use a standalone index template for this (http://shenews.projo.com/photos.html), not an archive index. That may matter.</p>

<p>Your category restriction should be category="sports" rather than "label." </p>

<p>I am not using Motion, so my stylesheet is different. One example in the template tags reference actually does this with a simple table: <a href="http://www.movabletype.org/documentation/appendices/tags/assetisfirstinrow.html" rel="nofollow">mt:AssetIsFirstInRow</a>. If I were starting from scratch, I'd probably just do it that way and save a lot of time.</p>

<p>CSS is not my expertise, but if you search this forum for "gallery" you'll see other ways. Good luck.</p>]]>
    </content>
    <published>2009-06-29T15:29:43Z</published>
  </entry>

</feed>

