[Pro] Resources folder - Problem Solving

Until recently, I have always used the “Separate Resource Folders” setting (“Output” tab of Document Setup). I now am trying to change all my sites to use the “Common Resource Folder” setting, but I am having problems.

I have two languages for my sites: Japanese & English. As such, I store the bulk of my site content in separate server subdirectories so-marked:

visionsecurity.jp/jp/…

visionsecurity.jp/en/…

I use two different Freeway documents, one to handle the /jp and the other to handle /en.

The problem comes down to Freeway not giving me control over GIF text filenaming. If I had control over that, I believe there would not be a problem at all.

Here’s the problem in detail…

When I upload my Japanese site using the Common Resource Folder setting, it puts that “Resources” folder in the root of my domain:

visionsecurity.jp/Resources/

When I upload both of my Freeway documents to that same domain (both with the Common Resource Folder setting selected), all the resources from both documents are dumped into that same “Resources” folder in the root of my domain. And it never fails that GIF text graphics get overwritten when I upload from different documents. Other graphics don’t seem to get overwritten though – just GIF text I make in Freeway (which Freeway automatically chooses a name for).

So the only solutions I can think of are these:

  1. Use “Separate Resource Folders” (which is not what I want).

  2. Be given the power to edit the filenames for GIF text I create in Freeway (not likely, as that would require SoftPress to add that feature).

  3. Put a different Resources folder in the server path of my choosing.

My preferred solution is #3. But how do I do that? Tim Plumb’s “Remote Resources” action does not appear to be the best choice here:

http://www.freewayactions.com/product.php?id=013

If you read the description for Tim’s action, it says to upload the site, then apply the action, then manually upload the HTML files to another server. But clearly, that will NOT solve my problem. Why? Because if I upload with Freeway, some of my graphics will get overwritten in that unified Resources folder – the very problem I am trying to avoid.

Oh sure, there is the painstaking “manual” workaround: I apply Tim’s Action and then deal with all the uploading myself using an FTP client like Transmit. But to me, that is too much trouble, and honestly, I use Freeway to give me “less trouble.” I want Freeway to handle the uploading of my Resources, but at the same time, I don’t want files to get overwritten.

So is there another way I can change where “Resources” folder is saved to my server, and continue to have Freeway handle the uploading of all my resources?

For example, if I could get Freeway to upload the Resources folders in following way (a different way for each of my 2 documents), my headache would be solved and I could still use the “Common Resource Folder” setting for each of my documents:

visionsecurity.jp/Resources/…

visionsecurity.jp/en/Resources/…

I look forward to hearing your thoughts and advice.

Thank you.


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

Since I posted this thread during a time when the FWtalk server went down, perhaps some of you missed it.

I would appreciate hearing your thoughts and recommendations.

Thank you.


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

I have worked through many of these problems with the old “splitting a
site” problem, if you recall that issue from long ago before Freeway
could handle more than a hundred pages or so.

What you’ll need to do is make sure that your local environment (on
your Mac) closely mirrors the hosting environment. Say you have two or
more site documents, but on your server you have them both hosted from
the same domain, and thus from the same site folder. What you need to
do is use a single Site Folder on your Mac, and publish both documents
into it. Then Freeway’s normal behavior will work for you rather than
against you.

/htdocs
	/en
	/jp
	/Resources


~/Documents
	/kiramek-2010
		/en
		/jp
		/Resources

Publish the first document into the folder, then the second, then go
back and publish the first one again, just for good measure. You
should end up with a complete set of non-conflicting graphics, as
Freeway will have added 1a2b3c whatever to the filenames to compensate.

Walter

On Jul 21, 2010, at 2:50 AM, JDW wrote:

Until recently, I have always used the “Separate Resource Folders”
setting (“Output” tab of Document Setup). I now am trying to change
all my sites to use the “Common Resource Folder” setting, but I am
having problems.

I have two languages for my sites: Japanese & English. As such, I
store the bulk of my site content in separate server subdirectories
so-marked:

