Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Using Custom Fields

 

 


sbarger
User

Nov 23, 2006, 9:26 AM

Post #1 of 4 (762 views)
Shortcut
Using Custom Fields Can't Post

First of all, let me say that AM 2 is a fantastic content management solution. Very well done.

I am still learning the ins and outs so this may seem like a basic question.

I am trying to incorporate an article specific image for each headline posted. My design requires that this image be uploaded and palced on the globalIndex via a custom field. I have created the custom field (headerImage) but can't seem to get it to display. I am fairly confident this is due to an error in the way I incorporated the custom field in globalIndex. This is what I have:

<!-- templatecell : article.headerImage.row -->
<img src="$file.WebUrl$">
<!-- /templatecell : article.headerImage.row -->

Set me straight, gents, I sure would appreciate the help.


Scott


Damon
Staff / Moderator


Nov 23, 2006, 10:08 AM

Post #2 of 4 (761 views)
Shortcut
Re: [sbarger] Using Custom Fields [In reply to] Can't Post

Hi,

Do you have $article.headerImage$ added on the template where you want the image to be published?

Can you include a link to your globalIndex.html template so I could take a look?

--------------------------------------------------- 
Cheers
Damon Edis
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/


dbramley
User

Nov 23, 2006, 10:15 AM

Post #3 of 4 (758 views)
Shortcut
Re: [Damon] Using Custom Fields [In reply to] Can't Post

I've done something similar:

<div align="center">
<table border=0 cellspacing=0 cellpadding=4 height="126">
<tr>
<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->
<td align="center">
<br>$article.article_image$ <!-- templateCell : article.article_image.row --> <img src="$file.thumbnailWebUrl$" alt="$file.title:htmlEncoded$" width="$file.thumbnailWidth$" height="$file.thumbnailHeight$" href="$published.articlePage.url$" class=contentphoto> <!-- /templateCell : article.article_image.row -->
<p>
<a href="$published.articlePage.url$" class=contentoption_feat>$article.title$</a></p></td>
<!-- templateIf: $articleList.currentResultCounter$ isMultipleOf "3" --></tr><tr><!-- /templateIf -->
<!-- /templatecell : articleRow -->
</tr>
</table> </div>


In the code above this is set to display it in three colums with the article image above the article title. "article_image" is the name of my custom image upload field.

I then had to set an include up on the global index: <!--#include virtual="$published.topfeaturedarticle.webpath$" -->

And create a publishing rule for this page.

I could probably go into a bit more detail if I need to but a lot of it I picked up from here!
[hr] 
[url "http://www.thisisstockton.co.uk"]Stockton on Tees[/url] | [url "http://www.thisishartlepool.co.uk"]Hartlepool[/url] | [url "http://www.thisismiddlesbrough.com"]Middlesbrough[/url] | [url "http://www.thisissunderland.com"]Sunderland[/url] 


sbarger
User

Nov 23, 2006, 10:54 AM

Post #4 of 4 (753 views)
Shortcut
Re: [dbramley] Using Custom Fields [In reply to] Can't Post

Ok, that did it. Thanks for the help. I didn't have the $headerImage$

Thanks again!


(This post was edited by sbarger on Nov 23, 2006, 12:12 PM)