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?
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?
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?
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,
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
Users browsing this forum: No registered users and 125 guests