It would be nice to be able to insert content before the xPath expression's result element.

Proposal: Add a checkbox to the inline element insertion's xPath expression:

[ ] Insert before found element

Which defaults to unchecked.

If this checkbox is checked, the insertion will take place before the insertion point resulting from the given xPath expression. This will allow insertion at top/bottom of the node body using xPath (thus making the top/bottom insertion templates redundant, or, they could be implemented using xPath internally.)


grn’s picture

Very good idea!

This gives the possibility to add code after a top image and before the first paragraf. For example when inserting a floating ad with float left.

Thanks! +1

Greg Boggs’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Needs work » Active
Greg Boggs’s picture

Issue summary: View changes