old Freeway 5 question

Im updating the CMS software on a Freeway 5 document and am having trouble with linking the resources I thought I could control what the link was for the resources when the html was written, say for instance relative rather than a full link. I’ve looked everywhere but its got me stumped. Any old timers give me a clue please.

thank you Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

A lot of CMSen play fast and loose with the directory structure of the server, using a virtual path to signal programming intent rather than a literal path to a resource. This can play havoc with an application like Freeway, which is designed around literal directory structure.

Left to its own devices, Freeway will always generate “relative” paths in the HTML it codes into links and image references and so forth. These will always start from the page they are on as a reference point. If they are navigating “down the tree”, then they will only include the part of the URL that needs to be appended to the current path to get to the destination. If the destination is “across the tree”, then you will see some “up and over” notation, using double-dots and slashes, like this:

<a href="../../foo/bar/baz.html">Baz</a>

The Apache Web server will merge this with the base path of the page containing this direction, and compute the absolute URL from the result.

I have built a fair number of CMSen around Freeway, but without knowing the specifics of yours, I can’t give you much more guidance than the above. If your CMS uses “pretty URLs” instead of querystring directives, then it’s a fair bet that it is forcing the URL for any page to terminate at the first slash after the domain name. Everything after that is all made up. This is directly opposed to the way that Apache and a static site want to work, so your CMS will have to provide a means of re-mapping requests for non-virtual resources back to their actual directory path.

If you provide some more details about your specific CMS, I may be able to help you further.

Walter

On Apr 29, 2020, at 4:09 AM, ummedia email@hidden wrote:

Im updating the CMS software on a Freeway 5 document and am having trouble with linking the resources I thought I could control what the link was for the resources when the html was written, say for instance relative rather than a full link. I’ve looked everywhere but its got me stumped. Any old timers give me a clue please.

thank you Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

I am struggling Walt. I dont want relative links to resources, My other website digital-watch makes files with full url but I just cant remember how I did it.

I hope you are safe and well. Its been quite a few years since I have been on FreewayTalk. Good thing about Freeway. When it works, it works.

regards

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Well, when you say Full URL, do you mean root-relative, beginning with a forward slash, or fully-qualified, complete with a protocol, hostname, and the full root-relative path?

There’s an Action called RootResources that i have here, if it’s not in the Forge, I will put it there right after I write this. It’s an imperfect solution: it cannot deal with nested folders in your site. It also cannot adjust URLs, only SRC references to images and other such linked inline elements.

I think that Tim Plumb had a more exhaustive look at this problem some years back, you may want to hunt around https://freewayactions.com and see if there is anything there, particularly in the “Beta Box”.

Walter

On Apr 29, 2020, at 12:44 PM, ummedia email@hidden wrote:

I am struggling Walt. I dont want relative links to resources, My other website digital-watch makes files with full url but I just cant remember how I did it.

I hope you are safe and well. Its been quite a few years since I have been on FreewayTalk. Good thing about Freeway. When it works, it works.

regards

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

I thought at some point I had used Tims but when I look at both my Freeway files I cannot see anything. But the Freeway file for the digital-watch.com site is definitely making the files

rather than

…/Resources/chatmen.png

And that front end is set in the Wed address(or thats the only place I can find it) on the Document setup page.

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

I don’t know if this will be of any help with your situation but several years ago Tim P. helped me sort out a similar CMS-related path problem with Freeway Pro. He updated his Remote Resources Action (download link on this page, Tutorial: Integrating the MODX CMF into a Freeway Pro Workflow | QREATiv). It worked perfectly for what I needed so maybe it will be of use to you.

Todd

Portfolio: Brilliant by Design
Community Project: QREATiv


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Thank guys. I had Tims Remote resources installed already. I just had to make some changes and then faff around with file structures but nearly got there.

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

That’s great!

Walter

On Apr 29, 2020, at 7:02 PM, ummedia email@hidden wrote:

Thank guys. I had Tims Remote resources installed already. I just had to make some changes and then faff around with file structures but nearly got there.

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Sorry coming back with one more old freeway 5 question guys. Can I tell Freeway where I want the resources folder to upload to? Rather than in the same folder as the files? Thank you.

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

You can choose between No Resources folder, (just scatter the files along with the HTML) a single Resources folder at the root of the site, or a Resources folder in each subfolder within the site (and one more at the root).

And you cannot tell or determine or influence exactly into which Resources folder Freeway will put any given image (if you chose the separate folders option). It’s completely unpredictable. Freeway will attempt to use the fewest number of copies of an image–it will never make a duplicate of any file unless there is actually something different about that particular file. But you may end up with an html file here:

www.example.com/some/deep/folder/page.html

referencing images from an adjacent folder, like maybe

<img src="../../../another/folder/Resources/image.jpeg" >

Usually this can happen if you copy an image from one page and paste it on another, although sharing a Master Page can sometimes be enough. If you are fastidious about your folder layout, or are doing anything particularly programmatic, this can and will drive you completely nuts.

So those are your choices, and your lack of any sort of control over what they will create.

Walter

On May 4, 2020, at 7:05 PM, ummedia email@hidden wrote:

Sorry coming back with one more old freeway 5 question guys. Can I tell Freeway where I want the resources folder to upload to? Rather than in the same folder as the files? Thank you.

Adam


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

OK Thank you Walter, not what I wanted to here, but it is what it is. I think my only option is to double upload and use the EE resources Action. EE has a htaccess protection on its template folder that wont let you link to the resources for the html pages. The resources need to be outside of the EE structure but the templates need to be in it.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options