Today’s basic page-construction is preferably very modular. This means that I often enough develop a single “section” with a function included and once I’m happy with it, I copy and paste this to the page-master or any child page.
The point is, that the required scripts and css stuff sticks with the page (MarkUp) and has finally to be copied (wherever they appear) as well.
So the question(s):
Would it be possible, to create an action applied to an item (the module very outer wrapper) with the same dialogue as the Page MarkUp and print this to the dedicated places?
Could this action even take care of “double entries” such as jQuery reference or Google Font … ?
I am not sure if something like this already exists - and I can’t write actions nor I’m sure if this action really makes sense.
Well, in basic terms, if you apply an Action to an element, and copy and paste that element to another page/document/location on the page, then the Action and all its settings come along for the ride. This is a real time-saver. As far as what you want to have “stick to” the element and how to get that from an Action, can you make a list of the kinds of things you might want to change about an element?
Walter
On Oct 6, 2014, at 4:26 AM, Thomas Kimmich email@hidden wrote:
Hi guys,
this is a dangerous half-knowledge one:
Today’s basic page-construction is preferably very modular. This means that I often enough develop a single “section” with a function included and once I’m happy with it, I copy and paste this to the page-master or any child page.
The point is, that the required scripts and css stuff sticks with the page (MarkUp) and has finally to be copied (wherever they appear) as well.
So the question(s):
Would it be possible, to create an action applied to an item (the module very outer wrapper) with the same dialogue as the Page MarkUp and print this to the dedicated places?
Could this action even take care of “double entries” such as jQuery reference or Google Font … ?
I am not sure if something like this already exists - and I can’t write actions nor I’m sure if this action really makes sense.
Now basically I think of an item-action which is doing exactly the same thing as page HTML-MarkUp dialogue does.
Being able to add external resources pointers and choose where in the page it should appear, so taking this example (which is built on a separate master and child for testing):
Yes, but I think it might be possible, as long as the instances of these “extended” scripts were all added in the same manner, by an Action, rather than pasted into a Markup dialog somewhere. (When an Action adds a script or link or whatever, it can do so in an object-oriented manner, which means that another Action can recognize the script reference and compare it inside of its decision loop.) It would be immeasurably harder to do this and make it cooperate with hand-added code, because it would mean that the Action would have to convert the entire page “tag tree” into source code and then trawl through that looking for string references to the script or link, rather than the object model. When such an Action runs its course, it naturally “breaks” the page for all further Actions to operate on it, because the objects are all gone, replaced with plain text.
Walter
On Oct 6, 2014, at 1:19 PM, Thomas Kimmich email@hidden wrote:
While this action would even mess with the native Page HTML MarkUp, the action structure (a combination of drop downs and fields) would grow immense to cover all the type of variations to cover, being even a bit unhandy in the worst case.
Thanks for sharing your wisdom, Walter - I have to keep this in mind.
He’s one of the presenters on Top Gear (BBC) and he often uses a hammer like that one to “adjust” something delicate and technical. If you haven’t seen the show, you should — it’s a hoot (and shows a lot of cars I can’t afford, yet desperately want anyway).
Walter
On Oct 6, 2014, at 8:51 PM, Ernie Simpson email@hidden wrote:
Are you the Jeremy Clarkson of the American South?
If by that you mean that I often find myself hiding from angry mobs… then
sadly, yes.
I’d read something on him recently - he’d upset some “fans” I guess while
somewhere in South America… Argentina maybe?. Anyway, he had to hide under
his bed.
I sometimes do that too.
–
Ernie Simpson
On Mon, Oct 6, 2014 at 8:54 PM, Walter Lee Davis email@hidden wrote:
He’s one of the presenters on Top Gear (BBC) and he often uses a hammer
like that one to “adjust” something delicate and technical. If you haven’t
seen the show, you should — it’s a hoot (and shows a lot of cars I can’t
afford, yet desperately want anyway).
Walter
On Oct 6, 2014, at 8:51 PM, Ernie Simpson email@hidden wrote:
Are you the Jeremy Clarkson of the American South?
If by that you mean that I often find myself hiding from angry mobs… then
sadly, yes.