url to content type

i25 - June 5, 2009 - 06:43

This is a simple question. I need a url that would point to all instances of a specific content type. For instance, I have a content type called gallery. How would I create a URL or page that would list all galleries? Thanks.

=-=

VM - June 5, 2009 - 06:45

you either use taxonomy and tag the galleries (depending on how they are built) or you use the views.module to create a list of content.

The only other option for creating lists is to write your own database query to extract data from the database.

I think I can create a view

i25 - June 5, 2009 - 07:23

I think I can create a view for this. Is there a setting in the view to choose the pages that the view will show on? Thanks.

Use blocks

pandakate - June 5, 2009 - 07:41

Once you create the view, you will need to add displays to it. A block is a segment of content that is intended to be shown on pages. Simply select "block" as display type, add the display and save the view.

Then go to manage blocks. You'll find your newly-created block there - put it into a particular page region, then click configure. You'll get to tell it where you want the block displayed.

Good luck!

Ok, I created some views with

i25 - June 6, 2009 - 05:31

Ok,
I created some views with several displays a few days ago, and I was able to add it to different blocks in Admin >>> Site Building >>> Blocks.

However, I've added another view with a couple of displays, and they do not show up in Manage Blocks.

What am I missing?

=-=

VM - June 6, 2009 - 05:34

Are you creating block displays? not all displays show up in block administration. For example, a page display shows up at the path you've given it.

Ahhhh... makes sense. No, it

i25 - June 6, 2009 - 05:46

Ahhhh... makes sense. No, it is not a Block display. It is a Node Content display. How can I control where this is displayed?

=-=

VM - June 6, 2009 - 15:04

I've not used a node content display. Advanced Help module may help explain that. However, if you want a view to be a page, create a page display and set a path on the view. Then you can go to the path and the view will be available on that path.

Not a bad idea. The problem

i25 - June 6, 2009 - 15:39

Pretty good idea. The problem is that this view is used for the teaser image and content, and Items per Page is set to 1.

=-=

VM - June 6, 2009 - 16:22

I can't read your mind to know what your intentions are with the view you created. Care to enlighten?

Sure. The view is supposed to

i25 - June 6, 2009 - 16:36

Sure.
The view is supposed to be a list of gallery teasers. It's supposed show the latest gallery image (one teaser image) for each gallery alon with the text in the gallery body.

Here is a screenshot that may help:
www.mwebdev.com/at/view.jpg

I'm trying to mimic what was posted here: http://blip.tv/file/2185326

Thanks.

=-=

VM - June 6, 2009 - 16:51

My take on that tutorial is based on the idea that galleries will be promoted to the front page. Eaton is using the front page to display the galleries. That said, my uneducated guess is that you would have to use a page display and not the node content display. This will certainly take some fiddling around.

I will play around with the

i25 - June 6, 2009 - 17:09

I will play around with the different approaches. Thanks very much for your help.

Get Content Type

glennr - June 5, 2009 - 07:44

I always use Views so I haven't tried it, but Get Content Type could be all you need.

 
 

Drupal is a registered trademark of Dries Buytaert.