Action question: finding the relative url back to site folder

Hi Everyone,

I have another little conundrum…

I am trying to find out if there is a way for an action to write the relative url to the site folder location (top level)?

e.g. if I have a page within a sub-folder I will need the action to know where it is and write the path pack to the top level . although I don’t actually want to specify the site folder itself, I need to specify a folder called:slpw

Below is what I need to end up with
“…/slpw/sitelokpw.php”

This folder and its php pages are uploaded separately via ftp and not part of any freeway output

If any can help or point me in the right direction it would be very much appreciated.

Cheers max


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

Hi Max,
This should get you up and running;
http://www.freewayactions.com/code/?f=Path-to-root.fwaction
Regards,
Tim.

On 2 Sep 2012, at 22:20, max wrote:

Hi Everyone,

I have another little conundrum…

I am trying to find out if there is a way for an action to write the relative url to the site folder location (top level)?

e.g. if I have a page within a sub-folder I will need the action to know where it is and write the path pack to the top level . although I don’t actually want to specify the site folder itself, I need to specify a folder called:slpw

Below is what I need to end up with
“…/slpw/sitelokpw.php”

This folder and its php pages are uploaded separately via ftp and not part of any freeway output

If any can help or point me in the right direction it would be very much appreciated.

Cheers max


FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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

Cor blimey that was quick… that took you just a few minutes…

Thanks for posting the example. That was exactly the sort of thing I was looking for again thanks for knocking that together.

Max


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

Hi Max,
I’m glad it helped.
Regards,
Tim.

On 3 Sep 2012, at 10:05, max wrote:

That was exactly the sort of thing I was looking for again thanks for knocking that together.


FreewayStyle.com - Free Freeway templates and parts to download, use and explore - http://www.freewaystyle.com


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