 | |  |
 |

Harvey
User
Oct 10, 2007, 10:16 AM
Post #1 of 6
(1510 views)
Shortcut
|
|
Image Summary Links
|
Can't Post
|
|
I want to make the thumbnails in the summary pages clickable and want them to lead to the actual article. I have used this code, but it doesn't work. What would be the correct form? <!-- templateCell : pageDefault.embeddedMedia --> <!-- templateIf : $file.caption$ ne '' --> <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><span class="image_caption">$file.caption$</span></td></tr> </table> <!-- /templateIf --> <!-- templateIf : $file.caption$ eq '' --> <table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$> <tr><td><a href="$published.articlePage.url$"><img src="$file.webUrl$" height="$file.height$" width="$file.width$" border=1></a></td></tr> </table> <!-- /templateIf --> <!-- /templateCell : pageDefault.embeddedMedia --> Thanks
|
|
|  |
 |

Jake
Staff
/ Moderator

Oct 11, 2007, 1:53 PM
Post #2 of 6
(1501 views)
Shortcut
|
|
Re: [Harvey] Image Summary Links
[In reply to]
|
Can't Post
|
|
Hi Harvey, Thanks for your post. Are you setting this link up to work in conjunction with the Summary Image tutorial? Here's the link just to be sure: http://www.interactivetools.com/docs/doc.cgi?/articlemanager2/tutorials/summaryImages.html If this is the case, you'll want to use this code on your template file instead of the code supplied in the tutorial:
<!-- templateCell : article.summaryImage.row --> <a href="$published.articlePage.url$"> <img src="$file.webUrl$" width="$file.width$" align="$file.align$"> </a> <!-- /templateCell : article.summaryImage.row --> <table> <tr><td><!-- template insert : $article.summaryImage$ --></td> <td>$article.summary$</td></tr> </table> Let us know if you have any other questions about this! ----------------------------------------------------------- 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.
|
|
|  |
 |

Harvey
User
Oct 12, 2007, 12:53 PM
Post #3 of 6
(1495 views)
Shortcut
|
|
Re: [Jake] Image Summary Links
[In reply to]
|
Can't Post
|
|
I was not following the other tutorial, I was changing the code on my own. So I don't know how useful what you posted up there is to me.
|
|
|  |
 |

Jake
Staff
/ Moderator

Oct 13, 2007, 2:43 PM
Post #4 of 6
(1487 views)
Shortcut
|
|
Re: [Harvey] Image Summary Links
[In reply to]
|
Can't Post
|
|
Hi Harvey, Thanks for your reply. Right now it looks like the code you're using is only set up to link to the full article page when nothing has been entered for the image caption. To make the image link regardless of whether there's a caption for the image or not, you'll want to use this code instead:
<!-- templateCell : pageDefault.embeddedMedia --> <!-- templateIf : $file.caption$ ne '' --> <table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$> <tr><td><a href="$published.articlePage.url$"><img src="$file.webUrl$" height="$file.height$" width="$file.width$" border=1></a></td></tr> <tr><td><span class="image_caption">$file.caption$</span></td></tr> </table> <!-- /templateIf --> <!-- templateIf : $file.caption$ eq '' --> <table border=0 cellspacing=2 cellpadding=0 width=$file.width$ align=$file.align$> <tr><td><a href="$published.articlePage.url$"><img src="$file.webUrl$" height="$file.height$" width="$file.width$" border=1></a></td></tr> </table> <!-- /templateIf --> <!-- /templateCell : pageDefault.embeddedMedia --> Give this a try and let us know if you have any further questions! ----------------------------------------------------------- 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.
|
|
|  |
 |

Harvey
User
May 17, 2008, 10:59 AM
Post #5 of 6
(352 views)
Shortcut
|
|
Re: [Jake] Image Summary Links
[In reply to]
|
Can't Post
|
|
That did not work either. I got an unknown placeholder error.
|
|
|  |
 |

Jake
Staff
/ Moderator

May 18, 2008, 9:59 PM
Post #6 of 6
(298 views)
Shortcut
|
|
Re: [Harvey] Image Summary Links
[In reply to]
|
Can't Post
|
|
Hi Harvey, It's tough to tell what might be going wrong here without looking at your installation directly - would you mind submitting a second-level support request for this? http://www.interactivetools.com/support/ I look forward to hearing from you. ----------------------------------------------------------- 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.
|
|
|  |
|