1) create a template file for your form, messages, and emails, based on example_form/mailformplus_demo.html
2) add a mailformplus record to a page
3) fill in send-to, subject, send-from, required-fields
3b) most importantly, attach the template file
3c) redirect-to-this-page seems not to work.
4) add a mailform plugin to the page (as content). No config needed on it.
5) add typoscript to template record:
plugin.tx_thmailformplus_pi1.emailHeader = Content-Type: text/html\r\n
plugin.tx_thmailformplus_pi1.emailParameter = -f server@host.example.com

typo3 versioning

June 15th, 2006

I have just done some initial research into how to use typo3’s versioning api, especially in regards to previously existing extensions. Here is what I’ve found, in summary.

To add versioning capabilities to an existing table of an extension.

ext_tables.php:

$TCA[”user_localdev_stores”] = Array (
“ctrl” => Array (

‘versioningWS’ => TRUE,
‘origUid’ => ‘t3_origuid’,

ext_tables.sql: (right after the cruser_id line)

CREATE TABLE user_localdev_stores (

t3ver_oid int(11) DEFAULT ‘0′ NOT NULL,
t3ver_id int(11) DEFAULT ‘0′ NOT NULL,
t3ver_wsid int(11) DEFAULT ‘0′ NOT NULL,
t3ver_label varchar(30) DEFAULT ‘’ NOT NULL,
t3ver_state tinyint(4) DEFAULT ‘0′ NOT NULL,
t3ver_stage tinyint(4) DEFAULT ‘0′ NOT NULL,
t3ver_count int(11) DEFAULT ‘0′ NOT NULL,
t3ver_tstamp int(11) DEFAULT ‘0′ NOT NULL,
t3_origuid int(11) DEFAULT ‘0′ NOT NULL,

that’s it. make those two adjustments, and your records will now have that nifty “v” versioning icon.

2)

Now, if you want your extension to DO things with versioning, such as create a new version of a record automatically, e.g. when a FE user submits a form, here are some classes to reference:

t3lib_BEfunc->selectVersionsOfRecord() and others in t3lib_BEfunc
t3lib_page->versionOL() and others in t3lib_page
t3lib_TCEmain->insertNewCopyVersion()
!! t3lib_TCEmain->versionizeRecord() and others in t3lib_TCEmain
t3lib_TCEmain->insertDB($table,$id,$fieldArray,$newVersion=FALSE,$suggestedUid=0,$dontSetNewIdIndex=FALSE)
t3lib_TStemplate->versionOL() ??
t3lib_userAuthGroup

It looks like TCEmain is a class that I need to spend some time in!

WordPress Links

April 19th, 2006

a few links to wordpress stuff.

main site:
http://wordpress.org/

download:
http://wordpress.org/download/
http://wordpress.org/latest.zip

themes:
http://themes.wordpress.net/
http://www.emilyrobbins.com…

plugins:
http://codex.wordpress.org/Plugins

my wordpress links (I might add to this list sometimes):
http://del.icio.us/nadavoid/wordpress