Plain Page

Hi there,

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).

'k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

There are various Actions that allow you to create/manipulate includes - have a look at actionsforge ActionsForge - The Complete Repository of Freeway Actions

Or you could use an action like Upload Extra Resources ActionsForge - The Complete Repository of Freeway Actions to add the .inc file to your server automatically

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 01/04/2012, at 8:57 PM, DeltaDave wrote:

Or you could use an action like Upload Extra Resources ActionsForge - The Complete Repository of Freeway Actions to add the .inc file to your server automatically

Not what I was expecting but will do exactly what I need - many thanks.

'k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Kim there are couple of actions that can do this one of which is the Script Maker & Linker action

http://www.actionsforge.com/projects/view/98-script-maker-linker

The basic method for your scenario is:

  1. create a new page.
  2. 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”)
  3. apply the Script Doc.Creator Action to this page
  4. look at the action palette and click on the big button and paste your php code within the popup.
  5. 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.

All the best max


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 01/04/2012, at 10:55 PM, max wrote:

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.

cheers

'k


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Max - I wasn’t aware of these actions. Very useful!

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options