OK so this is what I am trying to do.

I want to set up a video block that will only show if there is content that matches the current URL, i.e /about-us
If the user hits the "About Us" page and there is a video set up for "About Us" it will show if no video exists then no block.

---

This is what I have already done:

1. I set up a content type "Video"
Using the Embedded Video field and called it "field_youtube"

2. I set up a select box with key|value pairs:
The is set up as "about_us|About Us" I did this for the 8 main pages of the site.

---

This allows a user to add a video and assign it to a page without giving them access to edit blocks.
Here's where I need help. I need to figure out how to build the argument using the field data from the select list and match it to the URL to make it work. Any help will be appreciated.

Cheers,

Latte

Comments

ramsegal’s picture

Hey,

Why not use node reference to the page content instead of select box with simlpe text?
That way u know if a node has video content, and users cant edit blocks.

Ram

latte’s picture

Ok let me try that.

Thank you,

Latte/

ramsegal’s picture

Let me know if you need any help with that.

latte’s picture

You lead me down the correct path my friend.

I also found this video on how to do it and it is awesome!

http://mustardseedmedia.com/podcast/episode37 - Just in case someone else needs something like this.

Cheers and thank you for your help!

Latte/

ramsegal’s picture

My pleasure,

Cheers!