This project is read-only.

Filtering by logged in user

Topics: General
Jun 20, 2013 at 8:03 PM
Hello All,

I have created a new part for the content type "user", when an admin creates a new user there is a text field that he/she may enter in random text, that ONLY that user should be able to see. This is working great!

I have created a projecting page that is calling a query I have set up to pull back that data. Currently the only filter I have is "Content with type User" that is in fact pulling back exactly what it is I am looking for, however it is pulling back everyones content and not just the user logged in.

I am just not sure what/or how to go about filtering on a logged in user. I hope what I have written makes sense, as I am not an experienced Orchard developer.

Jun 21, 2013 at 9:37 AM
The logged in status is not stored by default so you can't filter on this property. Take a look at this module for some inspiration.
Jun 21, 2013 at 6:38 PM
Thank-You Piedone, I will take a loo at it and see if I can modify it to my needs :)
Thanks again Bryan