CMSConditionalLayout Visible for document type macro

Mehrdad ilchizadeh asked on May 14, 2014 08:19

hi

i need macro for show cms:CMSConditionalLayout in custom document Type....

i have CMS.Mahsul is a document Type i need macro for Visible just for this document...

<cms:CMSConditionalLayout runat="server" ID="ConditionLayout" Visible='<%# CurrentDocument.DocumentName|(Equal)"CMS.Mahsul"%>' ></cms:CMSConditionalLayout>

PLZ Help me

Recent Answers


Brenden Kehren answered on May 14, 2014 14:40

You can use the CurrentDocument.ClassName property to compare your doc types.

1 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on May 14, 2014 23:19

HI plz help me more about this macro for compare

Thank you

0 votesVote for this answer Mark as a Correct answer

Yehuda Lando answered on May 15, 2014 03:01

You can use <cms:CMSConditionalLayout runat="server" id="conditionalLayout" VisibleForDocumentTypes="CMS.Mahsul">

1 votesVote for this answer Mark as a Correct answer

Mehrdad ilchizadeh answered on May 15, 2014 03:21

hi i use but do not show Zone in design.

i use kentico cms 8 for last hotfix...

Plz HelP ME

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.