| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Beginners Example of Static Page with Dynamic Content | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() What follows is a simple example for including .tpls (and their dynamic content) in a static page. This example shows how to create a main category page that displays static page content before a dynamic listing of root categories.
Create a static page in admin, title it (ex "Our Catalog"), enter the page content and note the page id (see url ex ".../admin/pages.php?pageid=9") At around line 7 of "customer/main/pages.tpl" replace: Code:
with: Code:
Inside your pages.tpl you can create several if statements "id=n" for every static page that you want to include files in or alter the layout of.
__________________
Version 4.1.3 |
|||||||
#2
|
|||||||
|
|||||||
![]() This is close to what I'm trying to do. I have an empty static page, that I want to load the home page of a Knowledge Base installation.
I tried using this code: Code:
But it doesn't load the page. Any idea what I'm doing wrong? Thanks, Dan
__________________
X-Cart version 4.0.17 X-Cart version 4.0.18 Web servers = Apache OS = Linux |
|||||||
#3
|
|||||||
|
|||||||
![]() You should include a tpl file not a php.
__________________
Version 4.1.3 |
|||||||
#4
|
|||||||
|
|||||||
![]() Thanks. I got it in there using a php include, but now I think that the application itself would have to be rewritten (basically) to work within an embedded page.
__________________
X-Cart version 4.0.17 X-Cart version 4.0.18 Web servers = Apache OS = Linux |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|