 | |  |
 |

floodrod
User
Oct 25, 2006, 10:47 AM
Post #1 of 7
(468 views)
Shortcut
|
|
Image Link not working for me.
|
Can't Post
|
|
in v. 1.41 I had a separate template for a movies category, where the movie snapshot image was linked to the movie download through the use of the image caption field. Everything's going real smooth, but I can't get the image to link to the movie like it used to. In the article editor, I edit uploaded images, and cut and paste the URL that was in the caption, to the link-to box provided in the new version. The link does not function after re-publishing. This is the code in my current page for imbedded media. <!-- templateCell : pageDefault.embeddedMedia --> <!-- templateIf : $file.caption$ ne '' --> <p align="center"> </p> <table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$> <tr><td><img src="$file.webUrl$" height="$file.height$" width="$file.width$" border=1></td></tr> <tr><td><font class="text10">$file.caption$</font></td></tr> </table> <!-- /templateIf --> <!-- templateIf : $file.caption$ eq '' --> <table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$> <tr><td><img src="$file.webUrl$" height="$file.height$" width="$file.width$" border=1></td></tr> </table> <p align="center"> <!-- /templateIf --> <!-- /templateCell : pageDefault.embeddedMedia --> I dont see any code mentioning the linking of an image. Would I need to add a templateif line in ArticlePages.html to make the link work? Thanks
|
|
|  |
 |

Theo
Project Manager
/ Moderator

Oct 25, 2006, 12:01 PM
Post #2 of 7
(461 views)
Shortcut
|
|
Re: [floodrod] Image Link not working for me.
[In reply to]
|
Can't Post
|
|
Great question, flood! I was wondering when someone was going to start tinkering around with the embeddedMedia code. The first thing I'd recommend is to remove the templatecell for pageDefault.embeddedMedia from the template. Without that templateCell, the template will use the default code located in templates/common/embeddedMedia.html. For upgrading users, the templatecell : pageDefault.embeddedMedia emulates your Artman 1 "in-page" custom HTML for your embedded images - and since Artman 1 didn't have a lot of the embedded media features that Artman 2 has, the imported code won't have all the features used in Artman 2's embeddedMedia.html template. Alternatively, take a look at the templateIf's and placeholders in the embeddedMedia.html template and see what you'll need to bring in to your articlePages.html template to make it work the way you'd like. If you need any help getting the design you're looking for, let me know! Theo Wiersma Project Manager
|
|
|  |
 |

floodrod
User
Oct 25, 2006, 12:42 PM
Post #3 of 7
(452 views)
Shortcut
|
|
Re: [Theo] Image Link not working for me.
[In reply to]
|
Can't Post
|
|
Heck Yeah! Removing the whole pageDefault.embeddedMedia line made the image link right up. Thank you
|
|
|  |
 |

floodrod
User
Oct 26, 2006, 5:17 AM
Post #5 of 7
(425 views)
Shortcut
|
|
Re: [DefenceTalk.com] Image Link not working for me.
[In reply to]
|
Can't Post
|
|
defence, I dont know if it helps, I'm not a pro, but it looks like the caption tags are within the imbedded media section. I removed the entire snip... <!-- templateCell : pageDefault.embeddedMedia --> <!-- templateIf : $file.caption$ ne '' --> <p align="center"> </p> <table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$> <tr><td><img src="$file.webUrl$" height="$file.height$" width="$file.width$" border=1></td></tr> <tr><td><font class="text10">$file.caption$</font></td></tr> </table> <!-- /templateIf --> <!-- templateIf : $file.caption$ eq '' --> <table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$> <tr><td><img src="$file.webUrl$" height="$file.height$" width="$file.width$" border=1></td></tr> </table> <p align="center"> <!-- /templateIf --> <!-- /templateCell : pageDefault.embeddedMedia --> My template now has no mention of embedded media or captions, and everything works fine. What part did u remove?
|
|
|  |
 |

DefenceTalk.com
User
Oct 26, 2006, 6:30 AM
Post #6 of 7
(422 views)
Shortcut
|
|
Re: [floodrod] Image Link not working for me.
[In reply to]
|
Can't Post
|
|
Aah! I just removed these tags!: <!-- templateCell : pageDefault.embeddedMedia --> <!-- /templateCell : pageDefault.embeddedMedia --> Thanks!
|
|
|  |
|