In a couple of occasions, the WYSIWYG editor at the editing window of our Drupal installation would disappear (we are currently in PressFlow, installed a couple of months ago). It's there for those with admin roles, though, so we suspected it might be a permissions thing.
Showing posts with label Drupal. Show all posts
Showing posts with label Drupal. Show all posts
Wednesday, September 7, 2011
Friday, September 2, 2011
Drupal's block weight control missing
I have just created another Block in our Drupal CMS and I needed this to appear as the first in a column of blocks. The problem is, the block weight option has somehow disappeared.
Apparently, if you have lots of blocks, the weighting system would act up and "walk out" on you. I searched around for a fix and found one that's easy to implement. It requires turning off Javascript capability of your browser. I use Google Chrome heavily and would not like to dabble with its settings and forget later on what switches I turned off. So I used Firefox 5.0 in this case. The solution involved turning Javascript off.
Apparently, if you have lots of blocks, the weighting system would act up and "walk out" on you. I searched around for a fix and found one that's easy to implement. It requires turning off Javascript capability of your browser. I use Google Chrome heavily and would not like to dabble with its settings and forget later on what switches I turned off. So I used Firefox 5.0 in this case. The solution involved turning Javascript off.
Friday, July 15, 2011
Toggle "Promoted to front page" in Drupal
We are building a community-based website at work where we will have a number of people uploading content, be it a news item or a blog post, or a calendar event. Drupal is really powerful for this sort of thing. However, with all the options available, it is easy to get lost in the system. Which is why I have this blog to keep track of things!
We do not want everyone to have the power to promote their content onto the home page; only the relevant ones should, and only the admins and select people should be able to do this. The best way is to install the Override Node Options module. "Publish", "Promote to front page", and "Sticky at top of list" is always bundled together so you can really have a problem with promoting stuff by lots of people. The said module gives you the power to separate these into distinct abilities.
And for people who have admin or similar access, it is a hassle when "Promoted to front page" is turned on automatically. What if they do not want their article to appear on the home page?
Here is where you toggle this feature.
We do not want everyone to have the power to promote their content onto the home page; only the relevant ones should, and only the admins and select people should be able to do this. The best way is to install the Override Node Options module. "Publish", "Promote to front page", and "Sticky at top of list" is always bundled together so you can really have a problem with promoting stuff by lots of people. The said module gives you the power to separate these into distinct abilities.
And for people who have admin or similar access, it is a hassle when "Promoted to front page" is turned on automatically. What if they do not want their article to appear on the home page?
Here is where you toggle this feature.
Thursday, March 17, 2011
Enabling Drupal webform to send email to registrant
I spent a considerable amount of time trying to figure this one out. The webform I created would not send an email out to the registrant, but the test webform I created worked nicely. I finally found out that the field "email" must not belong to any fieldset. I placed "email" at the top of the list and it worked just fine.
However, in order for this to work, you also need to place the following code in the Additional Processing field under Webform Advanced Settings:
$to = $form_values['submitted_tree']['email'];
$from = "your email here";
$body = drupal_html_to_text($node->webform['confirmation']);
$message = drupal_mail('webform_extra', 'reply', $to, language_default(), array('body' => $body), $from, TRUE);
function webform_extra_mail($key, &$message, $params) {
$message['subject'] = "your subject here";
$message['body'] = $params['body'];
}
?>
Customize $from and 'subject'
Thanks to drupal.org for this fix. Very helpful.
Here's another link from drupal.org with an alternate solution.
However, in order for this to work, you also need to place the following code in the Additional Processing field under Webform Advanced Settings:
$to = $form_values['submitted_tree']['email'];
$from = "your email here";
$body = drupal_html_to_text($node->webform['confirmation']);
$message = drupal_mail('webform_extra', 'reply', $to, language_default(), array('body' => $body), $from, TRUE);
function webform_extra_mail($key, &$message, $params) {
$message['subject'] = "your subject here";
$message['body'] = $params['body'];
}
?>
Customize $from and 'subject'
Thanks to drupal.org for this fix. Very helpful.
Here's another link from drupal.org with an alternate solution.
Thursday, November 18, 2010
Sending confirmation email in Drupal Webform
Drupal's webform module does not natively send confirmation email. However, I found a workaround that works well and is found here:
http://drupal.org/node/323666
I have yet to look for something though that will send back a copy of the response to the fields.
http://drupal.org/node/323666
I have yet to look for something though that will send back a copy of the response to the fields.
Subscribe to:
Posts (Atom)