Skip to content

Commit

Permalink
Fix - refine code
Browse files Browse the repository at this point in the history
  • Loading branch information
Quan Tran authored and nul800sebastiaan committed Jan 10, 2019
1 parent 4170faf commit 59349dd
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -84,17 +84,19 @@ public details()
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();
}
Expand Down

0 comments on commit 59349dd

Please sign in to comment.