TemplateHelper doesn’t do anything in particular to styles.
In its normal (non-partial) mode, all it does is remove a “scratch” element from the page after Freeway has used it to generate styles in the page head. (The basic idea is that you want to use some Freeway-generated styles in a hand-coded or included from another file “fragment” of HTML. Freeway doesn’t publish styles that aren’t used on that page, so TemplateHelper lets you define an element containing those styles, then helpfully erases it from the page before the final publish step.
In its partial mode, in addition to everything above, it also saves the erased element to an external text file. This lets you include that element back into the current page or another page in your site. This lets you do things like create a catalog with 100 items and only draw one item in Freeway. Your database and application server just iterate over the collection of products and decorate that one template with all 100 products’ content.
But in any case, this Action doesn’t do anything that Freeway can’t already do with respect to CSS styles.
What you may need is a gentle introduction book about CSS to help understand what Freeway (or the hand-code in your page head) is actually doing. The only CSS books I have are expert-level, so I don’t have any recommendations for you on that front.
Ernie has already given you the basics regarding the order of precedence, which is a key thing to understand before you go any further.
The next thing to learn is how the selector (the part of a CSS “rule” that lies outside of the curly-braces) works. This is a very subtle thing – you can have two different selectors with the same words in them and a slightly different order or different set of modifier punctuation and they will do entirely different things. The attributes inside the curly-braces are, for the most part, pretty self-explanatory.
On Apr 30, 2012, at 2:36 PM, Ernie Simpson wrote:
Now, I’ve not used Template Helper, and likely someone else who knows more
about it can give better advice. My thought would be to find another way to
separate the h1 elements out so the stylesheets see them as not just h1
elements, perhaps with a special class style or by targeting a parent
element or div. Or by manually moving the h1 style into the document head,
preferably after any style put there by Freeway or Template Helper.
freewaytalk mailing list
Update your subscriptions at: