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

MySQL in <code> </code>

I tried to place this into the book module:

<code>SELECT *
FROM nieuws
WHERE catID = '6'
AND publicatieDatum >= '08-12-2006'
ORDER BY titel ASC</code>

I want to show the query to my visitors. However, I didn't succeed to post the form. I 'solved' it by making the query nonvalid, like:

<code>SELECT *
VROM nieuws
WHERE catID = '6'
AND publicatieDatum >= '08-12-2006'
ORDER BY titel ASC</code>

This isn't very nice. Can I solve the problem in some way or another?

Create a custom node-story.tpl.php

I am trying to create a custom template for story nodes, because I want to include location and event date fields in my stories but the formating on these fields is awful.

I can create a custom template that adds location and date fields formated to how I want but I cannot show just the story content on its own. The $content variable includes the location and event fields by default.

What is the variable I need to inlcude in my template just to show the body of a node?

Mark

Three questoins regarding content

Hello,

I have now the layout as i want it.

Now i have three questions :

1) How can i make a text with a image on a place that i want it.
2) In the blog there is a line who makes the articles . How can i get rid of that line.
3) how can i make a menu which is made of categories and terms. Where as you click in a categorie all the terms can be seen.

Regards,

Roelof

Display icons for attachments.

hello

I would really appreciate is someone can throw ideas for this.

I have some nodes on my website which have attachments. When I create Tabular view I am displaying Title & attachments. But the attachments have same name as the title so its waste of space. So what I want is to display a icon instead of file name. it will be a 64X64 icon, clicking on which user can download the attachment.

Also if possible. I would like to have different icons for differnt file types. Eg: PDF, JPG, TXT etc. I want it in my node as well as views

Multi-site install

I know there are several threads on multi-site install, but I still don't get it with v5rc1. I'm a bit confused because this version has automated the setup and none of the previous posts seem to be completely relevant when it comes to initializing new tables, etc.

The setup I have/want is one Drupal database with tables for each site that use different table name prefixes. I point my domains to the Drupal dir and it should use the settings.php file in a directory under sites, named for the domain.

I have two sites set up now like that but I did it by accident, I think. When I did the original new install, everything worked like it should.. I entered the database name, etc. and where it asked for a database prefix I thought it was asking for what I wanted as a prefix for the SECOND site. When I found out that it used the prefix in the settings.php for the default site, I created a dir under sites in the name of the second site and copied the default settings file there. Then I renamed the prefix in the default site file, and I have two sites (like I want) using the same db but the tables have different prefixes (again, like I want).

The problem is adding additional sites. I've created the directory for a third site under sites and put a settings.php file in it with a new table prefix, but the browser comes back with multiple 'table doesn't exist' errors, so obviously I need to create the tables. Since the scripts automatically created the new tables when I changed the default settings file, I assumed (I know, I know) that it would also do it with a new table prefix in the additional site directory settings file, but obviously not.

how to make the site hierarchal ?

hi, till now i was making all pages like mysite.com/first_page and mysite.com/seccond_page etc i.e there was no hierarchy but now I want to make it like mysite.com/microsoft/redmond and mysite.com/microsoft/windows etc. How can I do this :)

Regards

Pages

Subscribe with RSS Subscribe to RSS - Post installation