Thread: pages.php
View Single Post
  #1  
Old 11-24-2008, 06:31 AM
  Gijs's Avatar 
Gijs Gijs is offline
 

eXpert
  
Join Date: Aug 2004
Location: Belgium
Posts: 295
 

Default pages.php

Hi,

It's has been a couple of years since my last post and I'm not really familiar with the 4.1.xx branch yet.

I'm having some problems displaying static pages.

What I done so far:

1) When you click on a static page.
The list of static pages show up + the actual static page


customer/main/pages.tpl

Code:
{* $Id: pages.tpl,v 1.5 2005/11/17 06:55:37 max Exp $ *} {capture name=dialog} {include file="pages_menu.tpl"} {/capture} {include file="dialog.tpl" title=$lng.gh_tab_info content=$smarty.capture.dialog extra="width=100%"} <br /><br /> {capture name=dialog} {if $page_content ne ''} {if $config.General.parse_smarty_tags eq "Y"} {eval var=$page_content} {else} {$page_content} {/if} {/if} {/capture} {include file="dialog.tpl" title=$page_data.title content=$smarty.capture.dialog extra='width="100%"'}

2) What I like to do is call pages.php directly and show the list of static pages.

In customer/home_main.tpl

the following is stated:
Code:
{elseif $main eq "pages"} {include file="customer/main/pages.tpl"}

Unfortunately when I call pages.php only an error message shows up:

Page not found!
The requested page does not exist or you are not allowed to access it!


Can some one point me in the right direction ?

Thanks in advance,

Gijs
__________________
X-cart 4.1.11
PHP 5 MySQL 5
www.wheelpalace.eu
Reply With Quote