[ANN] Content Negotiation 0.2

I just finished some improvements to the Content Negotiation Action.
The Action now tracks changes to the folder much more closely, and
you don’t have to resort to holding down the Control key while
publishing in order to wake it up.

The price you pay for this diligence is that the Action will force
the LAST page in the folder it is applied to (or the site, if that’s
how you have applied it) to always publish every time you publish the
site. So even if there have been no changes to that last page, it
will still always publish and upload. If you decide that’s a large
price to pay, then just stick an un-linked blank page at the end of
your site or folder. Since it takes a fraction of a second to publish
a blank page, you will never notice it.

http://freewaypro.com/actions/downloads/ContentNegotiation.fwaction

Walter


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

Thanks waltd for the action. I’ve just read about the Crowbar action and got that and I also got this “Template Helper” action and I’m not sure what it does. Wasn’t sure if this action was a “waltd” special or someone else’s prize.


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

TemplateHelper allows you to do two things:

  1. If you are building a template-based site, very often you will need certain styles to be published to the outer template “shell” that are not actually used in that shell. (They’ll be needed by the sub-page “parts” that you are going to insert into that shell, so they need to be ready to use.) If you draw an HTML box on the page, put examples of each style you need in it, and then apply TemplateHelper to it, you will cause those styles to be added to the page or stylesheet, and erase that temporary box from the generated page so it doesn’t hang around and cause mischief.

  2. If you are using Freeway to create the little page parts that go into a template system, then you know that you can’t just lay out a small page and insert it into another page. You’d end up with a page within a page, which is not only invalid, it’s also guaranteed to crash a few of the more twitchy browsers. What you want to be able to do is create a “partial” page, which is just the element you are inserting into your outer template shell. When you apply TemplateHelper to the element on your page and engage the Partial mode, it will cut that element out of the page and save it in a new text file next to the current page, named _YourPartialName.extension (the name and extension can be set in the Action interface). In that mode, you can also strip style, position, and ID out of the generated partial, the better to fit into your template.

Walter


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

Makes sense Walter. Thanks for the explanation.


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

There seems to be a bug at the Content Negotiation action:

I had one page named index_de.html created and existing. Then applying the action to the top project folder.

The index.var file was created as intended.

Later I added another page named index_en.html to the project.

Now index.var remains with the old contents and a new file labelled indexa.var is created instead of.

Do you have a guess what went wrong (maybe it’s caused on my side) ?

Tobias.


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

Freeway has some internal issues with Actions that create files. For
one thing, are you using the very latest version of Freeway? For
another, have you tried this wee trick:

  1. Locate the folder where Freeway publishes your files on your hard
    disk.
  2. Move everything inside it (not the outer folder) to the Trash, and
    empty the Trash.
  3. Publish your site again in Freeway.

Very often, this will clear up these sorts of problems. If the problem
persists, please let me know.

Walter

On Nov 28, 2009, at 9:43 AM, tobiaseichner wrote:

There seems to be a bug at the Content Negotiation action:

I had one page named index_de.html created and existing. Then
applying the action to the top project folder.

The index.var file was created as intended.

Later I added another page named index_en.html to the project.

Now index.var remains with the old contents and a new file labelled
indexa.var is created instead of.

Do you have a guess what went wrong (maybe it’s caused on my side) ?

Tobias.


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

Hi, thanks for your quick reply :slight_smile:

Yes, I’m using the latest version of FW pro.

Locate the folder where Freeway publishes your files on
your hard disk.
Move everything inside it (not the outer folder) to the
Trash, and empty the Trash.
Publish your site again in Freeway.

I did this trick and it works well… see my other posting about problems with your Carousel action, which is getting solved the same way.

Well, seems that we have to live with these inabilities of FW…

Tobias.


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