Support » Plugin: Newsletter » Custom composer presets

  • Resolved mumbomedia

    (@mumbomedia)


    Hello

    I’ve managed to override the composer blocks, so they appear as they should.

    Now I want to make a preset, so my customer has the default blocks like preheader, header, canspam and footer already set up when he creates a new newsletter.

    I already look into the presets folder and notice that a preset folder consist a png icon and a json file which holds the blocks.

    Is there an update save method to add my own preset?
    I already notice the hook_wp_ajax_tnpc_presets hook.
    Also I see, that the get_preset function in email.php:903 has an optional param which holds the directory.
    But it seems to me, that there is a issue on line 918.
    If I load my preset from another folder as the default, the icon couldn’t be loaded.

    Btw.: I wonder why the text block has more fonts to choose then e.g. the canspam block. My customer use ‘Trebuchet MS’ for the canspam block. Because there is no option to choose I override it with my own version (update-safe of course).

    • This topic was modified 9 months, 1 week ago by mumbomedia.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter mumbomedia

    (@mumbomedia)

    It was a tricky one but I managed to get it to work.

    Will there be any plans to make it easier to register custom presets, deregister even built-in preset (in case you don’t need them) and modifying existing blocks?

    • This reply was modified 9 months, 1 week ago by mumbomedia.
    Plugin Author Roberto

    (@webagile)

    Hello and thank you for your feedback, we have big plans for the next composer update and presets are included.

    Regards,
    Roberto
    The Newsletter Plugin

    Thread Starter mumbomedia

    (@mumbomedia)

    great to hear that.

    I assume that it will be announced in your newsletter (which I have of course subscribed to) as before.

    I am excited looking forward to the next release so that I can use this as soon as possible.

    Have a nice day and stay healthy

    Kind regards from Germany

    Alexander

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom composer presets’ is closed to new replies.