Hi,
Please let me know what type of custom post type it is?
For now we “restrict” the custom post types people can insert into the newsletter as some of them need a bit of design to be inserted. For examples events / products etc.
So for now we only allow post type from our add-ons (integration we have with other plugins) to be inserted and there is no way to include custom post types.
But I would be glad to reconsider this decision based on your answer.
Our custom post type is similar to a standard WordPress post, so that’s what we did for a quick test:
- copied folder
/back/dynamics/post/ to /back/dynamics/customposttype/
- changed
class plgAcymPost ... to class plgAcymCustomposttype ...
- changed
pluginDescription->icon class to be able to identify our new element
- changed
post to customposttype in SQL-Statements where post_type is used
That works so far, your plugin shows the new element in email editor and inserts links to our custom post type now when sending test email.
As edited above, could you consider a mechanism to let your plugin also load custom dynamic elements from other source than /acymailing/back/dynamics/... then we could add the element without directly modifying your plugin file structure.
Edit: From a quick look in your plugin code, there might be a mechanism already via acym_load_installed_integrations action, will have to investigate a bit more, seems that this action is used in your add-ons for integration.
Hi,
Could you please open a ticket by using our website contact form to ask for this feature?
This way developers will see it and we will add it into one of our upcoming versions 🙂
Thanks!