Adding drop down menu to PWA Schedule Page
-
21 iunie 2010 02:07How would one go about adding a drop down menu to the PWA (2010) schedule page? I have seen a number of examples, but all seem to require knowing the name of the existing menu/ribbon. Where does one find that? For example, to add a menu to the ribbon on the Project Center page one sets location to Ribbon.ContextualTabs.ProjectCenter.Home.Editing.Controls._children. Cool! OK...where do I learn the corresponding "location" for another page? (say...the schedule page?)
Toate mesajele
-
22 iunie 2010 00:22
this location is based on element Id in the ribbon xml definition, you can get the ribbon xml as admin access this url:
http://<SERVERNAME>/pwa/_layouts/commandui.ashx?id=ribbon&rf=xml&lcid=1033
then just lookup in the XML to find the elementId you want to put your extension under.
so, this file is a bit long another easy way to find the Id's is getting it directly on the page. to do that you can use ie8 dev toolbar, just navigate to the page, load the ie dev toolbar (press F12). then you select the element you want to place it under, let's say you want to put in group "Clipboard". you should be able to see the attributes of the dhtml element that you just selected, it should have the Id in it, for example, you should be able to find the group with the same Id as it is in the xml file, something like: "Ribbon.ContextualTabs.ProjectDrilldown.Tasks.Clipboard"
Regards,
Oscar.