![]() |
How to get help pages under help box
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 |
Very simple.......
Just add the following to the top of help/index.tpl Code:
{include file="help/general.tpl"} and remove the last line where it's included after {else} |
Thanks pmstudios,
Works like a dream :lol: Here is the code to do the same with static-pages: Edit: customer/main/pages.tpl Code:
{capture name=dialog} |
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. :cry: Anybody with an idea how to tackle this one :?: Thanks in advance, Gijs |
You'll have to setup a template page to display the list of pages, but here is the modification for pages.php
Code:
if (isset($HTTP_GET_VARS["pageid"])) { Add the following to the top of customer/main/pages.tpl Code:
{include file="customer/main/pages_title.tpl"} Create new template file customer/main/pages_title.tpl Code:
{capture name=dialog} 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! ;) I haven't tested it either, but hopefully it works or sets you in the right direction. |
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 |
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 !
|
Got it
Hi pmstudios,
Couldn't sleep so back to work 8O So here it goes: pages.php Code:
<?php costumer/main/pages.tpl Code:
{* $Id: pages.tpl,v 1.3 2004/05/06 11:40:19 svowl Exp $ *} customer/main/pages_title.tpl Code:
<table width="100%"> Works fine for me :lol: Have a good night to ... Gijs |
Excellent :D
|
added a litle tweak
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:
<table width="100%"> |
All times are GMT -8. The time now is 07:28 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.