Creating fieldsets in content types (Drupal 7)

I need to create some fields for a content type inside of a fieldset, for ajax purposes (as seen in the Examples module). Creating fieldsets was easy in Drupal 6 / CCK, however I see no option for it in Drupal 7 fields. Am I overlooking something and is there is a new way to do this?

Documentation

Trying to find a system var that will display the currant page...

I want to be able to assign a dynamic graphical banner contingent on the page displayed via page.tpl.php

Documentation in Drupal leaves a little to be desired.

-A search of "Documentation" produces nothing of value

-Devel and Theme Developer that potentially could dump currant page data is broken...

Building a lightweight webshop with digital products

Hi drupal community.

I am planing to build a small website and I am searching for the right technology and software to use. Maybe you can help me out. These are my requirements in short:

- webshop functionality
- should feel like a website with shopping capabilities not like a shop with some static pages
- you can buy digital and real products

- fully themeable
- lightweight software: should run on shared hosting | administration should be really easy, maybe customizable

Auto-fill form with php

Hi!
I'm new to drupal, but i really like it's great features. My problem is with the forms:
How do i build a form, where i can define pre-set variables by php?
I would like to create a submission page, where users can only post an url (imdb url). After they submit the url, my form should preg_match it, to see if it is valid.
If yes, i yould like to search in database to see if this url has been posted or not. If yes, there should be a custom node type with the movies data, so i would like to redirect the user there. If not, then i would like to process the imdb url (curl, get some movie details) and pre-set those on the post node form as custom fields (and maybe as hidden values).

So i would like to do something like this (just for logic, i guess there will be mistakes in the code)

$imdburl=$_POST["imdburl"];
if (!isset($imdburl)) {
#Post your url form here, onsubmit validation with javascript or php
} else {
#connect to db to search for imdb url
if (count($result) != 0) {
#get the node id
#redirect to that node
} else {
include $myphpclass; #curl data fetching
#show drupal form
#and now i will set the default values in form data
#and hide those pre-set data (hidden form)
}
}

Best way to programmatically embed the Search Block in Drupal 7

In the past, if you wanted to manually embed the search form into your template you could use print $search_box;. However, this was removed from Drupal 7.

So, I'm asking what is the best method to do this in Drupal 7, now?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x