Description
I have four books in my site. They are to be arranged to according to the subject of the book.
Two books belongs to Tutorial section. (That means they are tutorials)
Other two books are about Performance (This will deal with how to perform an act etc)
I want two separate blocks to view these books with heading Tutorials and Practice. Under Tutorials, two books dealing with learning will be listed and other two books will be under the heading "Practice"
I would like to use two separate blocks (one for tutorial and other one for Practice) and those blocks to be displayed one in left side (Tutorial) and other in right side (Practice).
How can I do that?
I am a newbie and don't know coding.
Regards,
-S-

Comments
Use Views
Hi Sunil,
Your solution is views. Before doing this, I would suggest attach a taxonomy term to each book, using cck taxonomy, which will be from a vocabulary which you populate with 'Tutorials' and 'Practice' terms. Now, respectively attach each term to the book. Now, you can create a view of the books with cck taxonomy as a filter.
Mukesh
Cheers,
Mukesh Agarwal
www.innoraft.com
cck_taxonomy?
why cck taxonomy? I just looked at the description of cck taxonomy project as I was not aware of it. Is there a reason for which you are suggesting cck taxonomy and not plain old taxonomy.
Dipen Chaudhary
http://dipenchaudhary.com
http://playdrupal.com
Dipen Chaudhary
Founder, QED42 http://www.qed42.com Drupal development
reduces query
Yes, i agree that even using the taxonomy will work. I prefer cck taxonomy coz it reduces the query size in views. If you use taxonomy and put a filter as we mentioned term = 'tutorials', then there is a join with taxonomy tables; while if u use cck taxonomy then you dont need any join.
I think u r right dipen, its just making it more complex for sunil. Sunil, my apologies for suggesting cck taxonomy, I totally forgot that taxonomy will work without any difficulties.
Mukesh
Cheers,
Mukesh Agarwal
www.innoraft.com
I'm happy if it reduces even
I'm happy if it reduces even 1 join, what happens in case of multiple values? In case of multiple values for a field it would create a separate table for that field and hence there will again be a join. In case of a single value, It would not need to join.
Dipen Chaudhary
http://dipenchaudhary.com
http://playdrupal.com
Dipen Chaudhary
Founder, QED42 http://www.qed42.com Drupal development
Point noted
I guess i wud have realised this once i used it for multiple values. Makes sense, most of the times, i needed it for single taxonomy term so i didnt think otherwise. Thanks !!!
Mukesh
Cheers,
Mukesh Agarwal
www.innoraft.com
Thanks Mukesh. Let me dig
Thanks Mukesh.
Let me dig out views module. Earlier I tried this module and found little difficult to understand. As I said earlier I am a newbie and dont know the programming side.
Thanks and Regards,
-S-
Must be simple
Hi Sunil,
I believe it must be simple coz it doesnt require programming at all. Views is more of a query builder.
Take a look at the views handbook.
Drupal 5: http://drupal.org/node/59157,
Drupal 6: http://drupal.org/node/322506
Its just dealing with the UI correctly :)
Mukesh
Cheers,
Mukesh Agarwal
www.innoraft.com