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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.