i want to show some welcome text if user is guest or if he is registered then show another text
i am not good in C# programming, so i don't really know how to do it
i need something like this
@if user role "guest" { <p class="not-logged">You are not logged in and that is why you may not see secret information!</p> } and @if user role "registered" { <p class="logged-in">You are logged in and here is your secret information!</p> }
You can configure homepage text from topic HomePageText (Admin > Content Management > Topics ) topic. But here you can't set text guest and registered user wise.
So you can create two different topic for guest and registed user and configure your message. After that you've to set ACL - Limited to Customer Role and add both topic line in Views > Home > Index.cshtml