Multi-Use Page

Questions and answers about ShopSite Custom Templates

Multi-Use Page

Postby LaurenH » Tue May 14, 2013 6:20 am

I am trying to make a page with the page links in the center, while keeping with the theme of the rest of my store. The Multi-Use page works, except it assigns a graphic to the page links which i do not want. How would i get rid of the graphic box that says "no image available" and have JUST the links show up? I have tried the other page templates and they change the layout/look of the entire page, not just the way the links are displayed.
LaurenH
 
Posts: 23
Joined: Thu May 02, 2013 12:35 pm

Re: Multi-Use Page

Postby Jim » Tue May 14, 2013 9:33 am

Each page has several fields related to the links, Link Name, LInk graphic, Link text and possibly the Page name and Page Title.

The code is looking for the Link Graphic and if it doesn't find one then it is using the No image picture. And then it outputs the page title if one exists and if not the page name with all html removed. It also out puts the Link name and/or Link text field if they contain any text.

One thing you could try is assigning a single pixel image the same color as the background of the pages as the link image which would effectively use the image and not output the No Image picture. You could then put text in one of the Link Text or Link Name fields and that would display as the link.

If you want to change the template you would need to decide which field you want to use instead of the image and remove the image code from the template. The code has some tricky logic in it so you need to be careful as to how you remove something from it. The code is in the [--DEFINE LINK_TO_PAGE--] of the Multi-Use.sst (and possibly the other Multi-Use-xx.sst page templates if you have the alignment to left or right.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Multi-Use Page

Postby LaurenH » Wed May 15, 2013 6:46 am

I tired just assigning a simple image to the pages listed, which i liked the way it looked, however it then replaces the link name on other pages where I have it listed to the right, instead of using the page name its just a little nondescript graphic.
Can i assign a general link graphic for the multi-use.sst to use on that page, without replacing the link texts for the multi-use right/left on other pages?
LaurenH
 
Posts: 23
Joined: Thu May 02, 2013 12:35 pm

Re: Multi-Use Page

Postby Jim » Wed May 15, 2013 8:08 am

What is the url to the page you are talking about?
Once we can see the page we will have a better idea of what you are seeing.
Please describe which links/images you are referring to so we know that we are looking at the right section of the page
Tell us what you don't like and what you are wanting it to look like.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Multi-Use Page

Postby LaurenH » Wed May 15, 2013 11:50 am

http://ademostore.com/ssdemos/ver112/evaluate79/page10.html <this is the page i want to just have the link names, no picture. Tried opting for a small graphic, but then that replaces the link text on the right with a graphic: http://ademostore.com/ssdemos/ver112/evaluate79/index.html
LaurenH
 
Posts: 23
Joined: Thu May 02, 2013 12:35 pm

Re: Multi-Use Page

Postby Jim » Wed May 15, 2013 1:36 pm

Look at it now and see if that looks better.
Here is the code that defines how the links to a page look as it was in the Multi-Use-Page.sst file
Code: Select all
[--DEFINE LINK_TO_PAGE--]
<a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PAGE.FileName --]">
  [-- IF PAGE.LinkGraphic --][-- PAGE.LinkGraphic --]<br>[-- ELSE --]<img src="[-- ShopSite_Images --]/backgrounds/shared/noimg.gif" border="0" alt="[-- IF PAGE.Title --][-- PAGE.Title --][-- ELSE --][-- PAGE.Name REMOVE_HTML --][-- END_IF --]"><br>[-- END_IF --]
  [-- IF PAGE.LinkName --][-- PAGE.LinkName --][-- ELSE --][-- PAGE.Name REMOVE_HTML --][-- END_IF --]
  [-- IF PAGE.LinkText --][-- IF PAGE.TextWrap "Off" --]<br>[-- END_IF --]<span>[-- PAGE.LinkText --]</span>[-- END_IF --]
</a>
[--END_DEFINE LINK_TO_PAGE--]

I commented the line dealing with the Link Graphic by putting a # as the first character. I then copied the line from the Multi-Use-Page-Right.sst that did the same thing and put it inplace of the line I commented out.
Code: Select all
[--DEFINE LINK_TO_PAGE--]
<a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PAGE.FileName --]">
#  [-- IF PAGE.LinkGraphic --][-- PAGE.LinkGraphic --]<br>[-- ELSE --]<img src="[-- ShopSite_Images --]/backgrounds/shared/noimg.gif" border="0" alt="[-- IF PAGE.Title --][-- PAGE.Title --][-- ELSE --][-- PAGE.Name REMOVE_HTML --][-- END_IF --]"><br>[-- END_IF --]
  [-- IF PAGE.LinkGraphic --][-- PAGE.LinkGraphic --]<br>[-- END_IF --]
  [-- IF PAGE.LinkName --][-- PAGE.LinkName --][-- ELSE --][-- PAGE.Name REMOVE_HTML --][-- END_IF --]
  [-- IF PAGE.LinkText --][-- IF PAGE.TextWrap "Off" --]<br>[-- END_IF --]<span>[-- PAGE.LinkText --]</span>[-- END_IF --]
</a>
[--END_DEFINE LINK_TO_PAGE--]


You can view the template by going to Merchandising > Custom Templates > Pages. The file that is being used is the Multi-Use-Page.sst . Since this file has the same name as the ShopSite template it will override the ShopSite one. If you delete that file (or copy it to a different name and then delete it ) the ShopSite version would again be active.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Re: Multi-Use Page

Postby LaurenH » Wed May 15, 2013 1:58 pm

That looks amazing, just what i was going for. Thank you so much!
LaurenH
 
Posts: 23
Joined: Thu May 02, 2013 12:35 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 15 guests

cron