Is it possible to create a plain file with no styling/headers at all - just some pasted PHP code with no other elements? (it’s a db.inc file)
At the moment I’m just copying the db.inc file into the site’s published directory but it would be nice if I could create it in Freeway and publish that as well (just for the sake of keeping the entire contents of the site consolidated).
Use the Upload Stuff action to upload files from your HD into your site’s root or resources folder.
So you can use any editor to make this file and still have it uploaded when you upload the site. If you have a local resources or media folder, place in in this folder and keep everything consolidated.
make this page an html 3.2 page from within the inspector palette (You can see that drop down within the 3rd tab across - “Pages HTML Generation Settings”)
apply the Script Doc.Creator Action to this page
look at the action palette and click on the big button and paste your php code within the popup.
finally within the inspector palette rename the page and make sure you have included the correct document type ending so if its a php file then add .php instead of .html or if it were a css file then you would use .css
when you finally publish the freeway document the file will be written with just the code you pasted in the popup and the file will be name correctly
This method means you don’t have to worry about uploading an external file and the code is always available to edit from within freeway.
Hi Kim there are couple of actions that can do this one of which is the Script Maker & Linker action ActionsForge - The Complete Repository of Freeway Actions
This method means you don’t have to worry about uploading an external file and the code is always available to edit from within freeway.
Thanks max, this looks great and I like the fact it’s all contained in the one document.