![]() |
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:
<?php TPL code: dogsecure.tpl Code:
<font class=NavigationPath>{$config.Company.company_name}</font><font class=NavigationPath>::Secure Site</font> |
also see home_main.tpl
|
Thanks that worked out well.
|
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 |
lets see your code
|
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:
<?php And ourstory.tpl which I saved in customer/main: Code:
<TABLE border=0 cellPadding=0 cellSpacing=0 width="100%"> Thanks for your help, Jennifer |
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 |
Hi, try just putting some text in your tpl file.
Code:
This is a test 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. |
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 |
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.
|
All times are GMT -8. The time now is 11:25 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.