Developer forum

Forum » Templates » Item.Area.xxx in paragraph templates for v8.4

Item.Area.xxx in paragraph templates for v8.4

Anders Ebdrup
Reply

Hi Dw,

After upgrade to v8.4 the websitesettings are no longer available in the paragraph templates, which means that this does no longer works:

<!--@Global:Paragraph.Content(<!--@Item.Area.BuyingProcessInfoId-->)-->

Is it intended behaviour or is it supposed to work??

Best regards, Anders


Replies

 
Tim Voronov
Reply

Hi Anders,

does <!--@Item.Area.BuyingProcessInfoId--> work if you just put it in the template?

 
Anders Ebdrup
Reply

Yes, it is working on master template and page templates.

 
Anders Ebdrup
Reply

Hi Tim,

Is this a bug in v8.4? Should I report it to the support, as I have a customer waiting for the 8.4 upgrade.

Best regards, Anders

 
Nicolai Høeg Pedersen
Reply

It seems like a bug.

We are investigating.

 
Merethe Nielsen
Reply

Hi Anders

I have tried to reproduce this.
Check my video with the setup as I understand it: http://screencast.com/t/Sm48mhoJILyu.

I can render the content from the Item.Area.X tags in 8.4 in both page and paragraphs.

I have tried the Global:Paragraph.Content tag with the Item.Area tag but I can´t reproduce that this combination has worked. I tried to download to 8.3.1.2 as you can see in the video.

What did you upgrade from?
Is my setup correct?

Kind regards,
Merethe Vrå Andersen

 

Update the 4th feb: My test was wrong with text in my item field. Instead it should offcourse have been numbers. With a number (paragraph ID) for an existing paragraph in the item field it works with Global:Paragraph.Content tag in 8.4  and previous versions.

 
Mikkel Ricky
Reply

I have tried to reproduce this bug without any luck on a clean installation of 8.4.0.0.

I can use my website item value (<!--@Item.Area.Paragraph_ID-->) in page (layout) templates, paragraph templates and module templates. I can also use it with <!--@Global:Paragraph.Content(<!--@Item.Area.Paragraph_ID-->)-->.

Update: In my test it only works because I use <!--@Item.Area.Paragraph_ID--> in the layout template. If I don't use the value in the layout template, then the value is not available in other templates.

Do you have a solution I can take a look at to see the bug in action?

Best regards,
Mikkel

 
Mikkel Ricky
Reply
This post has been marked as an answer

This is a bug in Dynamicweb 8.4. Values from area and page items are only available in paragraph and module templates if they're used in the layout template, i.e. if you put

<!--@Item.Area.BuyingProcessInfoId-->

into your layout templates, then you can used the same value in a paragraph or module template.

I've created an TFS item for this, and we're working on a fix.

Votes for this answer: 1
 
Christian Rud Skovgaard
Reply

This bug has been corrected in Hotfix 8.4.0.1

Can be downloaded under "Downloads"

Regards

Christian

 
Anders Ebdrup
Reply

Hi Dw,

Thank you for a very quick fix - it is a pleasure! :-)

Best regards, Anders

 

You must be logged in to post in the forum