Download & Extend

Pass additional parameters as view arguments

Project:Component
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

component_get_view($view_name, $display) Outputs a views based on the view and display name, but do not pass additional parameters as view arguments to the view. It uses views_embed_view which will pass any additional parameters as arguments. Would be good to have this feature.

Comments

#1

Yes. Patches welcome. :-) (It was upgraded in a hurry.)

#2

Category:feature request» task
Status:active» needs review

Attached a patch. It's simple.

AttachmentSize
component_get_view-368667-2.patch 820 bytes

#3

Tried this patch and had an issue so I made a couple tweaks - the attached is working for me.

Thanks Crell!

Jer

AttachmentSize
component_views.patch 761 bytes

#4

Status:needs review» reviewed & tested by the community

Tried patch - works as expected. Thx!

#5

Status:reviewed & tested by the community» fixed

#3 is not a valid patch. #2 is, though, and I couldn't tell what's different, so I committed that. Thanks, dropcube!

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here