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.
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.
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.
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.