> Forums > Active Social > General Discussion > Calling custom profile properties in a custom template
Last Post 23 May 2011 10:27 AM by Michael. 2 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Michael
Registered Users
Michael
Post Count:1

--
23 May 2011 06:59 AM

    Hello,

    Sorry if this is the wrong place, but I don't seem to be able to post in the appropriate forum.

    Anyway, I'm looking for a bit of help with a custom "profile view" template I have created. I have a custom DNN profile property called ProfessionalRole and I would like to call this in my template under the skin token: [DNN:PROFILE:DISPLAYNAME]. How do I do this as the properties you can call from DNN:PROFILE seem to be restricted?

    Can I extend what tokens are available or is it a case of writing some code in the template to call what I need directly from the database, or am I going about this entirely the wrong way? Apologies, I am a developer but relatively new to DNN and Active Social.

    Thanks,

    Michael

    Ben - DotNetNuke
    DotNetNuke Staff
    Ben - DotNetNuke
    Post Count:1694

    --
    23 May 2011 10:07 AM
    I believe it is case sensitive. Have you tried it like this?

    [DNN:PROFILE:ProfessionalRole]
    Michael
    Registered Users
    Michael
    Post Count:1

    --
    23 May 2011 10:27 AM
    Posted By Ben on 23 May 2011 10:07 AM
    I believe it is case sensitive. Have you tried it like this?

    [DNN:PROFILE:ProfessionalRole]

    You're absolutely right. I did try this but because it was cached I didn't see the data coming through, so dismissed it.

    Oh the shame!

    Thanks for the help.

    You are not authorized to post a reply.
    > Forums > Active Social > General Discussion > Calling custom profile properties in a custom template
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy