useful link: http://drupal.org/handbook/customization/php-snippets
to get php in blocks, enable the Php Filter in the modules section.
I've managed to break a site (so that nothing renders because of a php error in a block) and fix it by posting a page that I already had open with that block being edited.
I haven't had to work out how to perform such a fix without that lucky open page (yet).
Showing posts with label drupal. Show all posts
Showing posts with label drupal. Show all posts
Friday, 19 March 2010
Monday, 8 February 2010
Drupal, Zen, Nice Menus
If you're using trying to use Nice Menus to make a Zen subtheme for Drupal, you might need to remove the "overflow: hidden" from the navbar block in layout.css if you're having trouble with your menus not working or only partly showing up.
Here's a quote from layout.css (the comment is not mine):
Here's a quote from layout.css (the comment is not mine):
#navbar
{
overflow: hidden;
/* May need to be removed if using
a dynamic drop-down menu */
}
Sunday, 5 July 2009
Accessing your Drupal website after banning your own IP
Warning: This solution was derived by guessing, not by reading manuals. But it worked for me. It also assumes some familiarity with SQL.
in short: Connect to your drupal DB and edit the `access` table.
The command I used was:
where "
in short: Connect to your drupal DB and edit the `access` table.
The command I used was:
mysql> insert into access values (0, "172.16.17.18", "host", 1);
Query OK, 1 row affected (0.00 sec)
where "
172.16.17.18
" was the IP in the "Sorry, 172.16.17.18 has been banned
" message.Tags in Drupal blog
I just figured out how to enable tags in this Drupal blog - it's not a blog setting, it's controlled by the taxonomy module - Home � Administer � Content management > Taxonomy.
Created a taxonomy, called "tags" with the tag flag set which I've applied to everything (including blog posts). Now I get a "Tags" field when creating blog posts. Oh, and note that tags need to be comma separated - space separation looks like it's working but actually just generates a single tag for all the words.
Created a taxonomy, called "tags" with the tag flag set which I've applied to everything (including blog posts). Now I get a "Tags" field when creating blog posts. Oh, and note that tags need to be comma separated - space separation looks like it's working but actually just generates a single tag for all the words.
Subscribe to:
Posts (Atom)