WordPress.org

Ready to get started?Download WordPress

Forums

EZ Emails
Multiple %content% areas in templates (5 posts)

  1. PaulCooper
    Member
    Posted 5 months ago #

    Hi Luigi,

    Is it possible to make more than one %content% area in a template?

    For example, to format an email template with several fixed subheadings above different content areas, to be populated when the template is used.

    With thanks and best wishes.

    https://wordpress.org/plugins/ez-emails/

  2. luigipulcini
    Member
    Plugin Author

    Posted 5 months ago #

    I am sorry, but I am not sure I completely what your idea is about.
    Can you please explain?

  3. PaulCooper
    Member
    Posted 5 months ago #

    Hi Luigi,

    Thank you for getting back so quickly.

    I'm sorry I didn't make myself clear.

    I would like to create an email template that contains a series of subheadings already in place for when the template is used. Below each subheading would be a content area which can be filled in with different text every time the template is used.

    Maybe this is already possible and I've missed something?

    With thanks and best wishes.

  4. luigipulcini
    Member
    Plugin Author

    Posted 5 months ago #

    I see your point.
    The only easy way I see to accomplish what you are looking for is allowing the user to use placeholders for <div> ids in the template.
    For example, the user can write the body of the email as follows:

    <div id="content_1">
    ...
    </div>
    <div id="content_2">
    ...
    </div>
    <div id="content_3">
    ...
    </div>

    having the template replacing the placeholder %content_1%, %content_2%, ... with the content of each <div>.

    This way, though, the user would be forced to edit the HTML code of the body of each email.

    I don't know if this is close enough to what you are looking for.

  5. PaulCooper
    Member
    Posted 5 months ago #

    Hi Luigi,

    Not quite sure how to set this up in an email template but I see what you mean using the code in the body of an email, then switching back to WYSIWYG mode to edit and add content.

    That will work just fine.

    With thanks and best wishes.

Reply

You must log in to post.

About this Plugin

About this Topic