Dynamic Forms

Hi everybody,

Belgian newbie on Drupal, i know what i want to do, but i can't see how to do it.. Explanation:
I have my CV form, with a "Experience" part. But we can have plenty of it in a CV, so i'd like than each time the user click on a button, a new mini form shows up, reducing the current experience. I see how to do with javascript in PHP, but in Drupal, i'm.. confused.

Thank you

Rendering arrays in a block (Drupal 7)

I'm trying to render a field in a block, in this case an CCK-uploaded image.

However this code isn't working (with the PHP-filter enabled):

<?php
  print render($content['field_company_image']);
?>

When I insert this code in a PHP-block I'm getting errors.

Does anyone know what the best practice is for rendering arrays or variables in a block?

Reset permission cache

In D6 user_access() has a $reset parameter, which allows resetting the permissions cache if roles are added on the fly.

$reset (optional) Resets the user's permissions cache, which will result in a recalculation of the user's permissions. This is necessary to support dynamically added user roles.

How to do this properly in D7?

Unable to change temporary directory, keeps reverting

Hi, I've just moved my Drupal 7 installation from a subdirectory on my domain to the web root. Everything appears to work except that I got an error message about my temporary directory not existing. I had forgotten about that one, so I created a new folder outside the web root and tried to point Drupal to it. When I click "Save", I get the message up top that it's updated the settings, except that it hasn't. It reverts back to the old temporary folder, which it then creates.

date picker block

i'm developing a site for a travel agency where visitors can enter their departure and returndate and the system displays all flights within those parameters. I'm now getting stuck in the part where the visitor needs to select their dates.

this is what i want to create:
a block with two date-selectors (jquery with calendar popup)
the visitor selects their dates and with a submit button the dates are sent to a view where the correct flights are displayed.

Logging into admin, not working

Had a designer (not me) setup my Drupal site. Then I had to have the site moved within my hosting service from an addon domain to a reseller domain by another person.

The site works ok. But last night I tried to login to the admin panel for the first time since the move.

domain/user resulted in a 404 page.
domain/?user got me to a login page. but no login information would work.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x