AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 10.12.2009, 08:05   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
Fred Shen: Use CSS style to customize Enterprise Portal 2009 page
Источник: http://fredshen.spaces.live.com/Blog...E4E3!392.entry
==============

Sometimes we are asked to customize the layout of a page. The changes are often small and don’t necessarily require a change to the site master page or css file. For example, the client requests to hide the ‘Site Action’ menu on a Dynamics AX 2009 EP page to disable the user to change the page layout.

Now I use the purchase requisition lists as an example:



On the page, right click and select View Source



In the source file, the CSS class used in Site Action menu is .ms-siteaction



Open Visual Studio 2008 and edit the user control PurchReqTableList. In the PurchReqTableList.ascx file, add the following code


    .ms-siteaction { display:none ;}










Save the change and update the portal.

Now you can see the ‘Site Action’ menu is gone.



Similarly, if we want to hide the breadcrumbs, we can use the same way as well.



Put the following code in the .ascx file:


    .ms-siteaction { display:none ;}  .ms-sitemapdirectional { display: none; } .ms-titlearea { display: none; }


Save the changes and update the portal, you will find both the breadcrumbs and site action menu are gone.









Источник: http://fredshen.spaces.live.com/Blog...E4E3!392.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
Fred Shen: Debugging AX2009 Enterprise Portal and Batch jobs running on Windows 2008 Blog bot DAX Blogs 1 17.09.2009 16:36
Fred Shen: Dynalink in Dynamics AX 2009 Enterprise Portal Blog bot DAX Blogs 0 14.07.2009 15:05
JOPX: Dynamics AX 2009 - Enterprise Portal link bonanza Blog bot DAX Blogs 0 27.11.2008 01:05
Solutions Monkey: Microsoft Dynamics AX 2009 Enterprise Portal / Role Centers - Deployment Tips-n-Tricks – 3 Blog bot DAX Blogs 0 27.10.2008 08:05
jinx: Microsoft Dynamics AX 2009 Enterprise Portal Entwicklung Samples Blog bot DAX auf Deutsch 0 27.06.2008 04:06

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 18:55.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.