drupal

How to Disable Teasers in Drupal

roland's picture

I don't quite like teasers because your posts look funny. Especially if you have images or anything else meaningful. So, how do you disable the darn thing?

I have found only a manual hack so far. Edit node/node.module and find the node_view function. Append right after the funciton declaration $teaser = FALSE;

And voila, this will disable all teasers from your site. The down side to this solution is that next time you upgrade drupal you'll have to manually add this line in again.

Getting Rid of Drupal's Blog module "username's blog"

roland's picture

Edit your page.tpl.php and and modify the title section with the following code to remove the person's blog

<?php if(strpos($title, "'s blog") === false) { if ($title): print '<h2 class="title'. ($tabs ? ' with-tabs' : '') .'">'. $title .'</h2>'; endif; }?>

Drupal Footers

roland's picture

Whoever came up with this solution to clearing is an idiot!!! I have wasted many hours trying to solve the damn problem. The problem is the content statement.

.clear-block:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}

Footers are so difficult to manage with the content: ".", because if you are using blocks for footers you are screwed!!!!! oh,, what a waste.

Just remove the darn line and you'll be fine.

Ranting on CMS and frameworks

roland's picture

At my work place we have to build or rebuild sites for different customers.
Most of the times, our customers want to have a CMS to manage their site, because they want to feel empowered with the ability of modifying content.

Our weapon of choice has been Drupal, and it has worked nicely. Initially, I thought there were limitations to using a CMS, but as I did more research on the various modules, many of my concerns were solved.

One very useful module is CCK. In conjunction with Taxonomy you can make your site behave as you like.

However, business logic is not very easy to manage with a CMS. So, probably you either have to develop your own module or use a php script page and so forth. CMS applications are known to get disorganized. A nightmare could be debugging php scripts that are embedded within pages. A slight change can screw up a whole lot.

Either way, CMS solve most of my problems as of now, but things are a bit boring, especially when you have to do the same thing over and over and over.

Syndicate content