Developer forum

Forum » Swift » Color Schemes
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Some paragraphs seem to have an ability to use a colour scheme, but the option so select one is not enabled by default. Is that by design?

For example the Menu: Ecom with Related Content does not allow to select a color scheme, but the template is looking for <div class="dropdown-menu border-0 megamenu border-bottom" data-dw-colorscheme="@Model.ColorScheme?.Id"> on line 158 of /Files/Templates/Designs/Swift-v2/Paragraph/Swift-v2_MenuRelatedContent/Menu.cshtml:


Replies

 
Karsten Thuen Dynamicweb Employee
Karsten Thuen
Reply

Hi Justin

Great question. The reason why some paragraph types does not have this, for example the paragraphs for the header and footer, is that we wanted to make it easier to make something that looks good. And not adding colorschemes to paragraphs where you usually do not customize the color.

The particular template you have here, seems to have leftover code from earlier days. The general paragraph colorscheme is actually available for all paragraphs, in the code, in Swift-v2_Row.cshtml We are working on new mega menus with a lot less code and better design. This will be fixed in the new templates.

 

Best regards
Karsten Thuen

 

 

You must be logged in to post in the forum