Stump the Panel Topic: Show specific image on blog page based on category http://www.endusersharepoint.com/STP/ SharePoint QA en Sun, 13 Sep 2009 00:23:32 +0000 spmiller on "Show specific image on blog page based on category" http://www.endusersharepoint.com/STP/topic/show-specific-image-on-blog-page-based-on-category#post-3827 Fri, 30 Jan 2009 11:07:05 +0000 spmiller 3827@http://www.endusersharepoint.com/STP/ <p>Thank you so much Laura. That worked great for the category.aspx page. I tried to use it on the post.aspx page but I wasn't successful. Since the post only has an ID, I can't use the URL filter, so I tried using the Category Name Filter to pull the blog category from the post, but when I connect the filter to the image webpart (the same that I created for the category page), it doesn't show the image. Any thoughts on that?</p> <p>Thanks again for your help! </p> laura67 on "Show specific image on blog page based on category" http://www.endusersharepoint.com/STP/topic/show-specific-image-on-blog-page-based-on-category#post-3813 Thu, 29 Jan 2009 18:24:39 +0000 laura67 3813@http://www.endusersharepoint.com/STP/ <p>Okay, here's how to do it:<br /> First, make sure you have an image library that contains each of the category images, and create a lookup field in that library to the Category list's Title field. That way, you can associate each image with a category</p> <p>Create a blank web part page. Open this page in SP Designer, and click in a zone, and add a data view web part. Pick your image library where the associated images are store.</p> <p>In the data source library, click the drop-down on your image library, and choose "Show data". Select only the Name field, and choose to insert selected field as... Multiple item view.<br /> Put your aspx page in split screen, so you can see the code. Select the first cell that contains the name of the first image in the library. In the code, within the &lt;td&gt; (that cell), paste this:</p> <p>&lt;img border="0" src="{@FileRef}" /&gt;</p> <p>Then, this will display only the images in your table.</p> <p>Save, and go open this web part page in your browser. Export the web part, and then go to the category.aspx page. Import the web part there.<br /> Then, create a new web part connection from your Query String URL filter to this new image library web part. For the filter field, choose "Category".</p> <p>VOILA!<br /> FUN STUFF!</p> <p>Laura Rogers<br /> <a href="http://spinsiders.com/laurar" rel="nofollow">http://spinsiders.com/laurar</a> </p> spmiller on "Show specific image on blog page based on category" http://www.endusersharepoint.com/STP/topic/show-specific-image-on-blog-page-based-on-category#post-3806 Thu, 29 Jan 2009 17:18:04 +0000 spmiller 3806@http://www.endusersharepoint.com/STP/ <p>I have created a SP Blog. On the category.aspx page, I'm using a URL filter to show only the post(s) for each category when I select that category. So for instance, the filter reads category.aspx?name=feature then only shows the posts categorized as feature. </p> <p>What I want to do is show on that category.aspx an image at the top that brings out the fact that this is the "Feature" category, as opposed to another one of the categories. How can I do that?</p> <p>And would a potential solution also work for the post.aspx page? </p>