Reactor View files, dsp & frm

View: New views
2 Messages — Rating Filter:   Alert me  

Reactor View files, dsp & frm

by Daniel OKeefe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could not figure out why when I moved a "dsp" file from the generated folder to the view folder and made changes, they were not reflected when I ran that event. Then I noticed all of the "frm" files with the same name as my dsp file, and moving that up a level and making changes  does cause the template to change as I wanted it.

Did some scouting around and I am not finding any reference to the frmTABLENAME.cfm files. Any ideas why reactor is generating both during scaffolding?

Dan

RE: Reactor View files, dsp & frm

by Chris Blackwell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Reactor doesn't generate the files, ModelGlue does.  When generating scaffolds ModelGlue will generate 3 files for each table
 
dspTABLENAME.cfm - Display a single row from the table
dspTABLENAMEList.cfm - Display a list of all rows in the table
frmTABLENAME.cfm - A form to Add/Edit a single row in the table
 
If you want to customise your generated templates, you will need to:
 
move them out of the "generated" directory into your views directory.  
Remove the <scaffold> tag from you ModelGlue.xml
Open config/scaffolds/Scaffolds.xml and copy the eventhandlers for that table into your ModelGlue.xml
If your done generating scaffolds, set rescaffold=false in your Coldspring.xml
 
Cheers, Chris


From: Daniel OKeefe [mailto:dan.okeefe@...]
Sent: 19 April 2007 23:33
To: modelglue@...
Subject: Reactor View files, dsp & frm

Could not figure out why when I moved a "dsp" file from the generated folder to the view folder and made changes, they were not reflected when I ran that event. Then I noticed all of the "frm" files with the same name as my dsp file, and moving that up a level and making changes  does cause the template to change as I wanted it.

Did some scouting around and I am not finding any reference to the frmTABLENAME.cfm files. Any ideas why reactor is generating both during scaffolding?

Dan
--^^---------------------------------------------------------------
This email was sent to: lists@...

EASY UNSUBSCRIBE click here: http://topica.com/u/?b1drHn.b8g9YZ.bGlzdHNA
Or send an email to: modelglue-unsubscribe@...

For Topica's complete suite of email marketing solutions visit:
http://www.topica.com/?p=TEXFOOTER
--^^---------------------------------------------------------------
LightInTheBox - Buy quality products at wholesale price