Trying to find the view that generated a given page, I was frustrated because only one of a view's paths is listed on admin/build/views. The view in question had several page displays and of course the one I was looking for wasn't the one that got listed.

This patch simply goes through all the view's handlers and gets the path for each one, displaying them separated by commas.

Comments

merlinofchaos’s picture

Note that on the edit view page, all of them are listed in the quick links at the top. I didn't implement something like this because I was concerned about space.

merlinofchaos’s picture

Status: Needs review » Needs work

I've softened my stance on this one, actually, but this patch no longer applies.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new1.22 KB

Here is a rerole, and fixing of some minor code style issues.

It works well here, with 3 page links.

PS: Why does admin.inc has another line ending then the rest of views?

dagmar’s picture

Version: 6.x-2.1 » 6.x-3.x-dev
StatusFileSize
new1.42 KB

Small fix.

Removed ; after }

  };
merlinofchaos’s picture

I think this needs to check to see if multiple displays contain the same path.

dagmar’s picture

StatusFileSize
new1.44 KB

I have reduce the duplicated paths, it seems to be working fine.

merlinofchaos’s picture

Status: Needs review » Fixed

Committed to 3.x for both 6.x and 7.x

Status: Fixed » Closed (fixed)

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