# Actual Channel/ContentPath in a Provider extends Plugin implements IValueListProvider

**URL:** <https://community.bloomreach.com/t/actual-channel-contentpath-in-a-provider-extends-plugin-implements-ivaluelistprovider/3729>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [March 20, 2023, 10:16am UTC](https://community.bloomreach.com/t/actual-channel-contentpath-in-a-provider-extends-plugin-implements-ivaluelistprovider/3729 "2023-03-20T10:16:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wittmannro](https://avatars.discourse-cdn.com/v4/letter/w/dec6dc/32.png) [@wittmannro](https://community.bloomreach.com/u/wittmannro)\
**Post date:** [March 20, 2023, 10:16am UTC](https://community.bloomreach.com/t/actual-channel-contentpath-in-a-provider-extends-plugin-implements-ivaluelistprovider/3729/1 "2023-03-20T10:16:47Z")

</div>

I am currently writing a Provider which returns a ValueList to a DropDown in my documentType. I now want to change the ValueList depending in which Channel/ContentPath the user edits this specific document of documentType.  
Is there any chance to get the information in the provider about the document which the user is currently editing …

I can get the UserSession but there is no info about the current location.

Any help appreciated.  
Regards Robert

---

<div class="post-metadata">

**Author:** ![jasper.floor](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jasper.floor/32/28_2.png) [@jasper.floor](https://community.bloomreach.com/u/jasper.floor)\
**Post date:** [March 20, 2023, 12:12pm UTC](https://community.bloomreach.com/t/actual-channel-contentpath-in-a-provider-extends-plugin-implements-ivaluelistprovider/3729/2 "2023-03-20T12:12:21Z")

</div>

HI,

I don’t think it is possible, at least not with any intended method. You get a user session by  
`org.hippoecm.frontend.session.UserSession.get()`, which is a wicket session underneath. This is not the same as a jcr session. Not sure what you’d call afterwards in order to figure out where you are editing though. I suspect there is a way to find it there, but I’d be worried about the maintainability of any such implementation. From the UserSession you can get a jcr session. Possibly you could try and get the nodes that you have locked, but this may give more results than you need.
