开发者

Better control of views output markup?

开发者 https://www.devze.com 2022-12-21 09:34 出处:网络
I am developing a website with drupal 6, and using a 960 grid system based theme. I want to create a dynamic thumbnail gallery with Views, and using this jquery effect:

I am developing a website with drupal 6, and using a 960 grid system based theme.

I want to create a dynamic thumbnail gallery with Views, and using this jquery effect:

http://www.queness.com/post/590/jquery-thumbnail-with-zoomin开发者_如何学Pythong-image-and-fading-caption-tutorial

I have some experience with views, but I am by not means an expert... I am facing two problems here:

  • How to make the views html output conform to my 960 grid system theme (that means that each object in the views output should have a grid-x class, at the very least)
  • How to adapt the views html output to the DOM required by the jquery effect I want to use.

So what I want is basically more control over the output of Views. Right now I can only get html lists or tables. Is there anyway to use a more customized DOM and put some kind of placeholders for fields in it?

Thank you for reading

O.


You can define your own templates, that Views will use instead of its default ones.

In those template, you can use almost any kind of HTML markup that you possibily can imagine -- which means you'll be having a really great level of control over the output.

For more informations, you can start looking at this question and its answers : Drupal 6: How to quickly theme a view ?.

And a couple more links that might be useful :

  • Drupal 6 theme guide
  • Overriding themable output
  • Views help index
0

精彩评论

暂无评论...
验证码 换一张
取 消