Developer forum

Forum » Templates » content placeholder DW 8.5.0.1

content placeholder DW 8.5.0.1

Ben Doorn
Reply

Guys,

What happened to the content placeholders? It seems to generate some extra closing tags when not using a self-closed tag.

<div class="row homepage-usp-boxes dwcontent" id="home-usp" title="Home: USP" settings="template:Designs/System/homepage-usp.cshtml">
</div>

Which in previous versions of DW worked fine. After upgrading to DW 8.5.0.1 my page layout fell apart.

Changing the code to:

<div class="row homepage-usp-boxes dwcontent" id="home-usp" title="Home: USP" settings="template:Designs/System/homepage-usp.cshtml" />

fixed the problem. But it is a lot of extra work checking al the content placeholders when updating to 8.5.

I could not find anything about it in the release notes.

 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Ben

That sounds a bit odd. It should not be like that.

Please check if your divs are normalized - you have an equal amount of start and end divs.

And what is your document type? Is it XML or HTML. Please attach the template so we can have a look at what happens.

BR Nicolai

 
Ben Doorn
Reply

According to visualstudio my divs are normalized.

It is a cshtml template however there are no actual razor statements used. All page templates in this project are cshtml by default.

I uploaded the templates.

 
Nicolai Høeg Pedersen
Reply

Ok, thanks

Will have a look and see what we come up with. They look nice and clean.

Can I also have the master template?

Thanks, Nicolai

 
Ben Doorn
Reply

It seems to have something to do with Razor. In this project I have a second set of templates, which are HTML templates and these templates are still generating the correct output.

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Ben

I've located the eror - we need to make a fix to Dynamicweb. The problem is the div's you have - they have a space before they end, and that is causing the issue.

You can work around it, you have this;

<div class="row dwcontent" id="bottom-blok" title="Onder blok links" >
</div>

Simply remove the space after the title attribute, marked with yellow above.

<div class="row dwcontent" id="bottom-blok" title="Onder blok links">
</div>

I've created a bug so we can get it fixed.

BR Nicolai

Votes for this answer: 1
 
Ben Doorn
Reply

Hi Nicolai,

Thanks for investigating this. I had solved it bij transforming the divs into a self-closing tag. But removing the empty line is better.

Kind regards,

Ben

 
Kristian Kirkholt
Reply

Hi Ben

The problem regarding #15830 "Error in layout parser with some Razor files" has now been fixed in version 8.5.0.2

You are able to find this build in the download section:

http://developer.dynamicweb-cms.com/downloads/dynamicweb-8.aspx

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards

Dynamicweb Support

Kristian Kirkholt

 

You must be logged in to post in the forum