| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How to get help pages under help box | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hi,
The title is perhaps a bit cryptic, so let me start with a little explenation. On my home-page I use Cartlab Mod "Tabbed Menus". When I click on "help", all the help-pages appear listed. When I click on one of these help pages I'll be directed to help.php?section=whatever. What would I like to achieve? when I click one of the help-links the corresponding page appears under the box with all the links. If that is not possible: help.php lists on top all the available topics and under that the corresponding pages appear. On top of that: The same principle I would like to perform with static pages which are listed. Image example: http://www.gbhwebsolutions.com/xcart/part12.jpg Question: Can anybody point me in the right direction ? Thanks in advance ! Gijs |
|||||||||
#2
|
|||||||
|
|||||||
![]() Very simple.......
Just add the following to the top of help/index.tpl Code:
and remove the last line where it's included after {else}
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#3
|
|||||||||
|
|||||||||
![]() Thanks pmstudios,
Works like a dream ![]() Here is the code to do the same with static-pages: Edit: customer/main/pages.tpl Code:
|
|||||||||
#4
|
|||||||||
|
|||||||||
![]() Now to some more serious stuff.
If you call pages.php without a pageid you'll get a pages not found error. I would like to call pages.php directly and show a box with all the static-pages listed for the current shop language (= same principle as in the previous post). I tempered around a bit with pages.php but got nowhere. ![]() Anybody with an idea how to tackle this one ![]() Thanks in advance, Gijs |
|||||||||
#5
|
|||||||
|
|||||||
![]() You'll have to setup a template page to display the list of pages, but here is the modification for pages.php
Code:
Add the following to the top of customer/main/pages.tpl Code:
Create new template file customer/main/pages_title.tpl Code:
And of course whatever message you want for txt_no_pages_available, like "There are currently no pages available" or whatever you want. This is really off the top of my head, so backup your files! ![]()
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#6
|
|||||||||
|
|||||||||
![]() Hi pmstudios,
I doesn't run error free, but it comes quite close to what I want to achieve. You definitely pointed me in the right direction :P Gonna dedicated myself to it tomorrow and will report back ![]() Thanks for your help, much appreciated. Gijs |
|||||||||
#7
|
|||||||
|
|||||||
![]() I made a couple changes just now (forgot to include the language in the query), but good luck with it tomorrow and glad to help put you in the right direction !
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#8
|
|||||||||
|
|||||||||
![]() Hi pmstudios,
Couldn't sleep so back to work ![]() So here it goes: pages.php Code:
costumer/main/pages.tpl Code:
customer/main/pages_title.tpl Code:
Works fine for me ![]() Have a good night to ... Gijs |
|||||||||
#9
|
|||||||
|
|||||||
![]() Excellent
![]()
__________________
X-Cart 4.0.5 MySQL: 3.23.58 PHP 4.3.2 |
|||||||
#10
|
|||||||||
|
|||||||||
![]() Hi pmstudios,
As I have a multi-lingual cart and I dont want some pages to appear in the pages list I've a the following twist to it Code:
|
|||||||||
|
|||
X-Cart forums © 2001-2020
|