Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
By [unknown placeholder $article.art_field1$]

 

 


RWD
User

Dec 2, 2006, 10:45 AM

Post #1 of 6 (1362 views)
Shortcut
By [unknown placeholder $article.art_field1$] Can't Post

Hi

In the page where the article is published, I am getting

By [unknown placeholder $article.art_field1$]

How would I change that so it either shows nothing, or the authours name.

Thanks

Robert


dbramley
User

Dec 3, 2006, 9:02 AM

Post #2 of 6 (1353 views)
Shortcut
Re: [RWD] By [unknown placeholder $article.art_field1$] [In reply to] Can't Post

See this thread: http://www.interactivetools.com/forum/gforum.cgi?post=50224#50224
[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] 


RWD
User

Dec 3, 2006, 10:24 AM

Post #3 of 6 (1352 views)
Shortcut
Re: [dbramley] By [unknown placeholder $article.art_field1$] [In reply to] Can't Post

I did before posting this thread, I couldnt see the code to replace- By $article.author$<Br> hence the reason I posted this.

I dont want to remove the By....... but I dont want the error showing.


seize
Novice

Dec 3, 2006, 11:49 AM

Post #4 of 6 (1349 views)
Shortcut
Re: [RWD] By [unknown placeholder $article.art_field1$] [In reply to] Can't Post

It looks like the problem is you don't have a $article.author$ to replace. Because I can't see your template, I'm exactly sure, but AM2 sends back an error when like that when you put a template placeholder that that doesn't exist in that page type.

The code you'll be looking for it

Code
By $article.art_field1$

and replace it with

Code
 <!-- templateIf : $article.author$ ne "" -->   
By $article.author$<br>
<!-- /templateIf -->


You don't need the templateIfs, but it's nice in case you have an article without an author. The key part of that is to use the new AM2 template placeholders. I think $article.art_field1$ is a holdover from AM1, but if you are on AM2 $article.author$ is the new tag.

The <!-- templatePlaceHolderList --> tag is really useful for finding out all the correct tags. I wish there was a listing of them in the help files, but it is nice to be able to see the actual output of what each tag would give you if it was in the template.

Hope this helps,
Teo


RWD
User

Dec 3, 2006, 11:55 AM

Post #5 of 6 (1348 views)
Shortcut
Re: [seize] By [unknown placeholder $article.art_field1$] [In reply to] Can't Post

Sorted, thanks. Cool


ross
Staff / Moderator


Dec 3, 2006, 1:16 PM

Post #6 of 6 (1343 views)
Shortcut
Re: [seize] By [unknown placeholder $article.art_field1$] [In reply to] Can't Post

Hi there.

Thanks to everyone for jumping in on this one. As always, I love to see the community jumping in on things like this Smile.

Keep us all up to date with how you are all making out.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - 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: http://www.interactivetools.com/consulting/