 | |  |
 |

dave_81
User
Jul 31, 2008, 3:09 PM
Post #1 of 2
(1082 views)
Shortcut
|
|
category thumbnails
|
Can't Post
|
|
Hello I wonder if you can help me again? Here is what i want to achieve and wonder it its possible using Artman2, I am using the product as a CMS and mainly using category content pages rather than using and adding articles. The breadcrumbs and the sidenavigation tree is working great, however i want all my sub categories for the selected category page, to show in the middle of the page as well using a thumbnail and text. example of code i have done: <div class="content-box-2"> <h3>$category.heading3$ </h3> <div class="inner-content"> <dl> <dd class="inner-img"> $category.image3$ <!-- templateCell : category.image3.row --> <img src="$file.thumbnailWebUrl$" alt="$file.title:htmlEncoded$" width="$file.thumbnailWidth$" height="$file.thumbnailHeight$" /> <!-- /templateCell : category.image3.row --> </dd> <dd>$category.content3$</dd> </dl> <a class="read_more_new1" href="$category.url3$" target="_self">$category.content3$</a> </div> </div> The reason for this is to give easier navigation route, so far i have had to add these using the html source code in the page content for each category. However i want to make it so when I add furture pages the page will also add the thumbnails in the middle of the page as well as navigation. (so basically i can just type in text in added fields) I have worked out so far that I can add and change extra fields in the datebase to add things this way, but is there way of doing this automated? as the was i have done it is to add the placeholders (category.contents) into the design of the cateogry template. However doing this I thought I had sussed it, however if i add 6 boxes with all relvants template cells, if i only fill in 2 of extra boxes (when adding a new page) it will still show 4 of the boxes which are blank as I havent filled them in. So i really need to no is there anyway I can hide them? or another way to show the categorys as a text and thumbnail format? Im sorry if havent made much sense but hope I have. As always thanks for your help and great product Dave
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 31, 2008, 10:53 PM
Post #2 of 2
(1072 views)
Shortcut
|
|
Re: [dave_81] category thumbnails
[In reply to]
|
Can't Post
|
|
Hi Dave, I'm not entirely sure I know what you're after, but if you need to hide certain fields when they don't have any information in them there's an easy way to do that. For example:
<!-- templateIf: $category.heading3$" ne "" --> ***Code for your category 3 display here*** <!-- /templateIf --> What that code is doing is checking to see if anything has been entered into the category 3 heading field. If it has data then it outputs the code to show the information for all of your fields, otherwise the code isn't added and you won't see any of those blank fields on your page. I hope that helps! ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 | |  |
|