Skip to content

jstemerdink/EPi.Libraries.QnaMaker

Repository files navigation

EPi.Libraries.QnaMaker

Build status Quality Gate GitHub version Platform Platform GitHub license Stories in Backlog

About

Connect your site to the QnA maker api See QnA maker site for information about the QnA maker API.

Parts

Core
ContentArea implementation

How to use

    [QnaOverviewPage]
    public class QnaOverviewPage : PageData
    {
        /// <summary>
        /// Gets or sets the qna items.
        /// </summary>
        /// <value>The qna items.</value>
        [Display(Name = "QnA items", Description = "QnA items", GroupName = SystemTabNames.Content, Order = 10)]
        [QnaContainer]
        [AllowedTypes(typeof(QnaItemBlock))]
        public virtual ContentArea QnaItems { get; set; }

        // <summary>
        /// Gets or sets the knowledgebase name.
        /// </summary>
        /// <value>The  knowledgebase name.</value>
        [Display(Name = "QnA knowledgebase name", Description = "QnA knowledgebase name", GroupName = SystemTabNames.Content, Order = 20)]
        [QnaKnowledgebaseName]
        public virtual string QnaKnowledgebaseName { get; set; }

        /// <summary>
        /// Gets or sets the qna knowledgebase identifier.
        /// </summary>
        /// <value>The qna knowledgebase identifier.</value>
        [Display(
            Name = "Knowledgebase Id",
            Description = "The Knowledgebase Id",
            GroupName = SystemTabNames.Content,
            Order = 20)]
        [ScaffoldColumn(false)]
        [QnaKnowledgebaseId]
        public virtual string QnaKnowledgebaseId { get; set; }
    }

    [QnaItem]
    public class QnaItemBlock : BlockData
    {
        [CultureSpecific]
        [Display(Name = "The answer", Description = "The answer", GroupName = SystemTabNames.Content, Order = 2)]
        [QnaAnswer]
        public virtual XhtmlString Answer { get; set; }

        [CultureSpecific]
        [Display(Name = "The question", Description = "The question", GroupName = SystemTabNames.Content, Order = 1)]
        [QnaQuestion]
        public virtual string Question { get; set; }
    }

Powered by ReSharper

image

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published