This forum is for assistance with theme development.

Excited about using drupal but questions about changing naming conventions used in drupal

Hi I have put this in theme dev as it seemed to fit best.
I would like to use drupal as the core to a message board i want to setup.
Funnily enough the blog module with threaded posts works almost exactly how i want it to and most of the stuff can be hacked around in the theme php stuff and i have been doing this so far pretty well.

i would like to know if i can change some bits to fit how i want drupal to work for me.

1. i want to change the word 'node' for 'posts' or 'board' in urls and links on page

How is my new theme

hi all
how is my new drupal theme?
i modified the k2 theme
http://ezan.vakti.com

pls vote.

Fixed Width Sites Taking Over the World -- bad sign IMHO

I'm frustrated in the trend toward fixed width sites. I actually feel it has philosophical implications. I feel it communicates to the end user that the site developer is controlling and knows exactly how to present the experience to the end-user. I think content heavy activist sites are where fluid-width designs can and should flourish.

Can anybody point to examples of great implimentations of fluid-template Drupal sites.

I'm pleased that Garland is fluid and hope it remains the default theme for Drupal, but I fear that the trends are going speedily towards fixed-width.

Page repeats itself

I've been coding a module and I needed something to display on it's own page. Basically, I need a page that would show the title and link of a node the user created. So, I made a page and the link show up fine. But when I click on that link, which is just "node/20," the node displays (minus attachments) and then the entire page (header and all) displays again right under it.

So, the page duplicates itself. Here is the code I added for the page:

Check if node count is multiple of 3

Hi,

I'd like to add a class to the node DIV in my node.tpl if it's the 3rd node to be printed (or a multiple or 3).

This is so I can apply a 'margin-right: 0;' to the far right node on each row.

Can anyone help with this?

Thanks,
Fiasst

theming views ... add a limit for nodes per group?

Hello!

I use theme wizzard to group the views output by taxonomy terms (as diecribed here: http://drupal.org/node/42603 ).
Now I want to add a while loop to limit the output of nodes per Term (group) (Not for the nodes at all, that could be configured in the view itself).

But I dont understand the function, so I don't really know where to add the loop.

here is the code of the function:
<?php
/* This function goes in your template.php file
*/
function phptemplate_views_view_list_aktuelles_6($view, $nodes, $type) {
$fields = _views_get_fields();

$taken = array();

// Group our nodes
$set = array();
foreach ($nodes as $node) {
$set[$node->term_data_name][] = $node;
}

// Set up the fields in nicely named chunks.
foreach ($view->field as $id => $field) {
$field_name = $field['field'];
if (isset($taken[$field_name])) {
$field_name = $field['queryname'];
}
$taken[$field_name] = true;
$field_names[$id] = $field_name;
}

// Set up some variables that won't change.
$base_vars = array(
'view' => $view,
'view_type' => $type,
);

$output = '';
foreach ($set as $label => $nodes) {
$items = array();
foreach ($nodes as $i => $node) {
$vars = $base_vars;
$vars['node'] = $node;
$vars['count'] = $i;
$vars['stripe'] = $i % 2 ? 'even' : 'odd';

Pages

Subscribe with RSS Subscribe to RSS - Theme development