Hello,

I know it's not much, but I'm prepared to give $10 for advice which leads to this working... (I can only afford to pay one person though)

I've created a custom node type in CCK, and am starting to create a custom view. One of the fields in my CCK node type is a remote URL, which I want to embed in an iframe as part of my View.

I'm not sure how to do this... I'd like the link field to automatically appear in the iframe, but I'm not sure how to do this being new to the Views module.

Hoping someone can help me out here!

~Calon

Comments

tdimg’s picture

If you create a "List View" type then you can use the theme wizard (simple theme => select theme type) to create a custom template for this view.

Lets assume the link is stored in $field_weblink_url then the iframe code would look like this:

<iframe src="<?php print $field_weblink_url?>" width="90%" height="400" name="<?php print $title?>">
  <p>I'm sorry but your browser cannot view iframes, to view this part please visit 
  <a href="<?php print $field_weblink_url?>"><?php print $title?></a></p>
</iframe>
CalonDdraig’s picture

c2uk,

What's your paypal account?:)

Calon

tdimg’s picture

Use the contact form found on my user page and I email you my paypal account.

Thanks,
Dan

P.S. I didn't do it for the money, but thanks anyway.

CalonDdraig’s picture

I don't have the option to use the Theme wizard from my views admin... The only option tabs I have are list, add, import and tools. I can't find anything pertaining to themes from /admin/build/views/wizard

Do I need to download a separate module to give me that option?

thanks again,
Calon

tdimg’s picture

Sorry, forgot about this. It's a separate module but one that is included in views (check for the files views_theme_wizard.info and .module in the views directory). So it needs separate activation on Site building > Modules.