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

how can I add "more" to this php snippet?

i have the following code and i would like to add "more" if there is more then 5 articles in the category.
current code will disply with up to 5 and won't display the "more" link

could someone show me how to add "more" link if there is more then 5 articles? thanks

Printer Friendly Pages and Voting Module

I use the voting module at the top of some of my nodes and use the printer friendly pages to generate the printer friend pages for my nodes. When I click "Printer Friendly Version" the voting module still appears above the node. The settings page for the voting module (admin > settings > voting) offers the option to not display the voting module allowing it to be called from the theme.

This leads me to two questions. How is this done? And if I use the theme to call the voting module would I be able to restrict the voting module from appearing on all nodes?

Help with php

I use the Taxonomy_block.module. I would however want to change it so that only the title is in style h2 and not every link in the block. Anyone who can help me change the code?

$content .= '<div id="taxonomy_block_'. $x .'" class="'. (substr(decbin($x), -1) ? 'flip' : 'flop') .'"><h2>'. l($node->title, 'node/'. $node->nid, array('title'=>t('view all'))) .'</h2>';

Re: Forward.module - This will be a no-brainer for somebody

Hello,

I'm using the forward module on a Drupal 4.6.5 site, but I'd like to restrict the forward links to only show up on 'books' node types. I *think* I've located the code in the forward module that could be customized to do this... but I'm clueless about how to go about changing it.

Custom CSS for individual static pages under the same theme

I want to have custom css files for static pages while under the same theme. Example:

I have two themes, Normal and Other. I have 3 types of pages, they all use the same exact xhtml structure and contain similar content, but their layouts are controlled by their respective css files. We'll call them Article, Review and Biography.

So what I want is normal_article.css, normal_review.css, normal_biography.css, other_articles.css, other_review.css, other_biography.css, basically.

One idea I had was to use Flexinode to create three content types, and modify their individual tpl.php files to load in their specific css files in the header. However, Flexinode wants to inject the text area title name and I don't like that, though I think that can be removed.

At any rate, the way I was going to do this was to pull the theme name (or the absolute folder path of the current theme would be even better) somehow in php and then concatenate a url path to the css file for that page. So in my theme folder, I would have article.css, review.css and biography.css and in page.tpl.php file head node I could assign a specific style node with a dynamically concatenated path as such:

href = "http://www.domain.com/themes/" . $theme_name . "review.css"

Is there a better way to do this? I don't want to use different themes for individual pages because I want them to all be under the same theme umbrella, such that under any given theme, review, article and biography each have their own layout while maintaining the overall look of the theme.

Pages

Subscribe with RSS Subscribe to RSS - Post installation