Developer forum

Forum » CMS - Standard features » How a paragraph is being rendered

How a paragraph is being rendered

Nuno Aguiar
Reply

Hi,

 

Is there a way to know that a paragraph is being rendered normally or though @RenderParagraphContent?

 

I need to differenciate the two, and would rather only have 1 template than have the user to choose from 2

 

Best Regards,

Nuno Aguiar


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Nuno

No, you cannot see that...

 
Nuno Aguiar
Reply

ok, thanks

 
Nuno Aguiar
Reply

Hi Nicolai,

 

Can we extend the API do determine this? A simple Boolean if it was being rendered based on a RenderParagraph would be enough.

 

We would make use of this because we wanted to share an item paragraph to both normal content and some paragraphs that are rendered directly in the layout templates, but to activate/deactivate NewRow() we need to ensure how it is being rendered.

 

Best Regards,

Nuno Aguiar

 

You must be logged in to post in the forum