Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.)
Comments
Comment #1
grn CreditAttribution: grn commentedVery 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
Comment #2
Greg BoggsComment #2.0
Greg BoggsFix