Show single page

A place to discuss and receive support for the Web Auction application.

Show single page

Postby Anthony Barber » Thu Dec 27, 2007 3:46 am

Hi Steve,
I want to add a FAQ page to the site. This page should inherit the the Global_Header and the Fineprint footer but no other parts of the project.
In fact, I will need a couple of this type of page.

How do I do that? I thought it would be really simple, but I have spent days on it now.
I would be very grateful for some help.
I hope you had a nice Christmas and wish you a happy and prosperous New Year
Regards,
Tony
Anthony Barber
 
Posts: 29
Joined: Tue Oct 23, 2007 9:58 am

Postby shannah » Thu Dec 27, 2007 10:08 am

Hi Anthony,

What you need to do is create a custom action. This comprises 2 parts.

1. Add the action to the actions.ini file.
Code: Select all
[faq]
    template=faq.html


2. Add template for your action to the templates directory.
i.e. templates/faq.html

If you want it to inherit the header and footer, you would do the following in faq.html :
Code: Select all
{use_macro file="Dataface_Main_Template.html"}
{fill_slot name="main_column"}

... Your stuff here ...

{/fill_slot}
{/use_macro}



Best regards

Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby shannah » Thu Dec 27, 2007 10:08 am

Oh.. then your page would be accessible at
index.php?-action=faq
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved