| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
How do you add a page to the template? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
How do you add a page to the template?
I'm trying to create a page that wraps the current template of the site around some basic html. I created a php page and a tpl page but I keep getting the following error. I placed the tpl file in \shop\skin1\customer\main and the php page is placed in \shop\customer
"Pool Dawg :: Access denied ! Page not found! The requested page is not exists or you are not allowed to access that resource! " Page Link PHP code: dogsecure.php Code:
TPL code: dogsecure.tpl Code:
__________________
Billiard Exchange Version 3.5.4 |
|||||||
#2
|
|||||||||
|
|||||||||
also see home_main.tpl
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. EWD Hosting Hands On Hosting |
|||||||||
#3
|
|||||||
|
|||||||
Thanks that worked out well.
__________________
Billiard Exchange Version 3.5.4 |
|||||||
#4
|
|||||||
|
|||||||
Hello,
I'm trying to do the same thing but can't get it to work. I copyied this example exactly but I get the .tpl contents displaying above the main home.tpl template instead of within it where it should be. Thanks in advance for any help you can give. Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#5
|
|||||||
|
|||||||
lets see your code
__________________
Billiard Exchange Version 3.5.4 |
|||||||
#6
|
|||||||
|
|||||||
Hello,
I originally had two "display" commands in the .php file but I changed one as per your example above. Here is the ourstory.php which is in my root directory because that's where I installed X-Cart: Code:
And ourstory.tpl which I saved in customer/main: Code:
Thanks for your help, Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#7
|
|||||||
|
|||||||
Something else I wanted to ask about is whether it's possible to embed the page information in such a way that Search Engines can see the content. The fact that this doesn't happen with .php pages is a problem.
However I can't use static pages because I want to use my site template. Any ideas? Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#8
|
|||||||
|
|||||||
Hi, try just putting some text in your tpl file.
Code:
As far as your site being crawled by search engines you should run the html catalog function in the back end. This will create your site in static html pages. Then create a sitemap that links to all of those pages. This will help search engines to crawl your site.
__________________
Billiard Exchange Version 3.5.4 |
|||||||
#9
|
|||||||
|
|||||||
I'll try that, thanks.
As for generating an HTML catalogue, I did that, however that doesn't include HTML versions of the pages such as the Help pages and the ones I'm creating now. That means there are at least 10 pages of good content that use my keywords yet can't be indexed properly because they're PHP. Unless you know a way to generate them in HTML? Jennifer
__________________
Jennifer Kirkpatrick X-Cart Pro Version 4.4.1 AND X-Cart Gold Version 4.1.9 |
|||||||
#10
|
|||||||
|
|||||||
If it's only 10 pages you could always copy the html that the php generates in internet explorer and copy that into a new file and save it as an html page. Then just do a massive find and replace to rename the extension.
__________________
Billiard Exchange Version 3.5.4 |
|||||||
|
|||
X-Cart forums © 2001-2020
|