Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDynamic Text MessageDynamic Text Message
Previous
 
Next
New Post
5/2/2013 1:52 PM
 

I need to place a small texto on screen that must be different to logged users and not logged ones.

Sort of like 'Please login or register' vs 'welcome back username'

I can accept both in skin and in page content ways of doing this but haven't found one either way

The advantage of having it as page content would be to make it easier to change if the need arises but i can live without that

Any ideas?

Thanks


Regards Luís Rodrigues
 
New Post
5/2/2013 3:40 PM
 

Hello,

Welcome to DNN... One simple way to do this is to take advantages of DNN's module permissions. So, you actually add two text/HTML modules to the page and make one the text for logged-in users and one for not logged in people. Then, in your permissions, set the public one to be visible to All Users, but then denied for Registered Users. On the logged in one, make it visible to Registered users only. On both, you'll have to uncheck "Inherit view permissions from page" in their permissions.

Hope this helps,

Mike

 
New Post
5/3/2013 2:33 AM
 
Hi
Also you can do it on code level. On the skin file check for authenticated/Unauthenticated user and display text.
You can have a look at login.ascx file as here also the text changing operation performed based on user.

Thanks,
Sunil Kumar [ DNN Developer, Mindfire Solutions,India ]
 
New Post
5/3/2013 2:51 AM
 
Mike Ryckman wrote:
[...]

 set the public one to be visible to All Users, but then denied for Registered Users [...]

 Less complicated: Set this one visible to "Unauthenticated Users".

Best wishes
Michael


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/17/2013 12:54 PM
 
Hi all

@Sunil - great tip there mate - will keep that in mind. But since this texts may change i would rather stay out of the skin for this - or any text change would require a skin change

@Mike and @Michael - I had once used that method and i guess i will use it here again but was hoping there was some other way. Last time i used it, people with admin rights who have them just because they're high in the company hierarquy kept bugging me about seeing both messages and the site beeing a bit broken for that. Guess i will just mail them warning about and letting them know non-admins see it correctly - and hope none of them gets an aneurism over it

Thanks guys

Regards Luís Rodrigues
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedDynamic Text MessageDynamic Text Message


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out