I have a custom module with a 2-page node form. Depending on what the user selects on page-1 will determine what they see on page-2.
My dilemma is how to prevent the node from inserting a new record UNTIL the user has completed page-2. Upon submission the first page is validated by hook_validate. If no errors have occurred the node think it's finished and tries to save the node data. This is normally expected behavior except in my case where the node has more data to collect.
I've played with hidden form values as flags, but haven't found the right solution.
When I make a custom block (generated through a php snippet), the ul list items have very little gap in between them. See the alerts and reminders block on this page.
Should I modify drupal.css to space out the list items? If so, which style declaration do I have to modify? I think modifying drupal.css will settle this issue for any custom blocks that I generate, is that right?
I have a 2-page node form and need to distinguish the pages. I'd like the first page submit button label to read "Continue". I know form_submit() allows you to set the name of a submit button, but what about renaming a node submit button to something other than "Submit"?
So my site is up and runing, but on my site is some information about a hotel.
What I want is that the registered users could reserve rooms on my site.
I searched already the net to find a drupal solution for that, but I found only some discussions about that.
So what is the latest state, it is still a good begin point the event module, but what shall I add? (Signup???)
This is a quick question, on the off-chance someone has come across this issue before.
I'm trying to prevent hotlinking to uploaded files with htaccess. However, when I use standard anti-hotlinking code found all over the web, it doesn't work. I suspect this may be because the urls are dynamic - ie, the file name comes after the ? in the url. For example:
drupal.org/system/files?file=Report_February_2006.pdf
rather than
drupal.org/system/files/Report_February_2006.pdf