 |

BillG
User
Mar 19, 2006, 12:10 PM
Post #1 of 7
(1757 views)
Shortcut
|
|
Article Template Problem
|
Can't Post
|
|
In my article template, I want to set the mouseover behavior for images to improve my search engine ranking. If the image has a caption, under <!-- templatecell : img_caption --> The mouseover displays the caption, which I did by inserting: <img title="$img_caption$" .... and this works fine. If the image doesn't have a caption, I want the mouseover to display the title of the article, so under <!-- templatecell : img_nocaption --> I placed <img title="$art_name_he$" ... This does NOT work, the displayed HTML shows title="". I've also tried using $art_name$, which also doesn't work. Any ideas? Thanks, Bill
|
|
|  |
 |

BillG
User
Mar 19, 2006, 12:21 PM
Post #2 of 7
(1756 views)
Shortcut
|
Also, what is the difference, if any, between $art_name_he$ and $art_name$ ? Thanks!
|
|
|  |
 |

ross
Staff
/ Moderator

Mar 19, 2006, 4:31 PM
Post #3 of 7
(1752 views)
Shortcut
|
|
Re: [BillG] Article Template Problem
[In reply to]
|
Can't Post
|
|
Hi Bill. Thanks for posting! The thing you are running into here is that the $art_field$ placeholders aren’t directly available to the image templatecells. What you could do on the article template though, is save the $art_title$ as a JavaScript variable at the top of the page and then load it in the templatecell. Does that make sense? The _ue is what we call a placeholder modifier. There are a couple different ones that will effect the content of a placeholder. They will try to make sure the placeholder’s data shows up where you are using properly. Here’s a list of the different ones you can use: In links, append _ue <a href="$art_field7_ue$"> In form values, append _he <input name="x" value="$ art_field7_he$"> In javascript, append _je <script>document.write("$art_field7_je$");</script> Does that help? Let me know if you need anymore details . ----------------------------------------------------------- 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.
(This post was edited by ross on Mar 19, 2006, 4:41 PM)
|
|
|  |
 |

BillG
User
Mar 19, 2006, 11:20 PM
Post #4 of 7
(1746 views)
Shortcut
|
|
Re: [ross] Article Template Problem
[In reply to]
|
Can't Post
|
|
Thanks, Ross! I understand what you are saying. Instead of javascript, I solved the problem with ASP. Early in the article, I put <% Dim artTitle artTitle = "$art_name$" %> When AM publishes the article, the published article resolves itself properly and I can then use <%=artTitle%> where appropriate. Oh, I'd still like to know, what's the difference between $art_name_he$ and $art_name$ ? Thanks!
(This post was edited by BillG on Mar 19, 2006, 11:22 PM)
|
|
|  |
 |

Cliff
Staff

Mar 20, 2006, 12:53 PM
Post #5 of 7
(1728 views)
Shortcut
|
|
Re: [BillG] Article Template Problem
[In reply to]
|
Can't Post
|
|
Hi BillG, Thanks for the update. Adding the _he to the end of the placeholder will generated HTML-encoded code for the placeholder you are using. So it's useful in things like form values ie. <input name="x" value="$art_field5_he$"> Let me know if you need any more details Regards, Cliff Stefanuk - Customer Service Manager support@interactivetools.com
|
|
|  |
 |

ross
Staff
/ Moderator

Apr 8, 2007, 1:34 PM
Post #7 of 7
(1262 views)
Shortcut
|
|
Re: [TerriZ] Article Template Problem
[In reply to]
|
Can't Post
|
|
Hi Terri Thanks for posting! The breadcrumb is actually templated so you would be able to take out the links if you like but that would only be an option if you weren't using the breadcrumb anywhere else. Let me know what you think and I'll go over this in more detail for you . ----------------------------------------------------------- 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.
|
|
|  |
|