![]() |
Help - STILL can't create a custom .php page
Hello,
I've been trying to create a custom .php page called "ourstory.php" that uses my existing site template. Nothing seems to work :( Here is my code for "ourstory.php": Code:
<?php Then I created "ourstory.tpl" which includes simply includes the text that I want to be displayed on the page. It's saved in skin1/customer/main. Can anyone help? This is driving me nuts! Thanks, Jennifer |
This may be a really stupid question, but is there a reason you aren't using the static page feature built in to X-Cart?
|
Because static pages don't include the site template so I lose the look and feel, menus, footer, etc.
Unless I'm doing something wrong... Jennifer |
They do if you use the Embedded Level instead of the Root Level. The Embedded ones show up just like a help page or product page would, right in the central column of your template :)
|
That would be perfect!
When I tried to create a page I got the error: "Can not to save file: please check the write permissions." Which files need their permissions changed? I thought I changed everything when I installed X-Cart, but I must have missed something. Jennifer |
You have to change this:
Code:
$smarty->assign("main", "ourstory.tpl"); to: Code:
$smarty->assign("main", "ourstory"); Then edit your skin1/customer/home_main.tpl and somewhere in the middle put: Code:
{elseif $main eq "ourstory"} Where outstory.tpl is in the skin1/customer/main/ folder. |
you should find a folder called pages/us which should be set tyo chmod 777 to allow xcart to saved the file it creates for your new page
|
Sorry to jump in, but can you use new main page templates with a file outside of the XC install?
For instance we have a support helpdesk that reside in public_html/support/ could this be linked into a template page? Cheers. |
Quote:
I looked everywhere and can't find a folder by that name... Jennifer |
skin1/pages/us
if they aint there create them yourself :wink: |
All times are GMT -8. The time now is 08:39 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.