Show single page

Archived from the Web Auction Discussion forum.

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


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
  1. 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 — Thu Dec 27, 2007 10:08 am

Oh.. then your page would be accessible at

index.php?-action=faq