Fix - refine code
This commit is contained in:
committed by
Sebastiaan Janssen
parent
4170faf76e
commit
59349dd355
@@ -84,17 +84,19 @@ namespace umbraco.presentation.umbraco.translation {
|
||||
pageRow[ui.Text("name")] = ui.Text("nodeName");
|
||||
pageRow[ui.Text("value")] = page.Text;
|
||||
pageTable.Rows.Add(pageRow);
|
||||
|
||||
foreach (PropertyType pt in page.ContentType.PropertyTypes) {
|
||||
|
||||
foreach (PropertyType pt in page.ContentType.PropertyTypes)
|
||||
{
|
||||
pageRow = pageTable.NewRow();
|
||||
pageRow[ui.Text("name")] = pt.Name;
|
||||
if (page.getProperty(pt.Alias) != null && page.getProperty(pt.Alias).Value != null)
|
||||
var property = page.getProperty(pt.Alias);
|
||||
if (property != null && property.Value != null)
|
||||
{
|
||||
pageRow[ui.Text("value")] = page.getProperty(pt.Alias).Value;
|
||||
pageRow[ui.Text("value")] = property.Value;
|
||||
}
|
||||
pageTable.Rows.Add(pageRow);
|
||||
}
|
||||
|
||||
|
||||
dg_fields.DataSource = pageTable;
|
||||
dg_fields.DataBind();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user