HTML on individual pages

Is there a way to have HTML <textarea> blocks read on a page? For virtually every node on this site, I have a JS call in the <head> and will place page specific variables in another script inside the <body>. The <head> script also looks for data to parse in the <textarea>. Thanks.

ajax form

I can't seem to get my form to work with ajax. trying to create a dependant drop down selection but can't get the second form element to change its default value base on the first selection, here is the code.

<?php
//edit players form
function soccerleague_editplayers($form, &$form_state){
$options= getTeamRoster();
if(isset($form_state['values']['soccerleague_players']))
$player_id = $form_state['values']['soccerleague_players'];
else
$player_id= key($options);
$player_info= soccerleague_getPlayersInfo($player_id);
drupal_set_message('

' . print_r($player_info, TRUE) . '

');

//first option
$form['soccerleague_players']= array(
'#type'=> 'select',
'#options'=> $options,
'#title'=> t('Select player to edit'),
'#ajax'=> array(
'callback'=> 'soccerleague_editplayers_callback',
'wrapper'=> 'soccerleague_editplayers_wrapper',
),
);

//second drop down options
$form['soccerleague_players_info']= array(
'#type'=> 'fieldset',
'#title'=> t('Players info'),
'#prefix'=> '

',
'#suffix'=> '

',
);

$form['soccerleague_players_info']['soccerleague_players_name']= array(
'#type'=> 'textfield',
'#title'=> t('Name'),
'#default_value'=> $player_info['name'],

'Add node' button on View list or Panel

Hello! Perhaps this is a basic question, but here goes.

I've got a View with a list of nodes of a certain content type. What would be great is to have a button near the list to 'Add Node' which would jump directly to an editor window to create a new node of that content type.

Is there a way to easily do this? I can read and understand some PHP, but I wouldn't know how to write something like this from scratch, nor would I know where the put the code. So any tips would be greatly appreciated! =)

How to add terms by users in node edit/create form?

Hi all!
I have a problem.
How to add terms by users in node edit/create form without use admin section?
Module Hierarchical Select - suits me, but in D7 only basic port.
Thank for reply!

Fatal error: Allowed memory size of 33554432 bytes exhausted

Hi all. I'm having a problem where I'm getting the message "Fatal error: Allowed memory size of 33554432 bytes exhausted in /includes/common.inc on line 5668" whenever I attempt to click on my Modules list in the admin panel.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x