visionsecurity.jp/jp/…

visionsecurity.jp/en/…

I use two different Freeway documents, one to handle the /jp and the
other to handle /en.

The problem comes down to Freeway not giving me control over GIF
text filenaming. If I had control over that, I believe there would
not be a problem at all.

Here’s the problem in detail…

When I upload my Japanese site using the Common Resource Folder
setting, it puts that “Resources” folder in the root of my domain:

visionsecurity.jp/Resources/

When I upload both of my Freeway documents to that same domain (both
with the Common Resource Folder setting selected), all the resources
from both documents are dumped into that same “Resources” folder in
the root of my domain. And it never fails that GIF text graphics
get overwritten when I upload from different documents. Other
graphics don’t seem to get overwritten though – just GIF text I
make in Freeway (which Freeway automatically chooses a name for).

So the only solutions I can think of are these:

  1. Use “Separate Resource Folders” (which is not what I want).

  2. Be given the power to edit the filenames for GIF text I create in
    Freeway (not likely, as that would require SoftPress to add that
    feature).

  3. Put a different Resources folder in the server path of my choosing.

My preferred solution is #3. But how do I do that? Tim Plumb’s
“Remote Resources” action does not appear to be the best choice here:

http://www.freewayactions.com/product.php?id=013

If you read the description for Tim’s action, it says to upload the
site, then apply the action, then manually upload the HTML files to
another server. But clearly, that will NOT solve my problem. Why?
Because if I upload with Freeway, some of my graphics will get
overwritten in that unified Resources folder – the very problem I
am trying to avoid.

Oh sure, there is the painstaking “manual” workaround: I apply Tim’s
Action and then deal with all the uploading myself using an FTP
client like Transmit. But to me, that is too much trouble, and
honestly, I use Freeway to give me “less trouble.” I want Freeway
to handle the uploading of my Resources, but at the same time, I
don’t want files to get overwritten.

So is there another way I can change where “Resources” folder is
saved to my server, and continue to have Freeway handle the
uploading of all my resources?

For example, if I could get Freeway to upload the Resources folders
in following way (a different way for each of my 2 documents), my
headache would be solved and I could still use the “Common Resource
Folder” setting for each of my documents:

visionsecurity.jp/Resources/…

visionsecurity.jp/en/Resources/…

I look forward to hearing your thoughts and advice.

Thank you.


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


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

Walter, I finally finished the English version of my site today, so I was able to test your advice of pointing my Japanese site document and my English site document to the same Site Folder (both documents set to “Common Resource Folder”).

Your trick works well enough, but every time I upload each site it never fails to upload the same graphics again, even if I made no changes to either site at all (and even though neither site needs to publish any dirty pages). Freeway seems to be uploading almost 100 graphics each and every time I upload, but it doesn’t upload any HTML pages unless I dirty-and-republish.

I know both sites are sharing the same Resources folder, but since none of the files in that Resources folder are changing on my local hard drive, Freeway should not be uploading graphics when I use File > Upload time and time again. I cannot help but think this to be a bug in Freeway.


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

To clarify further…

The only time Freeway doesn’t upload those 100 graphics again is when I upload the same document twice. On the second upload, it compares files but then doesn’t upload the graphics again. But if I then upload my other language document (say, Japanese) and then upload yet again from my first document (say, English), then the first document will upload those same graphics again.

I use mostly pass-thru graphics, but I would expect Freeway to handle the filenaming properly so these same graphics wouldn’t get uploaded over and over.

The crazy part of all this is, with all these graphics being uploaded over and over, you would think Freeway must be doing it because the filenames generated by one document are the same as those generated by the other document. But that is not true. When I upload the English site, I then open the Japanese site in the browser and reload all the pages, but I am not seeing any of the English graphics appear on the Japanese site. This means Freeway is doing its job in managing the filenames. So why then is Freeway uploading the same graphics time and time again!? It’s nuts!


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