speed up Drupal 7 hosting at One.com

Hello,

I have a question, i am having a website hosting at One.com.
Its really slow, i have cache options enabled.
Are ther other options to speed up the site?
Is the Boost module working with One.com?

Best regards Ron.

Theme

I know is many way to create theme (ZEN, Omega, 960, create own theme). What is the most efficient way?

Can I use panels and views to get this done

Hi,
Please see my target layout http://imagebin.org/154224

I have an exposed form fitlers in views and its displayed in a box. I want to move the results to a different part/ region of the page ( this is marked in yellow )

Someone suggested that I can get this done in panels but I am not sure. Please advice if I break my fiew so that the exposed form elements are on the top of the page and the results can be at the bottom left part.

Cheers,
Vishal

How do I add the class to the input field in template.php?

The default input field output is the following:

<input id="14sq-und-0-value" size="12" maxlength="10" class="form-text" type="text">
<input id="510sq-und-0-value" size="12" maxlength="10" class="form-text" type="text">
<input id="1119sq-und-0-value"  size="12" maxlength="10" class="form-text" type="text">
<input id="20jsq-und-0-value" size="12" maxlength="10" class="form-text" type="text">
<input id="oneyear-und-0-value"  maxlength="10" class="form-text" type="text">
<input id="twoyear-und-0-value"  maxlength="10" class="form-text" type="text">
<input id="threeyear-und-0-value" size="12" maxlength="10" class="form-text" type="text">
<input id="vpssq-und-0-value" size="12" maxlength="10" class="form-text" type="text">
<input id="500zh-und-0-value"  size="12" maxlength="10" class="form-text" type="text">
<input id="1000zh-und-0-value" size="12" maxlength="10" class="form-text" type="text">
<input id="1500zh-und-0-value" size="12" maxlength="10" class="form-text" type="text">

I want to add some classes to it. How should I do?



How do I get the field label?

I added some fields to the "Article" content type. I want to output them in the page--front.tpl.php. How do I get the field label value?

Save values from custom form in DB

Hi,

I've create a module with a custom form in the configuration panel.
Now in my form there are some fields that need to be saved in my DB (created when activating my module). I've searched for a hook that should save the form, but didn't find anything usefull yet.

This is my code for showing the form:


function fb_recommend_form($form, &$form_state){
$form = array();

$form['url'] = array(
'#type' => 'textfield',
'#title' => 'Url to recommend',
'#description' => t('Enter the url of the site that you want to use for the Facebook Recommnendation box'),
'#size' => 50,
'#maxlength' => 255,
'#required' => TRUE
);

$form['height'] = array(
'#type' => 'textfield',
'#title' => t('The height of the Facebook Recommendation box'),
'#description' => t('Enter the desired height (without pixels or px) of the Facebook Recommendation box'),
'#size' => 10,
'#maxlength' => 3,
'#required' => FALSE
);

$form['width'] = array(
'#type' => 'textfield',
'#title' => t('The width of the Facebook Recommendation box'),
'#description' => t('Enter the desired width (without pixels or px) of the Facebook Recommendation box'),
'#size' => 10,
'#maxlength' => 3,
'#required' => FALSE
);

$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save settings'),
);

return $form;
}

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x