Edit Design as Email HTML format


(Sang) #1

Hi,

I am struggling with Bulkmail job. I am trying to send emails to subscriber. Design is applied to this contents.

I have two problems from design code.

There is a metadata called “logo.image”, and I am trying to print it within email. Code is below

<. img src="%asset_metadata_logo.image_asset_url%" > But it exports empty value. I tried %asset_metadata_logo.image%, <. MySource_PRINT var=“asset_metadata_logo.image” /> but no luck.

The second problem is

<. MySource_AREA id_name=“page_body” design_area=“body” />

Above prints out contents. But when it prints image, it prints like below

<. img title=“Shoes” alt=“Shoes” src="./?a=11111">

Please help me to figure out this issue.

Thanks in advance!


(Byrne) #2

Hey,

Ahhh email, much joy.

  1. The metadata is relative to the asset you are viewing of this is applied to a page it should print the metadata. If the page is nesting content and that page has the metadata applied it will not print.

  2. Not sure what is happening with the image tag. whats with dots ie: <. Mysource ?

what I’d suggest.

keep the design simple

 <html>
   <body>
     <table>
       <tr>
         <td>
           <MySource body...

The remainder of the content should be put in to a standard page / asset listing
That is where you can easily craft the tags you want with keyword replacements.

<img src="%asset_thumbnail_url%" />

or at least thats what I’d try. :slight_smile: