Default Values with Webform

Hi,

I'm currently making an edit form filled in with default values taken from a previous form. It's going fine except for the File input type. Is there any way for me to put a default value for the File type input in a Webform?

Thanks!

How do I get a list of galleries with images in them

Hi,
I am using this lulabot recipe, except that I have done it in Drupal 7. This is what I have so far. 2 content types: Gallery content type, that pretty much just holds the title of the gallery. Photo content type that creates one node per photo and uses node reference to create a connection between the photos and the gallery that they belong to. The view is set up properly so that when I am looking at a gallery all the photos in that gallery render.

Extended horizontal Main Content block for swipe/scroll of overflow: auto; content

Hi all,

Just finished my first Drupal page: website for a church in the area (pro bono; wanted the experience). Now looking to upgrade my own website.

I've got my heart set on a site similar to this website, with my main focus on the continuous and scrollable content area containing the portfolio.

How to capture and submit custom form values?

Hello Drupals! I have tried wrap my head around form problem, but I'm new to Drupal and don't know I'm doing wrong (and English not very good sorry) Below is my code to customize User => Edit => user-profile-form. I feel I am 0.75 there. Everything is working expected so far but I don't know how to submit the form haha o.O

Here is template.php

<?php
/**
* Implementation of hook_theme().
*
*/
function MYTHEME_theme($existing, $type, $theme, $path){
return array(
'user_profile_form' => array(
'render element' => 'form',
'template' => 'user-profile-form',
'path' => drupal_get_path('theme', 'MYTHEME') . '/templates',
),
);
}

/**
* Preprocessor for user-profile-form.tpl.php
*
*/
function MYTHEME_preprocess_user_profile_form(&$vars) {
$vars['school'] = drupal_render($vars['form']['field_user_school']);
$vars['team'] = drupal_render($vars['form']['field_user_team']);
// IS THIS SUBMIT BUTTON VARIABLE WRONG???
$vars['submit'] = $form['actions']['submit']['#submit'] = array('#id' => 'edit-submit', '#type' => 'submit', '#value' => 'Save',);
}

/**
* Implementation of hook_form_FORM_ID_alter().
*
*/
function MYTHEME_form_user_profile_form_alter(&$form, &$form_state, $form_id) {
//dpm($form);
drupal_set_message($form_id . " is currently hooked.");

Web Crawler/spider/robot

Hi all,

I want to know if it's possible to create a web crawler in PHP that will log into a foreign site using credentials, crawl certain sections of the site storing text & images and then enter them into my database as a particular content type with fields to view in my Drupal site.

I was thinking of trying to build a module to do this that can be initiated maybe twice a day by a cron job.

I'm not asking anyone to make it, but if you know if it is feasible, or if there is already tools developed to do this, or if I should look at another language.

Roles & Permissions

I need for my client to be able to allocate roles to new users, but I don't really want to give them access to all the permissions - is there a way to do this? Thanks in advance

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x