Replacing ?page= with a Node Title

I have my site up and running great with Drupal 7 (pencilpapercomputer.com) but I'm having some trouble figuring out how to modify the page navigation links. The current page navigation has Previous/Next links that display like

pencilpapercomputer.com/blog?page=1,

but I want page navigation links to display like

pencilpapercomputer.com/blog/insert-title-here.

Converting a value in CCK field

I am really stumped, if I make an entry for 100 litres I need need a way for it to be converted to US Gallons, and then appended along side the litre value, or vice versa. e.g. "100L | 26.42 Gal" should be the result.

How to add 'Delete' button using Ajax to a form themed as a table

Hi,
I've created a form and themed it as a table using D7 form API.
I want to add a 'delete' button to each row that will remove the row on which the button was clicked (via Ajax - w/o page refresh).

My problem is: how to determine inside the Ajax callback function which row was clicked?
Each row had a unique id, each button has a unique name and id, I can see in the $form_state that there is an entry called: "_triggering_element_name" which contains the name of the clicked button, but somehow it doesn't seem to be a the correct way to do it...

some code:

// form build
function form_build {
...
for ($i ... ) {
$form['items']["delete$i"] = array(
'#type' => 'submit',
'#name' => "remove$i",
'#value' => t('Delete'),
'#submit' => array('myform_del_item'),
'#ajax' => array(
'callback' => 'mymodule_form_callback_items',
'wrapper' => 'item-div',
'effect' => 'fade',
'progress' => array('type' => 'none'),
),
);
}
}

/**
* only select the portion of the form to be updated.
*/
function mymodule_form_callback_items($form, $form_state) {
return $form['items'];
}

/**
* Submit handler for the "delete" button.
*/
function myform_del_item($form, &$form_state) {
// 1. get row id / button id ???
// 2. delete row

How to use #theme to form elements?

Hi, I cannot find any tutorial how to use #theme and #theme_wrappers keys of Form API. I found only explanations how to use theme functions assigned to whole form. Can I send some additional arguments to theme functions? In particular,
I want to create table inside fieldset.
I tried this:

Forum and Views Module problems

Hi all,
Figured it out..... refresh the db. just learning.
Tony

most used tag in block

Hi
I m using drupal 7
I want to make a block which show most used tag. Also most recent tag in another block. Is is possible. If possible then plz show me the way

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x