Показать сообщение отдельно
Старый 13.02.2019, 01:17   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1218: Suppress headers and footers in portals
Источник: https://crmtipoftheday.com/1218/supr...rs-in-portals/
==============

Dynamics 365 Portals, based on Bootstrap, are very flexible when it comes to the web site and individual page layout. To create consistent look and feel the Website record defines header and footer templates.



And the footer looks like this:



I was working on a site where I didn’t need a footer at all so I cleared Footer Template field. And I got this:



What the?!

Yes, folks, a default template is rendered, whatever that is. To suppress header and/or footer, create a blank Web Template, something like

{% comment %} This template has been deliberately left blank{% endcomment %}and select that template on your Website record. The results are stunning. I don’t even have a screenshot because it’s, well, blank.

Note: if you disable header, it’ll be up to you to render the search box, sign-in/out control, and a language selector elsewhere, because that’s what the default header renders.

(Cover photo by Jeffrey Lin on Unsplash)



Источник: https://crmtipoftheday.com/1218/supr...rs-in-portals/
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.