Developer forum

Forum » Templates » CartV2 order email Global:Paragraph.Content

CartV2 order email Global:Paragraph.Content

Martin Gammelholm
Reply

Hi,

I would like to use the <!--@Global:Paragraph.Content(x)--> tag in my cart email template.
But for some reason, the tag doesn't output anything in the email.

Are this tag not supported in email templates?

 

BR
Martin


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

The @Global:Paragraph.Content tag is not supported in email templates. However, you can render an item to show content in your email template:

<!--@Item.Render(ItemType: Paragraph;
                 SourceItemEntry: 10;
                 ItemFields: *;
                 DetailsTemplate: ItemPublisher/Details/Receipt.cshtml)-->

The example above will render an item of type Paragraph with id 10 using the specified template.

Best regards,
Mikkel

 

Votes for this answer: 1
 
Sten Hougaard
Reply

Dear Dynamicweb,

This is yet another example of an undocumented gem in your CMS....

Please put some more efford in publishing and maintaining information about (new) features in you CMS...

Where can I for instance read information about this gem I wonder and actually found documentation here:

http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/Module-tags/Item-publisher/Item-Render.aspx


Med venlig hilsen/Best regards,

Sten Hougaard
Webudvikler

E: sho@1stweb.dk
M: 29850818
A: København/Aarhus . W: www.1stweb.dk
@: netsi1964

 
Martin Gammelholm
Reply

Hi Mikkel,

Thanks for this great hidden ninja trick :)
Just found the documentation also:
http://templates.dynamicweb-cms.com/TemplateTags/Dynamicweb-template-tags/Module-tags/Item-publisher/Item-Render.aspx

You really should consider writing tech newsletters again, so we have a chance of discovering these great hidden tricks.


Always a helpful reply from you, thank you for that.

 

BR
Martin

 
Merethe Nielsen
Reply

Hi,

The Item.Render extension tag was made with 8.4 and was mentioned in the corresponding release notes with a few examples: http://developer.dynamicweb-cms.com/releases/dynamicweb-8-4.aspx (search for "Item publisher extension tag").

So it was not that hidden :)

Good that you found the Item.render documentation in the template manual :)

Kind regards,
Merethe

 

 

 
Nicolai Høeg Pedersen
Reply

@Sten.

It is documented and part of release notes as Merethe says.

@Martin

We do have a tech newsletter app once a month - with link to release page etc.

 

You must be logged in to post in the forum