Drupal is up and running but how do I ...?

Captcha module doesn't seem to work? (4.5.0)

I'm using Drupal 4.5.0, and Captcha 4.5.0

phpinfo shows that GD Support is enabled.

I installed it by moving it into /modules/captcha/, enabling it under modules, then setting it's tmp directory to a directory which did exist. permissions were first set at 755 then 777.

Unfortunately, it does not seem to be creating the actual images - has anyone got any ideas? I must have done something wrong.

i18n Problem with multi-language nodes

I have a problem. I use URL-rewriting in i18n.

I created nodes with path aliases with language codes (eg: en/, hu/ et/)

When I change langauge in the "language block", the right node content appears, BUT in the "langauge block" the FIRST LANGUAGE REMAINS ACTIVE. So that it is impossible to change back to the first language after selecting the second or third one.

This does not happen in the original drupal "menus" (eg: login, create content, etc). There it works perfectly.

remove "news aggregator" link from navigation block

is it possibe to remove the "news aggregator" link in the navigation block and add a link to it (the aggregator) in a custom block instead.

Blocks inside Nodes?

Is there a way to include certain blocks "inside" the content of a given node? The drupal web site appears to have a few blocks at the beginning of the home page. I'm looking at the blue block with the pdf brochure, the orange block describing "Drupal.org is the official website of Drupal", and the light-gray box under that titled "Drupal 4.5.0 released". How are these defined in the content for the Drupal home page so they only show up on that page and are not part of the sidebars? Or does the Drupal home page consist of hard-coded html in it's theme template?

Page Module for version 4.5

I'd like to add some static pages to my Drupal powered website that have corresponding links in the Primary links located in the top of the page. It would also be nice if one could optionally add links to static pages to the Secondary links menu. Finally, it would be nice if I could create a hierarchy of several static pages. For example: lets say I wanted to add a page called "Team" that would contain a list of management team members.

phptemplate and node types

I've been messing with phptemplate the last few days. I'm wondering if there's a way I can set up conditionals in the PHP so I can display different things (text or images) depending on the node.

An example:

In page.tpl.php, the following code is responsible for inclusion of the node title:
<h2 class="content-title"><?php print $title ?></h2>

Let's say I have a category called "Music" and a recent post in that category with the title "New CD from Sloan." In the stock phptemplate package, the $title variable represents the name of a category ("Music") on the category page and the title of a post ("New CD from Sloan") in the blog entry.

Category and entry title are two very different types of information, so I want a way to signal to my users that though the node title at each URL occupies the same space on the page and shares the same style, that it signifies something very different in each case.

Thus, I want to help orient my site visitors by prepending a label for the $title variable. That is, I want to display "Category: Music" on the category page and "Entry title: New CD from Sloan" on the blog entry page. (Nevermind, for now, the awkwardness of prepending "Entry title"...)

So, I need a conditional that will test whether the user is looking at the taxonomy or a blog entry, right? Something vaguely like this:

<h2 class="content-title"><?php if ($node == "taxonomy"): ?>Category:<?php endif; ?><?php if ($node == "blog"): ?>Entry title:<?php endif; ?> <?php print $title ?></h2> 

That's not intended to be an example of working code... just an illustration of the kind of thing I'd like to accomplish.
My question is, what would the working code be? I'm reading things in various posts at Drupal.org and elsewhere on the web that there is a way to differentiate node types in this way, but mostly what I've read has been in reference to the xtemplate system, not phptemplate. The latter is much younger, of course, so that might explain the lack of documented answers to this question?

Pages

Subscribe with RSS Subscribe to RSS - Post installation