You cannot apply an Action to a paragraph of text directly, but you
can put an inline Action inside the paragraph and from within that
Action apply additional attributes to the paragraph.
My AddSelector Action (look for it at ActionsForge) does this precise
trick. If you place an instance of it inline within a paragraph, list
item, or other text container, it will allow you to add an ID or
classnames to that container. It does this by looking up from itself
to find the nearest container element, and then whatever you put in
the Action palette interface becomes the new value for those attributes.
Walter
On Mar 29, 2011, at 9:59 AM, chris wrote:
Hi
Today I’ve set about learning Freeway as a client needs custom
actions writing.
Something I will need control over is attributes on all elements,
such as paragraph tags. So I can assign an ID most importantly.
After attempting this using the extended dialog box it was apparent
I would not be able to select paragraph elements!
So my question is am I missing something, or using the product
wrong? Or is there any work arounds you employ to solve this issue?
Thanks very much Walter that sounds precisely the information I need. I will have a look at your AddSelector as a reference and try to understand the logic and technique.
Sounds good. Sign up at ActionsForge, and publish your work when
you’re done! There’s a long-standing culture of sharing in this
community, and each author who contributes back makes the entire
experience more powerful for everyone.
Walter
On Mar 29, 2011, at 10:10 AM, chris wrote:
Thanks very much Walter that sounds precisely the information I
need. I will have a look at your AddSelector as a reference and try
to understand the logic and technique.