Display single field from system table

Andrew Everson asked on April 16, 2014 02:36

Hi, I am trying to Display a single custom field that has been added to the usersettings table. I want to display this on each page(In the top where it shows the logged in user). I managed to setup a view for the table that gets the correct data but I cant see which webpart one would use, they all seem to link only to a document type or custom table of which this is neither

Correct Answer

Vilém Jeniš answered on April 16, 2014 05:05

Hi Andrew!

You can use the Editable text Webpart for example and use a macro expression in the format: {% CurrentUser.CustomColumnName |(identity)GlobalAdministrator%}

This is an example "How to" : Image Text First I created the custom column. Then I entered a value for a user. Third step was to insert th editable text webpart to the page and then I inserted the macro expression along with a separator "||" The result is: Image Text

I hope this helps and wish you the best luck with Kentico.


Vilém Jeniš

Community & Intranet Developer

0 votesVote for this answer Unmark Correct answer

Recent Answers

Andrew Everson answered on April 16, 2014 05:26

Thanks worked like a charm

0 votesVote for this answer Mark as a Correct answer

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