Solved

how to build a view with views?

Posted on 2010-11-12
3
209 Views
Last Modified: 2012-05-10
hi

i am new to drupal and using the views module.

i want to make an home page view that has the latest 5 articles, 5latest books and so on.

i have my html and jquery to display them in a separate html page.

so i want to get the latest of each category and use my own html for that.


how can i achieve that?

best regards

ron
0
Comment
Question by:derrida
  • 2
3 Comments
 
LVL 17

Expert Comment

by:Thomas4019
ID: 34121773
Views is complicated a little difficult to learn. You're simply going to put about 30 minutes to learn it. I would google "views tutorial". There are some good podcasts out there.

Then you could use this, http://pras.net.np/blogs/styling-views-using-output-rewrite, to have full control of the HTML output.
0
 
LVL 1

Author Comment

by:derrida
ID: 34121963
hi

thanks for the answer.

i have already used the views several time but i have problem to take the last records from each category.

is that so complicated?

i know how to do it with php itself but not with views.
0
 
LVL 17

Accepted Solution

by:
Thomas4019 earned 500 total points
ID: 34122026
Hmm, that is a little difficult. You might have to make a view for each category and use Panels to glue them together. Or you could change your requirements and simply show the 20 latest of all the types and not care about each type.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is for those that are having major problems with users upload files such as pictures to their profile. The solution is simple and has to do with correcting the directory paths. With some experimenting and testing i got it fixed. Note…
RTL (right to left) web applications aiming for audiences speaking languages like Hebrew or Arabic, are generally more complicated than the same applications aiming for audiences speaking Latin based languages. The main difference lies of course …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question