Link Name Not Working

General ShopSite user discussion

Link Name Not Working

Postby NJames » Tue May 03, 2011 1:49 pm

I have a slight problem with my shopsite software. I recently updated to v10-sp2r2, I also installed the patch for that version which fixed my problems with UPS and USPS Shipping, as well as giving me some nice new features. However I have run into a glitch with this new version. The link name is no longer being published as the link name, instead the Page Name is being used no matter what I put in the link name location. Please advise.
NJames
 
Posts: 3
Joined: Tue May 03, 2011 1:44 pm

Re: Link Name Not Working

Postby ShopSite Lauren » Tue May 03, 2011 2:03 pm

What is the URL to your website? What template/theme are you using?
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Link Name Not Working

Postby NJames » Fri May 06, 2011 8:01 am

Hello Lauren

Congruence is the Theme

Here is the link to the shopping cart
http://www.linkamerica.com/products/store/index.html
NJames
 
Posts: 3
Joined: Tue May 03, 2011 1:44 pm

Re: Link Name Not Working

Postby Jim » Fri May 06, 2011 9:08 am

The way the template is coded you need to have a link graphic before the Link text will be used. Here is the code:
[--DEFINE LINK_TO_PAGE--]
<a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PAGE.FileName --]">[-- IF PAGE.LinkGraphic --][-- PAGE.LinkGraphic --]<br>[-- END_IF --]
[-- IF PAGE.LinkText --][-- PAGE.LinkText --]<br>[-- END_IF --]
[-- IF PAGE.LinkGraphic --][-- IF PAGE.LinkName --][-- PAGE.LinkName --][-- END_IF --][-- ELSE --][-- PAGE.Name --][-- END_IF --]</a>
[--END_DEFINE LINK_TO_PAGE--]

There are 2 ways you could get around the problem.
1. Create a single pixel image and assign that to all the pages for the link graphic.
2. Make a copy of the ShopSite Congruence.sst and edit the [-- DEFINE LINK_TO_PAGE --] to be as follows.



Using this coding If there is an image it would be displayed. If there is LinkText but no image it would display. If there is a LinkName but no image or linktext the LinkText will display. If there is no image, linktext or linkname then the page name will display.

If you want multiple things to display like the Image and LinkName you could modify the statements to make that happen.

When you make a copy of the template, using the Copy ShopSite template button, you must give the copy a different name. Once you have made the copy edit it and make the changes. Then you can either change all your pages to use the new template name or you could use the Copy Template button and give it the same name as the original ShopSite template. If you give it the same name it will override the ShopSite template so you don't need to change any of your page template assignements. However, if ShopSite ever updates their template to include new features you would not see them because your template would still override any ShopSite changes.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Link Name Not Working

Postby ShopSite Lauren » Mon May 09, 2011 8:31 am

You can go to the following Template Cookbook page which talks about the Congruence theme. Near the bottom of the page is a link to the corrected Congruence.sst file which you can upload into your store.
http://www.shopsite.com/templates/cookbook/builtintemplates-congruence.shtml
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Link Name Not Working

Postby NJames » Wed May 11, 2011 8:18 am

Jim, Lauren

Thank you for your aide in this, I first tried adding the one pixel in the link graphic slot, however that made each link name look double spaced.

I thought about trying to edit the code of an existing template but decided to create the custom template Lauren linked. That was very simple and worked like a charm.

Once more thank you for your help
NJames
 
Posts: 3
Joined: Tue May 03, 2011 1:44 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 65 guests