Needs review
Project:
View Mode Page
Version:
8.x-3.x-dev
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
21 Jul 2017 at 19:15 UTC
Updated:
7 Jul 2022 at 16:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
RAWDESK commentedI've tried to get this to work with a simple path like "project/%" where the default node pages from my project content type are displayed, but they are not recognized by this module and thus the alternative view mode is not applied.
Hence, I even received a WSOD with :
after entering "%" as path.
I am using 8.x-3.1 version.
Switching to https://www.drupal.org/project/ds
Comment #3
paul dudink commentedHi Rawdesk,
The module has been designed as described in the helptext:
I understand how the "/%/" suggests that it could be anywhere in the URL and you could do "/summary/%", however as far as I know the module hasn't been designed for that.
I think this would be a feature request then.
Comment #4
paul dudink commentedChanged the category to "Feature request" instead since this is not a bug. It works as designed (although the helptext seems to suggest otherwise).
Comment #5
asila96 commentedI had a similar scenario; I needed URLs like this to work: /prefix1/prefix2/%
Here is a patch that accomplishes that.
Note, you will need to enter your pattern as /prefix1/prefix2% (skipping the slash before %); otherwise you will end up with double slashes in the URL. There is probably a way to prevent that from happening, but I haven't found it yet, and this solution works for me.