I have tried to create one widget that will expose all nodes I can't seem to be able to figure out how to do it.

Here is the scenario;

  • The site will be used as a repository of data to be included in other sites
  • All nodes on the site should be exposed to users anonymous or otherwise

Given the above I was hoping I would be able to create a view to customize the display and then use embed widgets to expose the view with an argument. From my experience (and this is where I'm hoping I'm missing something) you can't create one widget to expose the view generically and have the embed code created on the fly with the appropriate views argument included.

Here's the scenario I would like to create;

  • admin (or other user) creates a widget to expose a view, via an ifram, that includes nid as an argument this view is exposed via a page at /view/NID
  • when a user authenticated or anonymous visits say /view/1 they should see the embed icon that when clicked will give them the embed code for that particular page (eg. embed code for /view/1) without having to make any choices (the admin did this for them already). Similarly when the user is at /view/23 they should click the embed icon and get the code for embedding '/view/23' without being presented with any options

Please tell me I'm missing something.

If I'm not missing anything can you point me in the right direction to implement this? Can embed_widgets be extended by a 3rd party module?

Thanks

Comments

jgraham’s picture

Status: Active » Closed (works as designed)

Closing; AFAIK you have to create a new widget for *each* individual piece of content. eg. if you want to embed a view that contains arguments you cannot just pass a parameter you need a new widget for each possible argument.

This is unfortunate I was hoping you could define a source/widget as a view and then when viewing a node/page for that view you would be presented with an "embed" link that would just display the embed code for that particular view with the corresponding arguments passed to the widget.

Please correct me if I'm wrong.

amir simantov’s picture

@jgraham

Hi, I want to do the same thing. As this issue was alive 6 months back, I was thinking whether you found some solution for this...

Thanks,
Amir

cimbeles’s picture

I'm really interested in this feature.
I have a webpage that includes professionals, schools, and events. In each professional and school I have made a view that includes all the events created by each professional/school.

I'm interested in creating a widget for each school/professional that can be included in the school/professional webpage showing only their events.

Is there a way to include dynamically argumentes for each node?