Skip to main content
Home Blog AI Blog Portfolio Contact Us

Search form

WebTechKitchen

Tech Blog

Drupal · Web Development · Tools & Techniques

Restart apache

Submitted by barnettech on Thu, 12/10/2009 - 17:02

/usr/sbin/apachectl configtest
and then if that's ok
 /usr/sbin/apachectl restart

  • Read more about Restart apache

code filter module for displaying code in a drupal post

Submitted by barnettech on Thu, 12/10/2009 - 15:32

This site uses code filter module to diplay code correctly in posts.

use <pre> and <code> tags to wrap your code.


this is a p tag

this is an h1 tag

I also put this in my style.css file in this drupal installation:

  • Read more about code filter module for displaying code in a drupal post

making <pre> tags make code snippets show up in a browser nicely

Submitted by barnettech on Thu, 12/10/2009 - 14:23

I put this in my style.css file in this drupal installation:

code, tt, pre {
background-color: #EDF1F3;
font-family: "Bitstream Vera Sans Mono",Monaco,"Lucida Console",monospace;
font-size: 0.9em;
line-height: 1.2em;
}

  • Read more about making tags make code snippets show up in a browser nicely

jquery, javascript and drupal

Submitted by barnettech on Thu, 12/10/2009 - 14:12
  • Read more about jquery, javascript and drupal

Creating a Drupal Node programmatically

Submitted by barnettech on Wed, 12/09/2009 - 17:12

http://acquia.com/blog/migrating-drupal-way-part-i-creating-node
* also note that node_delete(nid) will delete a node.

  • Read more about Creating a Drupal Node programmatically

put a block of html or php code in an if clause in PHP

Submitted by barnettech on Wed, 12/09/2009 - 12:13

<?php if ($footer_message): ?>
            <?php print $footer_message; ?>
            hello, html can go here too
            very nice :) 
        <?php endif; ?>

  • Read more about put a block of html or php code in an if clause in PHP

theming contact form page and other forms

Submitted by barnettech on Tue, 12/08/2009 - 15:31

See

http://11heavens.com/theming-the-contact-form-in-Drupal-6

  • Read more about theming contact form page and other forms

themeable functions in drupal -- a list

Submitted by barnettech on Mon, 12/07/2009 - 17:29

http://api.drupal.org/api/group/themeable/6

see page 181 in the book Pro Drupal Development for details on how to override themeable functions. Make sure any html in your modules is withing a themable function so others can override the html look an feel.

  • Read more about themeable functions in drupal -- a list

On theming a view in Drupal

Submitted by barnettech on Wed, 11/25/2009 - 13:08

text from http://stackoverflow.com/questions/77694/drupal-6-how-to-quickly-theme-…

Here are my findings: (Edited)

In fact there are two ways to theme a view : the "field" way and the "node" way. In "edit View", you can choose "Row style: Node", or "Row style: Fields".

  • Read more about On theming a view in Drupal

Configuring cron job for Drupal

Submitted by barnettech on Tue, 11/24/2009 - 12:36

http://drupal.org/cron

"In the following example, the crontab command shown below will activate the cron tasks automatically on the hour:

0 * * * * wget -O - -q -t 1 http://www.example.com/cron.php

"

  • Read more about Configuring cron job for Drupal

Pagination

  • First page « First
  • Previous page ‹ Previous
  • …
  • Page 22
  • Page 23
  • Page 24
  • Page 25
  • Page 26
  • Page 27
  • Page 28
  • Current page 29
  • Page 30
  • Next page Next ›
  • Last page Last »
Subscribe to
WebTechKitchen
Home Blog AI Blog Contact

© WebTechKitchen · Your Web Technology Kitchen