How do I - manipulate data from a new content type

Hi All,

New to drupal and looking to move my site to be entirely drupal. however I need to know if there is a way to manipulate data from fields create with CCK.

Say I create a new content type and has the date field, can I work out and display how many days or years from that date to current?
Or if another field is say job hours and the user enters the number of hours, can I total and play with the total of those hours (ie. I used to use jquery to create pie graphs etc)?

I'm good with php and sql but not too familiar with drupal.

Thanks,

Shags

Frustration with color.module across different themes

Whenever I modify anything with the color module, I lose nearly all formatting on the page. I don't get error messages, but the background goes completely white and text defaults to system colors (black, blue for links, purple for clicked links, etc.)

I have tried this with the Bartik and Corolla themes with the same result every time. I do not have any caches enabled, nor am I aggregating CSS and JS files. (Note: When I tried to aggregate CSS files, I did get the errors similar to this.

Beleaguered by errors after upgrade to 7

Since upgrading manually from a fresh install of 6.2 into a hosted environs, my 7 install tosses a horde of warnings and notices about undefined offsets and undefined indexes. I find various discussions of them after goggling some particular errors, but no resolutions. But it seems that 7 is faulty? Is that a correct assessment or is my install kaflooey and I should start over? Here's a typical example -- these errors appear after selecting biblio menu item (these 2 lines appear for each bib record -- style = Chicago. Errors change or disappear depending on style choice:

How to apply theme_menu_link ONLY to main-menu?

Hi,

I've started to use Drupal in less than a month and I'm trying to develop a theme for my website. I've search a lot for this problem and I can't get it solved.

So here's my problem: I have this two functions on template.php, but I want them to be used on my main-menu ONLY. I was hoping that it would be something like defining it as theme_menu_link__menu-menu(), but obviously this doesn't work on PHP.

Can someone shine some light on this?

Here is my code:

Generate paginated form with #ajax?

Hey guys.

I'm busy working with select box with #ajax. When select box element is selected, #ajax callback function generates a paginated list using '->extend('PagerDefault')'. It all works like I want, except links of pager are all wrong pointing to 'http://localhost/system/ajax?page=1', which is not right.

I've been struggling for 2 days now and can't get this to work.
Nor can I find any help that makes sense.

Can someone please point me in a right direction.

Thanks.

J.

Custom field.api widget?

I am working on an e-commerce site selling motorcycle parts. Each part is a node but I am having problems being able to define the specific bikes that the part fits. The part fits multiple makes/models, each for specific years. Different parts will fit the same model for different years. I believe I need a new field type to group a start year, end, year, make and model together so that I can have multiple models with multiple start and end years for one part. I suppose it could work with start and end years or with a multi-select year dropdown for each model added.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x