Timeline for how do display 404 while the url didn't exits
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 19, 2012 at 7:40 | history | edited | avpaderno♦ | CC BY-SA 3.0 |
added 214 characters in body
|
Oct 31, 2012 at 3:59 | comment | added | bluesky_still | @magtak Oct 26 at 7:07 says really what I need... | |
Oct 31, 2012 at 3:56 | vote | accept | bluesky_still | ||
Oct 31, 2012 at 3:56 | |||||
Oct 31, 2012 at 3:54 | comment | added | bluesky_still | Thanks give some clues ,but in my case ,we do not need Content: Nid (have no nid)for that view page,if it's a wrong url,just show 404 | |
Oct 29, 2012 at 9:12 | comment | added | user5005 | True. Fair enough then, this solution should cover him :) | |
Oct 26, 2012 at 14:41 | comment | added | avpaderno♦ | I could not use two displays, as with example.com/articles/mine I used "Content: Author uid" as filter criterion, and in Views 7.x-3, a filter criterion is added to all the displays. With example.com/articles/19, there is no need of such criterion. The OP didn't say he doesn't want to use a new view, though. | |
Oct 26, 2012 at 7:07 | comment | added | user5005 | You created 2 views, not 2 displays in a single view such as the OP asked, right? What he asks (I believe) is how to have 3 displays in one view and with [placeholder], [placeholder/versionone], [placeholder/versiontwo] URLs respectively and get a 404 on [placeholder/somethingrandom]. The second part of the URL does not seem to be an actual argument such as %nid. It's just a literal representation within the URL of what the display is meant to provide. :) | |
Oct 25, 2012 at 16:02 | comment | added | avpaderno♦ | The view works because, when no value is given for the contextual filter, it shows all the nodes. | |
Oct 25, 2012 at 16:00 | comment | added | avpaderno♦ | I created a view using the setting I described, and it works. The only difference is that I used articles as path. With example.com/articles, I see all the nodes; with example.com/articles/19, I see that node (when it exists), or the 404 error page (where the node doesn't exist). With example.com/articles/mine I see all articles I created/edited. (This is another view I created.) In the first view, I used articles as URL, not articles/%. | |
Oct 25, 2012 at 13:05 | comment | added | user5005 | I don't think the values in arg(1) are contextual filters. They are simply paths who's arg(0) seems to be the same with the first display's path. If he uses your configuration the nid will never be provided and will result in a 404 page every time. | |
Oct 25, 2012 at 10:04 | history | answered | avpaderno♦ | CC BY-SA 3.0 |