Technology Tools for Ministry

Community

Web-Empowered Church Developer's Community
All Categories > Developers > Templates > PHP as content
Total Posts: 3 - Pages (1): [1]
Author: Nader Emami
Posted: Mar 28 2008 - 05:08 AM
Subject: PHP as content
Hallo,

In a web site we have defined twee pages (Feedback, Registration):

Root
--------contact
---------------Feedback
---------------Registration


For these pages we have two PHP scripts. So they are not Root of this web site. For both of them I have defined an extension template (CREATE EXTENSION TEMPLATE) in which the next lines are defined:
#
content = FILE
content.config.disableAllHeaderCode = 1
content.file = fileadmin/scripts/feedback.php

It doesn't present any content.
Would somebody tell me what I miss in this template? Maybe there are "feedback" and "registration" template which I can use in this case.

Regards,
Nader
user picture Author: Mark Stephenson
Posted: Mar 28 2008 - 07:18 AM
Subject: re: PHP as content
Nader,

TYPO3 has extensions that can be used for feedback and registration. For feedback a simple e-mail form would probably work. For registration there is a whole system for that. There is also a guestbook extension. The WEC Starter Package has the registration fully implemented if you want a quick start. I suggest using TYPO3 extensions instead of outside code.

In Him,
Mark
Author: Nader Emami
Posted: Mar 28 2008 - 08:18 AM
Subject: re: re: PHP as content
Thank you for your answer!
I will look for the doumenation of them. I hope that I can add/change some fields of the Forms.
I have found some solution for my problem if I want to use my own "PHP" script.

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.config.disableAllHeaderCode = 1

page.50 = PHP_SCRIPT_EXT
page.50.file = fileadmin/scripts/feedback.php


But with this template, which is created with (CREATE EXTENSION TEMPLATE), I can see only the content of the "PHP" script and I miss left navigation, while it is not the case with the HTML pages. Do I have define some place in my HTML template which is defined in "default" template ?

Nader
Total Posts: 3 - Pages (1): [1]
You must login to post a message to this conference.