cancel
Showing results for 
Search instead for 
Did you mean: 

inserting HTML code

SOLVED
Valued Contributor

Re: How to change Adv Editor to XHTML from HTML

Garth,

 

Unfortunately you can't change an XHTML to HTML and vice versa, but you can simply copy your code out of the Advanced Editor or one, Create a New E-mail and select the other, and simply paste your code in the Advanced Editor of the new copy.

 

If you have any questions, let us know!

 

Joe

 

If you find my post helpful, and it answers your question, please mark it as an "Accepted Solution"

Occasional Advisor

Re: How to change Adv Editor to XHTML from HTML

I'm starting to get a little frustrated by this.

 

I have to get an email out, so I decided to go back to using HTML instead. So I created a new email, selected HTML, pasted my code in there, and now the email thinks it's XHTML and says my mail has errors.

 

It could be that my HTML has the XHTML changes like <br /> instead of <br> so it thinks it's XHTML and tries to acknowledge that. But it shouldn't since I chose HTML as my setting for that email. It shouldn't think it's XHTML but yet it does.

 

Being a programmer myself (and hopefully not over-opinionated), I would suggest clearing this up - all emails should show you on every page what the setting is (HTML or XHTML). If the setting can be manipulated or changed, make it simple and obvious. Right now it's pretty confusing how it works, IMHO.

Highlighted
Valued Contributor

Re: How to change Adv Editor to XHTML from HTML

Garth,

 

I'm sorry for the frustration with it. Our validators are pretty specific, but if there's anything specific I can help out with, please let me know. Thank you!

 

Joe

Occasional Advisor

Re: How to change Adv Editor to XHTML from HTML

Firstly, if I have HTML selected, and I put in something like <br />, CC shouldn't say anything about XHTML, since XHTML is not selected for this email. But it does, and it's a false and confusing error, it makes you THINK you have XHTML selected, but there is no way of knowing if you do or not - other than assuming it by not seeing the Styles left-hand link. But you'd only know that if you were educated about it.

 

I think CC could be much more explicit here. It should throw XHTML errors when you aren't trying to do XHTML.

CTCT Employee DJA
CTCT Employee

Re: How to change Adv Editor to XHTML from HTML

Hi Garth,

 

I agree the page should be clearly marked  HTML or XHTML.  Other than picking which template to use when your setting up your email, the only indication when editing is the style link on the left.  You are correct in your observation. and I agree it is confusing for new users.

 

I have passed on your feedback to our engineering group.  While not all customer suggestions are implemented, many of our feature and upgrades are direct results of customer feedback.

 

Thank you for using Constant Contact!

 

Best Regards,

 

DJ A

Community Support Specialist

Constant Contact

Honored Contributor

Re: How to change Adv Editor to XHTML from HTML

Hi Garth,

 

I'm sorry you had so much trouble with your email. Were you able to get the email out?

 

If not, let us know and we can help!

 

Thanks,

Jarrad

If you find my post helpful, and it answers your question, please mark it as an "Accepted Solution"

Are you on Twitter? Follow me here!
Trusted Contributor

Re: How to get the Email Addresses which clicks and opens the Campaign

Hello,

 

The API is simply the interface we provide so applications written in a variety of languages and platforms can access Constant Contact accounts for purposes of creating, retrieving, updating, or deleting information in the account via HTTP requests.  You appear to be referring to the PHP Wrapper Library that is provided to help simplify use of our API for those using PHP.

 

You can use our PHP Wrapper Library, with some examples on basic use that demonstrate how your own scripts need to be set up to properly maintain the session (so you don't have to login and authorize repeatedly) and use the provided classes to make calls on your account collections and resources. There are functions in the ConstantContact.php file that can be used if you include the wrapper library in your scripts to call for campaign events, including opens, forwards, bounces, opt-outs, and Sends.  

 

I hope this helps you get started on the right foot.  Let us know if you have additional questions.

Mark Coleman
Support Engineer
Occasional Participant

XHTML Example needed

I'm looking for a simple XHTML example which shows how to put the basics together.  I have studied the tag definitions in the advanced user manual and am capable in HTML and XHTML.  For example, how do I get new sections and fields to show up in the wizard?

 

So I think I'm just missing the mechanics of how to put all the tags together.  It would be nice if the guide had the full example XHTML code rather than just the snippets unassembled. 

 

Thanks in advance - Pete

 

Here the sample I've put together to experiment with along with comments / questions:

 

<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:cctd="http://www.constantcontact.com/cctd">


<body>

<OpenTracking/>

<CustomBlock name="letter.intro" title="Personalization">
    <Greeting/>
</CustomBlock>

<br/><br/>Hello World<br/>

<Property name="Subscriber.LastName"/>  <-- Why does this not populate in the e-mail?

<Article title="Article 1" name="Name Article 1">  <-- Why does this not show up in the wizard?

</Article>

<Forward>Forward to a friend</Forward>

<Property name="letter.title"  title="Title" type="single" font="TitleText">Outings for week</Property>  <--- like to have this come from a custom field in the wizard

<SignupBox button="Signup" size="30" title="Title">Signup</SignupBox>

<PropertyPair name="letter.signature.url" title="Website Address">  <-- This whole piece appears to do nothing.

   <div>
        <Property name="letter.signature.url.name" type="single">web:</Property>
        <SimpleURLProperty name="letter.signature.url" track="true" type="plain" href="$Account.SiteURL">

                 <a href="$Account.SiteURL" class="ContactIfnoLink">$Account.SiteURL</a>
        </SimpleURLProperty>
  </div>
</PropertyPair>

</body>
</html>

Moderator

Re: XHTML Example needed

HI Pete,

Thanks for posting in the Community. I've run your questions by our specalists here to take a closer look at. They have offered to reach out directly after looking into your account more to go over this with you. I have created and opened a case for this. The typical turnaround time is 3-4 business days. They will be able to answer the questions you've listed above and also review steps for the future.

 

Thank you,

Hannah M.
Community and Social Media Support

If you find my post helpful, and it answers your question, please mark it as an Accepted Solution

Are you on Twitter? Follow me here!
Moderator

Create a Custom Email using the Advanced Editor

We understand that sometimes you want a little more control. Do you have a custom built HTML or XHTML email? Our Advanced editor will allow you to use your custom code with Constant Contact!

 

Warning: You must have experience with HTML, XHTML and web design tools.

 

To create a custom email from your own code:

1. Login to your Constant Contact account.

2. Click the Emails tab.

3. From the Emails tab, click Create.

4. On the left of the page scroll down until you see the “Use Own Code” button, click this button.customcode.jpg

5. Enter Email name, click Next.

6. Choose HTML or XHTML format.

7. Customize the header and footer information as well as the greeting using the tabs on the left.

8. Click “Advanced Editor” to paste in custom code.

 

Using your own code is a great way to carry along your branding or design. Remember to use the same best practices that you would in a Constant Contact template. Make images clickable links, include social media buttons and make sure you are communicating to the audience you want to reach.

 

More questions about Custom Code? Check out this How-To Guide on Building your email with the Advanced Editor Tool.

 

 

Hannah M.
Community and Social Media Support

If you find my post helpful, and it answers your question, please mark it as an Accepted Solution

Are you on Twitter? Follow me here!