Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Great plugin by the way!
One issue : links to documents and images inserted into the RTE via macros don't appear to be picked up by Nexu, allowing editors to delete said media items with no warning. Is this something that could be addressed?
Don't think this will be possible. The output of the macro is not stored in the RTE. So there is no way to find out what it is referencing.
I actually never use macro's in the RTE.
IMHO opinion there are better options, e.g. grid, nested content, .... to let editors build dynamic pages.
Thanks for the prompt response and I take your point re. the RTE and macros.
(Our current approach to preventing inadvertent deletion is rather brute-force. We search 'cmsPropertyData' for the id of an item being deleted and as our macros generate un-parsed content in the RTE containing the item id, they get picked up. The approach gives no false negatives but some false positives where an item id being checked may be a legitimate non-id value within a property. Very inelegant in comparison to Nexu!)
You can always override how the RTE is parsed by adding your own parser that supports macros
Have just been reading the Nexu docs relating to adding new parsers! This looks very promising: we can identify defining text in each of our macro-based inserts that could be used in a similar way to the default implementation of the RTE parser.
Thanks for your help,
Nice would love to see what you come up with.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted