XPath CBL / DDL prevalue descriptions for the XPath fields, and fix for CBL to load defaults

This commit is contained in:
Hendy@Blueberry
2012-09-17 21:21:33 -01:00
parent d339f74e95
commit 8307da1a87
2 changed files with 9 additions and 3 deletions

View File

@@ -65,7 +65,7 @@ namespace umbraco.editorControls.XPathCheckBoxList
if (this.options == null)
{
// Create a new Options data object with the default values
this.options = new XPathCheckBoxListOptions();
this.options = new XPathCheckBoxListOptions(true);
}
}
return this.options;
@@ -178,7 +178,10 @@ namespace umbraco.editorControls.XPathCheckBoxList
protected override void RenderContents(HtmlTextWriter writer)
{
//writer.AddPrevalueRow("Database Type", this.dbTypeDropDownList);
writer.AddPrevalueRow("XPath Expression", this.xPathTextBox, this.xPathRequiredFieldValidator, this.xPathCustomValidator);
writer.AddPrevalueRow("XPath Expression", @"can use the tokens <strong>$ancestorOrSelf</strong>, <strong>$parentPage</strong> and <strong>$currentPage</strong>, eg.<br />
<br />
all siblings: $parentPage//*[@id != $currentPage/@id] <br />
", this.xPathTextBox, this.xPathRequiredFieldValidator, this.xPathCustomValidator);
writer.AddPrevalueRow("Storage Type", this.storageTypeRadioButtonList);
writer.AddPrevalueRow("Values", this.valueTypeDropDownList);
}