Would it be possible to embed the finder search in another website (non drupal) as a widget or iframe that would link back to my website.

For example site x would have a finder search and a user would enter the search criteria and hit submit. After submit, it would then send them to my website with the search results.

Comments

javdich’s picture

I tried using a simple iframe, but it just embeds the entire page, not the block itself.

<iframe src="http://www.google.com" style="width: 90%; height: 300px"
scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0">
</iframe>
danielb’s picture

Component: Finder Search (search.module integration) » Miscellaneous
Category: feature » support

You have to include the whole page. You will need to template the finder pages differently to get rid of all the other stuff on the page, like the other regions, etc... I don't remember exactly how to do that, you do something in template.php that tells your theme to use a different page.tpl.php for particular paths.

danielb’s picture

Status: Active » Fixed

You might be able to find some other way to do this by creating your own page callback that just spits out finder_view() and then exits, or something like that, but I would use the template method - sorry I can't give more details, I'm sure someone in the theming community can elaborate.

javdich’s picture

Thanks danielb,

I also found some discussion on embedding drupal blocks on another thread http://groups.drupal.org/node/80619 that had some information as well as some modules, so I'm looking into those options as well. If anybody has used these modules or have succeeded in embedding the finder on other sites let me know.

Here are the links to the modules i found, but have not yet tested:

http://drupal.org/project/web_widgets
http://drupal.org/project/embed_widgets

Status: Fixed » Closed (fixed)

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