Skip to main content
8 events
when toggle format what by license comment
May 25, 2012 at 2:44 comment added Meyer Denney Yes a SharePoint ribbon with two tabs, each tab has about four buttons.
May 25, 2012 at 2:36 comment added webdes03 "a ribbon with buttons"... are you referring to the SharePoint ribbon, or some custom solution? I don't know of a way you can accomplish this with purely the XML, there's no way for the elements file to load/reference any dynamic values. Seems like you need code behind or a custom user control to handle this.
May 25, 2012 at 2:31 comment added Meyer Denney I had part of a url stored in the property bag. I also have a ribbon with buttons. When a user clicks one of the buttons, it is supposed to go to a certain url stored in the property bag. I have the buttons declared through xml rather than code behind. I would like to set the buttons commanduihandler to the url stored in the property bag.
May 25, 2012 at 2:28 comment added webdes03 There's no such thing as a variable or a placeholder for the XML. Short of having something else generate the entire elements.xml file, I don't believe what you're doing is possible. Even considering that the elements.xml file is a static file stored within the solution and 14 hive, I'm not sure how you'd accomplish this. What are you trying to do?
May 25, 2012 at 2:26 comment added Meyer Denney What if it was a public static string that was setup on PreLoad or something like that? Before the control got rendered the string would already be populated with the correct property value.
May 25, 2012 at 2:23 comment added webdes03 XML is markup... it can't pull dynamic values.
May 25, 2012 at 2:05 comment added Meyer Denney I can pull the property via code, and store it in a public string. Is there anyway to access that string from the xml file?
May 25, 2012 at 0:06 history answered webdes03 CC BY-SA 3.0