Be nice to have a default view for node types (a) page (b) story. This would help newbies get started with producing their own view for them.

CommentFileSizeAuthor
#7 views-node-path-analysis.patch668 bytesdawehner

Comments

dawehner’s picture

what should this view do?

should the view override node/% or should it be a example for filtering by story/page nodetype?

merlinofchaos’s picture

You might see SimpleViews for this, though I agree that more default views, in general, are not a bad idea. They can start off disabled very easily so they aren't too intrusive, and provide wonderful examples. Patches (or even exports of good views that work with just Drupal core) are welcome!

iantresman’s picture

"should the view override node/% or should it be a example for filtering by story/page nodetype?"

Yes, I would include one of each. As merlinofchaos says, they are disable by default, and aren't intrusive. Hence a good starting point.

merlinofchaos’s picture

Views cannot be used to override node/% -- don't try it. The results are not what people want or expect.

iantresman’s picture

Status: Closed (fixed) » Active

This is the first time I've heard of this... and I did get odd results. Could a warning be displayed if anyone tries this? And/or describes what does happen of someone tries to override node/%

Update: 3 Aug 2010: See also my post and thread "Views: Overriding a node layout" for alternative workarounds.

merlinofchaos’s picture

In theory the fact that Views generates lists of content and node/% is a single piece of content I would think would give people pause. I'd rather simply document it than actually throw up a warning, because there's any NUMBER of pages that would be unhealthy to override and node/% is just the one people try the most often.

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new668 bytes

Here is a analyze patch for this.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to all branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Status: Active » Closed (fixed)