views 2-3, theming unformatted style - getting more control

Ive been playing around with drupal 7 and views over the weekend

Im having trouble in getting some custom theming done with the unformated style
My issue is that I would like to be able to control the exact location of all my fields from the view - at the moment this seems to be controlled by the order in which they are created (though this can be changed, full control is not in one single location)

I've had a look at the api theme for some preprocess functions and have found this one

function mytheme_preprocess_views_view_unformatted(&$vars) {
  $view = $vars['view'];;
  $rows = $vars['rows'];
 // print_r($rows);
  //print_r($view);
  }

The issue here is that the rows variable is just an indexed array with a string output so its impossible to use this directly to modify the order, it also appears that you cant pass $vars['view']; to the tpl using

$vars['temp'] = $vars['view'];

My question is this, Is hook_preprocess_views_view_unformatted the proper location to change the order of my fields - the only way I could do it is to rewrite the $rows fields from using the $views object in the preprocess

customize the link 'Read more'

Hi everyone,

t when you create an article for example, when viewing it with just the link "read more" when you click on read more it calls another page with all the contents of the article in question to understood his comment (this is normal). Here's my concern: I would like that when you click on 'read more' that runs the rest of the article including comments on the same page without reloading the page, so that we can ac view other items from the same page if we place is not too large. Can I have the js code that allows you to do and places him or you one?

Which module for Photoblog?

Hi everyone,

I am working on a blog. Mainly it will be photos with a small comment.

Which module would you recommend for

- Displaying multiple pictures on one page
- Footnotes under the pictures
- Option of guests to vote, share on Facebook, comment

I would appreciate your suggestions.

Thanks a lot and best regards from the Balkan.
Dirk.

How to include a tpl.php file in module?

Hi there,

In a custom module I'm building, i want to include a external php file ...

After viewing the examples, i found something similar in the Javascript example: js_example.module file
but need some help in a few things:

1- The following code is the last block of code in the js_example.module:

Theming Garland

I have been looking around and Googleing about how to insert a semi transparent imae on the background of My Left sidebar without success.

Can you be from any help, or give me a Garland Theming dedicated forum I could go to?

Thanks for your help!

Yann

Drupal 7 Commerce

Anyone who knows a good tutorial for commerce? how to build a shop from scratch?

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x