Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How do I get a Generic Property for the current page using .NET code?
Thanks.
Looks like I found the answer in the guts of the Umbraco Commerce code:// umbraco.dllusing umbraco.presentation.nodeFactory;
// cms.dllusing umbraco.cms.businesslogic.web;
...
Node currPage = Node.GetCurrent();Document currPageDoc = new Document(currPage.Id);if (currPageDoc.getProperty("propertyName") != null)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Get Generic Property From .NET Macro?
How do I get a Generic Property for the current page using .NET code?
Thanks.
Looks like I found the answer in the guts of the Umbraco Commerce code:
// umbraco.dll
using umbraco.presentation.nodeFactory;
// cms.dll
using umbraco.cms.businesslogic.web;
...
Node currPage = Node.GetCurrent();
Document currPageDoc = new Document(currPage.Id);
if (currPageDoc.getProperty("propertyName") != null)
...
is working on a reply...