Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Ministry Tools > Other TYPO3 Extensions > Seminars - custom Registration Form template?
Total Posts: 5 - Pages (1): [1]
Author: Peter Schott
Posted: Apr 16 2008 - 11:09 PM
Subject: Seminars - custom Registration Form template?
Anyone done this? I'm having a bear of a time getting anything custom to show on the registration form and just don't know what I'm doing wrong. I've tried:

1. Making a copy of the registration_editor.html file, modifying the copy, and pointing the Registration page to that copy.
2. Modifying the registration_editor.html file in the pi1 folder
3. Resetting/Clearing cache all the time.

No matter what, my changes will not show up on the registration page.

All I really want to do at this point is add some text to indicate some payment terms and to actually put our Terms/Conditions on the page where the user agrees to them. When I put the code from that page into an HTML editor and preview it, my text shows up, but as soon as I make those mods back into the TYPO3 document (and just those mods), it's like I never changed anything.

Am I changing the wrong document? Does TYPO3 strip out values not encoded a certain way? Something else entirely? I know that it's got to be relatively easy, but I'm just not getting it right now.

Thanks for any help/advice you can give.

-Peter Schott
user picture Author: Mark Stephenson
Posted: Apr 17 2008 - 09:55 PM
Subject: re: Seminars - custom Registration Form template?
Peter,

I do not know this extension, but generally extensions have default extension templates and if you want to modify a template you copy the default one to somewhere in fileadmin. Then you must tell the extension where the new template is. This is done via a form field or maybe typoscript. So maybe that is the case here.

In Him,
Mark
Author: Peter Schott
Posted: Apr 18 2008 - 01:44 AM
Subject: re: Seminars - custom Registration Form template?
I've tried that. My problem is that modifying the template does nothing. I've used a pretty basic HTML editor (Kompozer) just to paste in the original source of the template, mess with it, and preview it. When I change it in Kompozer or even Visual Studio, the changes I make look okay.

I then make those same changes in the TYPO3 back-end using the file browser/editor. I don't try to paste in the whole document I've been messing with because I don't know what other changes VS or kompozer make.

Anyway, when I make the same changes - in this case just to add some text - I save, reset the cache, then refresh the page - nothing shows up. I don't want to make it so there's a payment option on the last page and a warning text floating above the registration page, but it seems that is what I'll need to do. It's just a little frustrating right now trying to get my relatively minor changes made to the registration page. I'm also having a hard time finding a good example or instructions on how to make my changes. If I had a working example to go against or some details on what is needed, I'd be in a much better position to move forward.

Kind of hoping someone here has some seminars experience and has successfully modified their templates in a way that works and beyond just some style changes. I don't know if this is standard TYPO3 behavior or not; it could be. I just don't normally expect HTML text outside of the TYPO3 placeholders to be completely erased when the page is rendered. I see the place in code where it calls a render() type function, but am not sure to what it is pointing as that function doesn't exist in that particular PHP file.

Anyway, if anyone has some pointers, I'm open. I was hoping to have this up and running earlier in the week and feel that I'm close so I've been delaying an ugly deployment in hopes of a better-looking one.
user picture Author: Mark Stephenson
Posted: Apr 18 2008 - 07:59 AM
Subject: re: Seminars - custom Registration Form template?
Peter,

You probably saw this before but here are the instructions on changing an HTML template in seminars:

http://typo3.org/documentation/document-library/extension-manuals/seminars/0.5.3/view/1/3/#id3696464

This general approach is standard to the way it is done in all of TYPO3. The key is getting the path to the template right. If the path is not right then the extension will not see your changes. It looks like it can be entered in the flexform (or typoscript). Enter fileadmin/thedirectory/thetemplatefile.tmpl. If you e-mail me an admin username and password, I think we can get past this part of the challenge since this is not unique to seminars.

In Him,
Mark
user picture Author: Mark Stephenson
Posted: Apr 18 2008 - 02:11 PM
Subject: re: Seminars - custom Registration Form template?
Peter,

Thanks for the user/pass. Just seeing it helps a lot. Here is what I did to enable the plugin to see the templates. It is based on this documentation:

http://typo3.org/documentation/document-library/extension-manuals/seminars/0.5.3/view/1/3/#id3696464

- Click on Template at the left

- Click on the page name

- Since the screen showed that there is no template record for this page I clicked on
"Click Here to create an extension template." This creates a record where you can add Typoscript.

- I clicked on the pencil icon to the left of the word "Setup" to edit the setup field in the template record.

- I then added these three lines to the setup section:

plugin.tx_seminars.templateFile = fileadmin/templates/seminars.tmpl
plugin.tx_seminars_pi1.templateFile = fileadmin/templates/seminars_pi1.tmpl
plugin.tx_seminars_pi1.registrationEditorTemplateFile = fileadmin/templates/registration_editor.html

You had already copied the templates from the extension to this location in fileadmin. So that made it easy.

- Then I edited seminars_pi1.tmpl and added <p>PETER</p> just to make sure the plugin is looking at this file to display the main seminar page. So until you remove it, you will see PETER at the top of the page. I believe that you can edit the files in the fileadmin/templates directory (or add new files and link to them via Typoscript) to get the template changes made.

In Christ,
Mark
Total Posts: 5 - Pages (1): [1]
You must login to post a message to this conference.