Special view - e.g. pdf with only some fields

On http://motionsplan.dk I have presented a lot of strength training exercises. I would like to make a printable version available easily to print. However, the printable version of an exercise should just contain the title, short description and the pictures (and the logo and url of the page). I was thinking about doing it in a pdf to make the design more solid when printing. How should this be done best practise with Drupal 6 and 7?

Which should be used for a date field

I am creating a new content type in Drupal 7. Which field should I use for a date?

Add an "add content type" to menu with correct theme

Drupal 7. I have created a content type for brochure orders. I want my users to be able to order brochures easily, so I have created a link in the menu. However, if I click on the link it will be shown with the administrative theme. How do I change this?

Custom form element in Drupal 7

Hi,

I'm struggling with custom elements in Drupal 7. Basically, what i would like to do is to create a custom form element which i can reuse and add to several of my forms.

This is the first time i try to create a custom element, but i believe the following functions are what i need to define one:

hook_element_info() : define the element.
hook_theme() : define theme function for the element.
theme_reporting_tableselect() : the implementation of the theme function.

I do not receive any errors; Drupal just won't display the element. Any ideas?


/**
* Implementation of hook_element_info();
*/
function reporting_element_info() {
return array(
'reporting_tableselect' => array(
'#input' => true,
'#process' => array('reporting_tableselect_process'),
'#element_validate' => array('reporting_tableselect_validate'),
),
);
}

/**
* Implementation of hook_theme();
*/
function reporting_theme() {
return array(
'reporting_tableselect' => array(
'render element' => 'element',
),
);
}

function theme_reporting_tableselect($element) {
dpm('theme_reporting_tableselect()');
return '

element

';
}

function reporting_tableselect_process($element) {
dpm('reporting_tableselect_process()');

Fanpage

...

Tokens for Profile Module

I just wondered if the profile module does not provide tokens for the fields I create? They are not listed in the token list.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x