Hi,
I enjoy a lot the ability to put php code in text widget to restrict allowed values.
I'm aware that userreference now support views but I feel restricted by views (maybe by my lack of knowledge).
I tried to set up a list of users who were referenced in a content type but using a "users view" I couldn't achieve this.
Also, it seems that views arguments are fixed and I'd like to have the ability to use arg() from the URL or advanced code ($user...)
Well maybe all of this can be achieved using views, but I struggled too much time when building my query would have taken me 5mn.
Is it a feature thought for inclusion in userreference (and maybe nodereference), is there anybody working on this ? Do I have a little time to work on a patch before official release ?
Thanks a lot for your advices.
Regards
Comments
Comment #1
karens commentedThe intention of CCK is that you will use Views for things like this. Once you get familiar with it, Views is a much better and more powerful tool than building little one-off queries. It's well worth spending the time getting familiar with it, you'll use it over and over for many things once you understand it.
We won't be adding in any custom queries to CCK, but thanks for asking.
Comment #2
tostinni commentedThanks for your input, I totally understand that views is a great tool but out of the box, you can't add relationship for user so I can't add a JOIN on my content table which have the userreference field.
Is it something I have to write in a custom module ? I couldn't find any clue on doing this reading the views issue queue.
Regards