Page 1 of 1

Certain Pages Link Text, others not

PostPosted: Mon Jan 30, 2012 11:39 pm
by ajhauser
Here is an example of a page that shows both my link images and my link text: http://brotherscountrysupply.com/store/cat-main.html

I need to define the link name so that the search results don't show links named "Cat.Food.Brand1" and so on. How would I set it up so that certain pages like this use the link text: http://brotherscountrysupply.com/store/testimonials.html

While others use only the link image if there is one?

I'm open to suggestions.
Thanks very much.

Re: Certain Pages Link Text, others not

PostPosted: Tue Jan 31, 2012 10:59 am
by Jim
use something like this
Code: Select all
[-- DEFINE LINK_TO_PAGE --]
  [-- IF PAGE.LinkGraphic --]
    <a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PAGE.FileName --]" class="lk_img">[-- PAGE.LinkGraphic --]</a>
 [-- ELSE_IF PAGE.LinkText --]
    <a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PAGE.FileName --]" class="lk_nme">[-- PAGE.LinkText --]</a>
  [-- ELSE_IF PAGE.LinkName --]
    <a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PAGE.FileName --]" class="lk_nme">[-- PAGE.LinkName --]</a>
  [-- ELSE --]
    <a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PAGE.FileName --]" class="lk_nme">[-- PAGE.Name REMOVE_HTML --]</a>
  [-- END_IF --]
[-- END_DEFINE LINK_TO_PAGE --]

Re: Certain Pages Link Text, others not

PostPosted: Wed Feb 01, 2012 11:09 pm
by ajhauser
Hey Jim - thank you, this is perfect. Where should I send your check when this website is finally up and running??

:)

Re: Certain Pages Link Text, others not

PostPosted: Thu Feb 02, 2012 12:35 pm
by Jim
Your favorite charity. ;-)