This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyWebsite.Initialization | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using EPiServer; | |
using EPiServer.Core; | |
using EPiServer.DynamicContent; | |
using EPiServer.Enterprise; | |
using EPiServer.Enterprise.Enterprise; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace MyWebsite.PropertyTypes | |
{ | |
using System; | |
using System.IO; | |
using EPiServer.SpecializedProperties; | |
using log4net; | |
public class PropertyDCImageUrl : PropertyImageUrl | |
{ | |
private static ILog logger = LogManager.GetLogger(typeof(PropertyDCImageUrl)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int categoryId = 5; | |
// Let's assume node with ID 45 is the root page of a blog or news section. | |
foreach (Node node in NodeHelpers.GetNodesInCategory("categories", categoryId, 45)) | |
{ | |
// do something with node. | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<categories> | |
<category> | |
<name>Food and Drink</name> | |
<description>Category for food and drink blog posts.</description> | |
<parent>12</parent> | |
<enabled>True</enabled> | |
<selectable>True</selectable> | |
</category> | |
</categories> |