page
Change Title On Blog Index Page In Drupal
Tue, 05/11/2010 - 22:37 | by philipnorton42The title tag on the Blog module index page (found at /blog after the module is installed) is by default "Blogs | Sitename", which isn't editable in the backend of Drupal. I've been talking to other Drupal developers and reading forums about the best way to go about changing the title of the blog index page. Ideas ranged from editing or duplicating the blog module (which is bad practice) to installing the String Overrides to provide a quick translation of the string in the title.
Create A Page Of Posts In Wordpress
Tue, 08/11/2009 - 08:00 | by philipnorton42A common practice when setting up a Wordpress blog might be to create a page and display posts in a certain category on that page. This causes some pages to act very much like category pages.
The first step in creating a page of posts is to create a page template that can be used by the pages. Create a file in your template directory called pageofposts.php and put the following comment in it.
Clearing The Filter Cache In Drupal
Fri, 06/26/2009 - 11:30 | by philipnorton42Filters are used in Drupal to change the content of the text of a node when it is viewed. The important thing to note is that Drupal filters should never alter the actual content of the node itself. Instead, when a node is saved it stores the output of the filter in the cache_filter table and displays this content the next time the node is viewed. This is useful because it doesn't mess about with the original text, and it speeds up the displaying of the node by running the filters once, rather than every time the node is loaded.
Multi Page Forms In PHP
Tue, 05/05/2009 - 11:14 | by philipnorton42Multi pages forms are just as they sound, a single form spread across multiple pages. These are useful in terms of usability as it can break up an otherwise dauntingly big form into smaller chunks. It can also be useful if you want to process some of the results in order to determine what forms the user sees on later steps.
There are two ways in which it is possible to do this using PHP.
The first (and simplest) is just to cycle through the items submitted on a previous form and print them out as hidden fields. Our first page source code will look like this:
Create A Tag Cloud Page In Wordpress
Tue, 04/28/2009 - 08:56 | by philipnorton42A tag cloud is a name for a collection of keywords that are displayed as a big block of text. Usually the most commonly occurring keyword is the largest, and the least commonly occurring keyword is the smallest. Tag clouds are a neat way of allowing your users to navigate your content in a different way, simply be letting them look over the cloud and linking each keyword to sections of your site that contain that word.
Creating A Custom Page Template In Wordpress
Mon, 10/20/2008 - 08:20 | by philipnorton42There is an easy way to create a custom page for a particular page using Wordpress that doesn't involve adding custom page ID checking code. This might be useful if you want to remove certain aspects of the theme (like a side menu) just for that page. The way this is done is by using the Template Name tag in the following manner.