More Info Links

General ShopSite user discussion

More Info Links

Postby Mike Markey » Mon Oct 25, 2004 10:18 am

I am trying to add the same set of links to my moreinfo pages as on the
parent page. But I cannot use the pagelinks code in a product template. I
wouod settle for a single link back to the issuing page but I am unsure of
how to achieve this?
Mike Markey
 

Re: More Info Links

Postby Keith Petty » Mon Oct 25, 2004 10:45 am

Hi Mike,

Have you thought of javascript as being an option?

It will work however if someone arrives at your moreinfo page
from another site a javascript will send them back where they came from.

Just a thought
Keith



Mike Markey wrote:

I am trying to add the same set of links to my moreinfo pages as on the
parent page. But I cannot use the pagelinks code in a product template. I
wouod settle for a single link back to the issuing page but I am unsure of
how to achieve this?




Keith Petty
 

Re: More Info Links

Postby Mike Markey » Mon Oct 25, 2004 10:58 am

I have considered trying to use a referrer tag, but this does pose a problem
if they navigated to the page from a bookmark, rather than the "parent".
Also, referrer tags can be a little inconsistant in certain browser
versions.
What I really want is a workaround for including all page tags in (such as
the minicart) in the moreinfosection of a product template.


"Keith Petty" <support@specialmart.com> wrote in message
news:clje0d$idh$1@eval.shopsite.com...
Hi Mike,

Have you thought of javascript as being an option?

It will work however if someone arrives at your moreinfo page
from another site a javascript will send them back where they came from.

Just a thought
Keith



Mike Markey wrote:

I am trying to add the same set of links to my moreinfo pages as on the
parent page. But I cannot use the pagelinks code in a product template.
I
wouod settle for a single link back to the issuing page but I am unsure
of
how to achieve this?






Mike Markey
 

Re: More Info Links

Postby Mike Markey » Mon Oct 25, 2004 3:30 pm

I could not find a way to make all the links appear so I ended up do this
for a single link
In Page Template:
#############################
# Custom Variables #
#############################
[-- VAR.myPageTitle PAGE.Name --]
[-- VAR.myFileName PAGE.Filename --]

In product Template:
<a href=[-- VAR.myFileName --]>[-- VAR.myPageTitle--]</a><br>
Mike Markey
 

Re: More Info Links

Postby jim » Mon Oct 25, 2004 10:07 pm

Mike,
It would be possible to have multiple links on the moreinfo pages but
would take some special setup since the moreinfo page is product
specific and not a real page.

You would need to have access to the server so you could create a
symbolic link in the store's data/templates/includes directory to
<filename> in the store's output directory.

Once that link is created you would need to create a custom page
template that would contain just the section of the page where links
will be generated. This template would not contain any <head> or <body>
tags but would just have the layout of the links as they would appear on
a regular page.

Next you would create a page within ShopSite and assign the pages that
you want links to on the moreinfo page. This page should have the
<filename> which matches to the symbolic link that you created in the
data/includes directory. It probably shouldn't have the .html extension
since it isn't a complete page. When the page is published you will
have an incomplete html page with your page links on it.

Now in your moreinfo template do an [-- include <filename> --] at the
point where you want the links to appear. You will probably need to do
2 regenerations of the store to ensure that the <filename> file is
created so that it can be included when the moreinfo pages are generated.

You should now have links to other store pages on your moreinfo pages.

Jim

Mike Markey wrote:
I could not find a way to make all the links appear so I ended up do this
for a single link
In Page Template:
#############################
# Custom Variables #
#############################
[-- VAR.myPageTitle PAGE.Name --]
[-- VAR.myFileName PAGE.Filename --]

In product Template:
a href=[-- VAR.myFileName --]>[-- VAR.myPageTitle--]</a><br


jim
 

Re: More Info Links

Postby Mike Markey » Tue Oct 26, 2004 7:25 am

Thanks, Jim,
I will give it a shot.
Mike


"jim" <jstavast@xmission.com> wrote in message
news:clkm0i$cht$1@eval.shopsite.com...
Mike,
It would be possible to have multiple links on the moreinfo pages but
would take some special setup since the moreinfo page is product
specific and not a real page.

You would need to have access to the server so you could create a
symbolic link in the store's data/templates/includes directory to
filename> in the store's output directory.

Once that link is created you would need to create a custom page
template that would contain just the section of the page where links
will be generated. This template would not contain any <head> or <body
tags but would just have the layout of the links as they would appear on
a regular page.

Next you would create a page within ShopSite and assign the pages that
you want links to on the moreinfo page. This page should have the
filename> which matches to the symbolic link that you created in the
data/includes directory. It probably shouldn't have the .html extension
since it isn't a complete page. When the page is published you will
have an incomplete html page with your page links on it.

Now in your moreinfo template do an [-- include <filename> --] at the
point where you want the links to appear. You will probably need to do
2 regenerations of the store to ensure that the <filename> file is
created so that it can be included when the moreinfo pages are generated.

You should now have links to other store pages on your moreinfo pages.

Jim

Mike Markey wrote:
I could not find a way to make all the links appear so I ended up do
this
for a single link
In Page Template:
#############################
# Custom Variables #
#############################
[-- VAR.myPageTitle PAGE.Name --]
[-- VAR.myFileName PAGE.Filename --]

In product Template:
a href=[-- VAR.myFileName --]>[-- VAR.myPageTitle--]</a><br



Mike Markey
 

Also trying to add Main Page Links to More Info Pages

Postby tricianeill » Wed Aug 16, 2006 1:06 am

Hello -

I am trying to do the exact same thing as Mike. (You can see: http://www.epsbsamples.com - then click on any product for the more info page. The links to the left on the home page are [LOOP LINKS] in my regular custom page template - I'd like them to carry over to the more info page templates.)

How do I create a symbolic link on the server? I only have FTP access to copy items onto and off of the server...Is this enough? If not, is there any other way to acheive what I am trying to do?

Thanks so much in advance for all of your help...

Tricia :D
tricianeill
 
Posts: 24
Joined: Wed Aug 16, 2006 12:58 am

Postby Jim » Wed Aug 16, 2006 5:47 am

ftp would not give you enough access to the server to create symbolic links.

Are the links on the left going to be the same on all pages in the store or vary from page to page?

How often are the links going to be changing?

If the links are going to be the same on all moreinfo pages then just copy the generated html for the links from a page that has the links and paste it into your moreinfo template. If the links will be changing frequently it may pay to implement it as in the next paragraph

If you are going to be changing the links frequently or you want different sets on links on different moreinfo pages then you could make include files that contain the various sets of links. Then use a [-- include - --] to put the links on the moreinfo page. You could specify a different - by using one of the extra product fields to contain the name of the include file and coding it [-- include product.fieldx --]. Doing this you would only have to modify the include file(s) and not the main product template when you make changes.

Jim
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 122 guests