Currently the view integration with taglists shows a popup with all views listed. I don't want my users to be able to use any views to embed, but instead only want to give them the ability to use 2 or 3 specific views that are configured to work correctly with the rest of the taglist definition (specific display_id and arguments etc).

So, in addition to the getallviews source that is currently available, I propose another method of generating the list whereby you can select specific views that should be available (much like when using nodes - you can select only specific content types to be available).

CommentFileSizeAuthor
#1 994666-linodef-limit-views.patch7.83 KBmrfelton

Comments

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new7.83 KB

Attached seems to do what I need it to. It adds a new option 'getsomeviews' where you can select the specific views that should be included.

mrfelton’s picture

ps. sorry about the messy patch... that's what you get for using tabs instead of spaces :P
http://drupal.org/coding-standards#indenting

salvadorp’s picture

Thanks for the patch and for the module!

But I have a question about this patch, it gives the option to choose a specific view, but when the button of the wysiwyg is pressed, I only get a popup window, with a null value, instead of getting the view I had chosen before at the tag lists.

Maybe I'm doing something wrong when creating a view, the view I use receives the id of the taxonomy and shows the elements that have that taxonomy.

Thanks for your help.

salvadorp’s picture

Nevermind, just resolved my issue.

The problem was with my view, now it's resolved.