Hi, thanks for a great module. I find it really useful.

I was wondering, is there a way anyone is aware of to have a link to a node, from another page on the site, open automatically in media browser?

I.e, I am using Media browser for video content on our main video page. It'd be really great if any links to individual video nodes opened in the Media Browser view instead of the default view.

Could this be done with arguments? I'm a bit of a newbie so if anyone can think of a way of achieving that and wouldn't mind passing the knowledge on I'd be really grateful.

All the best - Will

Comments

willhowlett’s picture

With some fiddling I seem to have achieved this, much to my surprise (arguments confuse me massively).

I simply created an argument for the attachment display only (overriding the default display), of the type Node ID from URL (I'm using URL aliases). I used Node validator to only affect content type: video, and had Argument type set to Node ID.

I then set the block to appear on all my video pages (videos/*) and hey presto, the main attachment view magically displays the designated fields from the node content. Last thing I did was remove the actual node display from the page (so that the video wasn't on the page twice, once in the block and once beneath the block) using CSS and the content type display fields.

Hope that makes sense for anyone else trying to do the same thing.

- Will

willhowlett’s picture

Ack, I seem to have run into a bug. What I've posted above works, but if the user then clicks on another item from the list display on the page pulled in by the argument, the next time they try to call the argument (i.e. the next time they visit a video node page) the view loads up but the main display is blank.

Will keep plugging away and will post a solution if I find it. Otherwise if anyone has any advice it'd be much appreciated.

- Will

span’s picture