WordPress.org

Support

Support » Plugins and Hacks » Multiple %content% areas in templates

Multiple %content% areas in templates

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author luigipulcini

    @luigipulcini

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

    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.

    Plugin Author luigipulcini

    @luigipulcini

    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.

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple %content% areas in templates’ is closed to new replies.