Limited Teaser list with 'read more'

Hey everybody, I'm working on my first Drupal Site, which can be found here: http://csme.fahim.ca

I am having trouble organizing the "News" and "Events" menu list. I understand that I shouldn't show a menu, but instead, create a suitable 'teaser' list. I wish to show the date of each list item in the list itself, and add a 'view all' link, limiting the number of items to 5, which goes to a page listing all news and event items.

How to create a file upload with filename, description, type, and size?

I'm still struggling with how to create a 2 column list of files with the above fields. In particular I don't know how to auto-compute the file size and put it in the display. I appreciate any help.

Adding a css on a page

I'm trying to load a css file in a page using the drupal_add_css() but I can't do it.
There is the code I'm using:

function itineradog_preprocess_page(&$variables) { 
[...]
  	if (arg(0) == "contact") {		
  		drupal_add_js(base_path().path_to_theme().'/js/contact.js');  		
                drupal_add_css(base_path().path_to_theme().'/css/contact.css');
  		$variables['styles'] = drupal_get_css();
  	}
[...]
}

The javascript file is properly added but the css don't.
What is wrong?

Volunteer help for missions orgnanization site

I started to work with a missions organization on developing a site used for internal communication between their IT people, and unfortunately didn't have the time available I though I would have to work on the site. I'm looking for a Drupal dev who would be willing to donate some time to do the site for them. I will manage the project and put in some time helping when I can, but you would be doing the bulk of the work.

Custom pages

Ok, I think I totally lost it, I can create a custom page by using the CHAOS tools and then creating my template page--contact.tpl.php.

Or I can use the standard content type and then override a page node by doing node--page.tpl.php.

But the problem with the first one is that i'm overriding the entire page.tpl.php, what I don't want, because it's too much trouble if I need to change something.

The problem with the second solutions is that I have multiple pages, and there is no way of doing node--page-contact.tpl.php.

How to add a footer to Zen (brand new to CSS)??

Hello. I have been trying for hours to add a footer to my zen theme, and I just can't figure it out! I have already added a nice custom header, and my footer is the same width as header. I just need to find where in the css I change something to add the footer (image is stored in my images folder for my theme). I have tried to edit the page.css and page-backgrounds.css but I don't know what to enter. Thanks!

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x