How do I limit the user embedding options to nodes created by that same user?
Minqensan - June 25, 2009 - 20:21
| Project: | Inline and link Drupal objects (Linodef) |
| Version: | 6.x-1.x-dev |
| Component: | Buttons API |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
As the question says, right now my BUEditor button shows me all nodes of the content type. How do I limit it to what the user has created?
Thanks!

#1
With the patch provided in this post you can use views to create a button list. With views you are able to reach your goal: Copied from the views documentation:
To do so create a view and enter the name of that view prepended by view_ into the BUEditor button ($drupal_element="view_viewname"). E.g. your view has the name "usernodes" than you enter "view_usernodes".
I haven't committed this patch yet since there is an unsolved issue with the new tag option layout (e.g. the option linktext="Your Text" won't work because no quotation marks inside options are supported by Buttons API yet). If you need this feature now, apply the patch to your Linodef installation and don't use tag options with quotation marks for your buttons.
If you're not familiar with patching I can commit the unfinished patch to the dev branch though.
#2
You may now use views to customize the button lists as you like. If you have questions about the usage of those views and the documentation provided within the dev release doesn't help then don't hesitate to ask.
#3
Thanks a lot, I'll try this as soon as I get a chance.
#4
Fixed since this works as intended with views.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.