
Dave
Staff
/ Moderator

Nov 7, 2006, 12:03 PM
Post #2 of 3
(710 views)
Shortcut
|
|
Re: [floodrod] embedded media and text wrap
[In reply to]
|
Can't Post
|
|
Ok, When you use an "upload placeholder" like this ***upload1*** the software looks for a templateCell that tells it how to display it. It looks in these three places and uses the first templatecell it finds. template: (current template), templateCell: placeholderName.embeddedMedia template: (current template), templateCell: pageDefault.embeddedMedia template: templates/common/embeddedMedia.html, templateCell: globalDefault.embeddedMedia So if you want to do something different for imported records you need a way to identify them. You could use a templateIf and check for articles before a certain date. Or check for the hidden 'articleType' field which gets imported but isn't set for new articles. So say you did that. You'd have the following in the appropriate templateCell. <!-- templateIf : $article.articleType$ eq '' --> default formatting or image code here <!-- /templateIf --> <!-- templateIf : $article.articleType$ ne '' --> formatting for imported articles here <!-- /templateIf --> And that is checking to see if the article type is blank (eq '') or not blank (ne ''). Hope that makes sense. Let me know if you need more details. Dave Edis - Senior Developer interactivetools.com
|