Hi,

I want to link to a Drupal page from another site. It is a registration page for a CiviCRM install.

When the user clicks this link, I am opening it in a new window. I do not want any Drupal menus or any Drupal anything to be visible. The site that this form is on is another site altogether and will only be used internally. I want the form but nothing else to come up.

How can I do this?

Thanks!

Comments

ericg’s picture

1: set all your menu blocks to not show up on the specific url of that page

2: for more detailed control, create a secondary theme that has only what you want. use the taxonomy_theme module and set that one page to use that theme

jmilane’s picture

Interesting... I am new to Drupal and havent heard of either of these things before but I will give it a a shot and try to figure it out.

I can create a theme with no header or menus?

ericg’s picture

you will find the controls for showing/hiding blocks at administer->blocks
click configure next to one of the blocks that is active, look near the bottom of the page

yes, drupal's theme system is flexible enough so you can have or not have whatever you want.

start with something simple like bluemarine or box grey and remove what you don't want

since each theme has it's own block settings, you can just have the second theme set to show no blocks/menus and turn off most of what you want to hide in the theme's settings, then do the rest by hacking around with the theme files themselves

jmilane’s picture

Okay, I have a theme with nothing on it... and I have the taxonomy module set.

But how do I tell Drupal to put *this* theme on only *this* page regardless of the user?

ericg’s picture

taxonomy or taxonomy_theme module

if you have taxonomy_theme module installed
http://drupal.org/project/taxonomy_theme
just follow the directions in the readme.txt for the module

setup a taxonomy/vocabulary to use as the control for theme
add terms to the vocabulary (one for each theme)
configure the module to use that taxonomy; set it so that it knows what theme to use for which term in the vocabulary

choose the theme you want when you make your page.

looking back at your initial question, I see there might be one other issue.
If you are trying to theme a page that is created by the module, you will have to recreate that form as a node (use a page node and full html input format and replicate the form), or make modifications in the module or theme files to triger the change at a certain url

jmilane’s picture

It is a module page, but it is a static HTML form.

I created a static Drupal page that displays the form, and I have taxonomy_theme installed.

But I still cant figure out how to get that one page to have no menus or anything... how to assign my bare bones theme to just that one page.

Im sorry Im slow.

ericg’s picture

if you use jabber or aim, I'm sending you my contact info. it will be easier to discuss it and find the solution that way. then after you get it working you can post the solution here for others that have similar questions in the future.

jmilane’s picture

I am trying it another way.

i created a page and named it "intake"

now i am telling my default theme to NOT display these menu items when intake is the page

it isnt working, but it should... right?

jmilane’s picture

it works when i call the page from within drupal, but not when i call the page's url from another site.

still cant figure this out

jmilane’s picture

Eric was good enough to try and walk me through this... it looks like some sort of bug makes it so that unless you are logged in, the theme does not stick.

Will add more when I understand what is going on.

drupal777’s picture

There are a number of things that need to be "lined up" so that you can do what you want. It sounds like you are mostly there. I have found that the above works too well. That is, even an anonymous visitor will find that the theme being displayed is tied directly to the page in question, even if the theme in question makes no sense for the anonymous user.

I would prefer that Drupal have an over-riding theme that is applicable whenever a user attempts to access a page which is inaccessible. Right now, it provides the theme associated with the forbidden page, which can lead to some strange results.

In short, I have the exact opposite problem that you do. I find that Drupal is too good at delivering a specific theme, tied to a specific page, even if the specific page itself is forbidden.

http://drupal.org/node/75823

Maybe if you solve your problem, it will also solve mine.