PHP Dynamic Page Titles Action

Is there an action for putting a short line of PHP code into the Freeway page title but keeping the freeway pages named correctly?

The PHP Dynamic Page Titles Action nearly works but assumes your just putting in a single variable name, not the full code <?... ...?>

Is there anything?


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

Sometime around 7/5/08 (at 10:48 -0400) ineedwebhosting said:

The PHP Dynamic Page Titles Action nearly works but assumes your
just putting in a single variable name, not the full code <?... ...?>

Off the top of my head - have you tried putting your PHP code into a
variable, just as a workaround at least?

k


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

Yes, I can do it that way, marginally quicker to paste the code in one action field, rather than split around the Freeway document, (I’ve got to call the variable first not just name it in the action) and as I’ve got to re-visit this on a few documents and pages.

But never looked into actions before

Need to change this line

// Create the string for the title tag
var myString = ‘<?PHP print"$' + fwParameters[ "title" ] + '"; ?>’;

so it just puts the field contents in the action

But just typing this - I guess has concentrated my mind into knowing what to do… as I can wrap the extra code I want, around the variable i’m using.

And re-name the action for just the use I want.

On 7 May 2008, at 17:10, Keith Martin wrote:

Sometime around 7/5/08 (at 10:48 -0400) ineedwebhosting said:

The PHP Dynamic Page Titles Action nearly works but assumes your
just putting in a single variable name, not the full code <?... ...?>

Off the top of my head - have you tried putting your PHP code into a
variable, just as a workaround at least?

David Owen
Freeway Friendly Web hosting and Domains ::
(Test Drive a web hosting account for Free)

http://www.ineedwebhosting.co.uk

http://www.printlineadvertising.co.uk/freeway

Why not set it to a variable in the Before HTML and set that variable
in the action.

<?php $page_title = ' - This Is Another Page ' . $some_value; ?>

Then set page_title into the action field.

BTW, There is an a version of this action I updated so a variable can
be used with an existing title (before or after).

http://www.easibase.com/freeway/freewayactions.php

Mike

On May 7, 2008, at 4:48 PM, ineedwebhosting wrote:

Is there an action for putting a short line of PHP code into the
Freeway page title but keeping the freeway pages named correctly?

The PHP Dynamic Page Titles Action nearly works but assumes your
just putting in a single variable name, not the full code

<?... ...?>

Is there anything?


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