Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Conditional Content

$
0
0
If I have page content where I want to allow the content editors to conditionally show information based on the value of a function.
How do I give users a means of 'wrapping' content in a conditional?
For example, they may have a section that is only displayed if the user's last name is 'Bloggs', but that section may have nested items, so it's not as simple as a text content property.
Is there a way to embed the page content editor inside a razor function?

Viewing all articles
Browse latest Browse all 2540

Trending Articles