How to create an internal link to a directory ?

When you saw this behavior, were you working in a folder where you
had already created such a file manually? The Action code will open
and re-write an existing index.var, but only if it is one that the
Action created. Otherwise, this renaming behavior is consistent with
what Freeway usually does when it encounters a file that it did not
create.

You can test this out by changing the folder you publish into. Select
a new local publish folder in the Document Setup dialog. Publish.
Review the index.var. Then add a new language page, publish, and
review again.

Walter

On Jul 20, 2008, at 4:41 AM, tobiaseichner wrote:

However I found a bug when later adding another page to the folder,
this will create a new .var file, but using the name indexa</
b>.var (guess this is the FW renaming behaviour when having two
equally labelled files in place). So you should ensure to delete
the old one before.


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

When you saw this behavior, were you working in a folder
where you had already created such a file manually?

Yes, there was a page named index.var, but I removed it… however it’s possible the page was removed but the site not generated again…

When I do testing with a new project tomorrow, I give this a try, too. Let you know then.


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

I gave it a more closer look this morning and created a small project here: TOBIAS EICHNER IT + CONSULTING - Information Technology Is Our Universe !

It supports de, en and fr. You may set your webbrowser to one of these languages and give it a try. There is also an alternative page for non-supported languages.

The problem of having two different named versions of index.var disappeared. So I guess it was my fault (having an index.var already in place, deleted it but did not re-generate the site).

So anything seems to work well :slight_smile:


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

I was a bit too fast… now the indexa.var file is there again. This is what I did:

  1. Creating a new project adding the page action and three pages (German, English, French).

  2. Generating the site to give it a try.

  3. Adding the alternative page index_alternative.html. Now I have two .var files - index.var without the new entry and indexa.var with the alternative page entry.

For you to check it out, I uploaded the project here: TOBIAS EICHNER IT + CONSULTING - Information Technology Is Our Universe !

I’m using FW 5.1.2.


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

Thanks for posting this. I was able to add a new page called
index_da.html, republished, and saw the new page in the one (and only
one) index.var. I did have to hold down Control and force Freeway to
Publish Everything in order to see the new language, but that’s more
an issue with Freeway and Folder Actions than anything you might have
done in laying out your site.

I don’t see anything wrong with your site per se, but the real
problem is that you have your Freeway document in the same folder
that you are publishing to. This type of Action needs to store
temporary files next to the document while generating external files,
and publishing into the same folder messes with that. The Action
tries to save a file called index.var in the temporary folder (which
is always the same folder as the Freeway document itself) finds one
already there – the previous copy generated during the last publish,
and so increments the name of the file. You will get similar hard-to-
predict behavior if you use images in your layout from the Resources
folder of the same site you are publishing. (A sort of M.C. Escher
exercise if you think about it.)

Try laying your project folder (on your disk, not the server) out
like this:

/Project Name
	freeway document.freeway
	/Media -> all the extra stuff you need, pictures, movies, etc.
	/Site -> where you tell Freeway to publish

Freeway will have a much easier time of it that way. The Media folder
is not specifically required, but it helps when you need to find
something later for updates. You can also get this sort of
“preferred” disk layout by selecting File > Archive from the main
menu. Freeway will magically collect any external files you have
referenced in your document, place them in Media, sever all links to
the original art and re-link to the copies in the Media folder, and
publish the site into Site.

Walter

On Jul 21, 2008, at 3:52 AM, tobiaseichner wrote:

I was a bit too fast… now the indexa.var file is there again.
This is what I did:

  1. Creating a new project adding the page action and three pages
    (German, English, French).

  2. Generating the site to give it a try.

  3. Adding the alternative page index_alternative.html. Now I have
    two .var files - index.var without the new entry and indexa.var
    with the alternative page entry.

For you to check it out, I uploaded the project here: http://
TOBIAS EICHNER IT + CONSULTING - Information Technology Is Our Universe !

I’m using FW 5.1.2.


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

Usually I use separate site and resource folders already and there the problem existed as well; however once following your note to press CTRL while rebuilding the site, it worked correctly as it should. So likely we can consider this as an issue of FW.

Guess we have a final release of this action :slight_smile:


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