Developer forum

Forum » Templates » class=
Hans Ravnsfjall
Reply

Update// I found out that i can just add dwcontent after the class, as when assigning multiple classes to div´s normally. Don´t know if this has always worked as this, but I have not tought this was possible earlier.

 

 

Hi

It is annoying, and unflexible that you have to occupy the class attribute in order to define a content area (<div class="dwcontent"... )

Most templates are using class to defne placeholders, and seldom use div. This means that I have to break/change the bootstrap css. This takes time, and is prohibiting reuse of elements/solutions and it is not as fast and easy to assign other bootstrap themes to websites.

Has anyone got a solution that doesn´t interrupt the templates, whan defining dwcontent placeholders?

 

Wouldn´t it be better to set another attribute eg <div align="dwcontent"... or maybe even better, something like  <div setting="dwcontent:true;" .....

 

Anything, but the class or id tags would be a huge help.

 

Maybe someone has som other ideas?

 


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

The element must have the class "dwcontent" to be a content placeholder, but – as you've discovered – it can also have other classes. That't the way it has always been in Dynamicweb.

Just to make it clear: the content placeholder doesn't have to be a div element. It can be any element, e.g. section or article if that makes more sense.

Best regards,
Mikkel

Votes for this answer: 1

 

You must be logged in to post in the forum