Hi,

Is it possible to (1) override the form fields on the nodeformpopup, and (2) add a log in box to the form when a user is not logged in (hiding the form fields and when they click "login" it refreshes the page as the form). Any idea's?

Thanks

Comments

Egon Bianchet’s picture

It should already work like that ... if not it's a bug ... can you check?

palmergroup’s picture

well, I can't seem to figure out where to do the form override. I mean, I don't see it in the form templates and I don't know the correct theme override function for it.

.. the other issue with the login box was solved (not by me but I guess there wasn't an error).

Egon Bianchet’s picture

It should work the same way as standard node forms, since what the module does is just taking a node form and printing in a different page

palmergroup’s picture

hey, sorry I don't think I was asking the correct question. It is my understanding that nodeformpopup takes a form (in my case, a CCK form I have created) and inserts it into a popup page, correct? I want to alter that form so I can arrange the fields in different way. For example, this is how I themed one of my regular forms: http://pastebin.ca/314327 .

Coincidentally this form above that I have modified is the same form present in the nodeformpopup... but for some reason does not follow the modifications I made. It appears as the default CCK form. I need to override it so that it appears the way I set it up in my pastebin.ca code.

palmergroup’s picture

bump. anyone?

jbhan’s picture

so the question is, how do you theme the actual form that pops up in the popup?

right? - so, i have no idea :) a am awaiting a response to this also!

j

jbhan’s picture

or i suppose i should say form elements/fields... not just the popup window.

j

Egon Bianchet’s picture

It works in the exactly same way as with regular forms ... I've just tried myself with a story node and with a CCK one on Drupal 4.7 and it works as expected. I can't reproduce this issue.

Does that theme work as expected if you go to node/add/content_questions?

jbhan’s picture

for me, when i go directly to my node/add page, i get the theme that has been applied to the form. however, when using the bookmarklet, i get the basic, stripped down form (themeless) in the popup. I have tried to uninstall, delete and recreate the bookmarklet, and this does not help. I am using a CCK node.

j