Ejemplo n.º 1
0
 public Component(IComponent component)
 {
     this.dd4t = component;
     this.schema = new Schema(dd4t.Schema);
     this.fields = new FieldSet(dd4t.Fields);
     this.metadataFields = new FieldSet(dd4t.MetadataFields);
     this.multimedia = new MultimediaData(dd4t.Multimedia);
 }
Ejemplo n.º 2
0
 public PageTemplate(IPageTemplate template)
 {
     this.template = template;
     this.metadataFields = new FieldSet(template.MetadataFields);
 }
Ejemplo n.º 3
0
 public ContentPresentationData(IFieldsData content, ISchemaData schema, ITemplateData template)
 {
     this.content = content;
     this.schema = schema;
     this.template = template;
     publicationId = template.PublicationId;
 }
Ejemplo n.º 4
0
        private readonly ISchemaData metadataSchema = null; //not implemented by DD4T at this time

        #endregion Fields

        #region Constructors

        public Keyword(IKeyword keyword, string categoryName = null)
        {
            this.keyword = keyword;
            if (keyword != null)
            {
                this.metadata = new FieldSet(keyword.MetadataFields);
                //DD4T provides no way to retrieve an ICategory object
                this.category = new CategoryData(keyword.TaxonomyId, categoryName);
            }
        }
Ejemplo n.º 5
0
 public ComponentTemplate(IComponentTemplate template)
 {
     this.template = template;
     this.metadataFields = new FieldSet(template.MetadataFields);
 }