phenaproxima / starshot-prototype

Prototype of a new kind of Drupal, based on recipes and loaded up with contrib's best modules and themes. Not a fork or a distribution.
https://drupal.org/starshot
118 stars 46 forks source link

Node paths falsely imply hackable URLs #133

Open TravisCarden opened 4 months ago

TravisCarden commented 4 months ago

The URL alias patterns for events, blog posts, and webform imply "hackability" by their use of directory separators (/blog/[node:created:html_month]/[node:title], /event/[node:field_date_time:value-custom:Y]/[node:title], and /form/[node:title]). These give the impression that there are pages at /event and /event/2024, for example. We should either make the URLs truly hackable (i.e., add Views with the appropriate contextual filters) or remove the directory separators from the URLs (e.g., /blog-[node:created:html_month]-[node:title]). c.f. related https://github.com/phenaproxima/starshot-prototype/issues/133.

phenaproxima commented 4 months ago

We should either make the URLs truly hackable (i.e., add Views with the appropriate contextual filters) or remove the directory separators from the URLs

I'm wondering what most authors who want a blog site would reasonably expect.

I lean towards making these URLs truly hackable, thus providing a "blog archive" functionality right out of the box. I feel like that's what one would expect from a blog site, and a recipe designed to set up a blog. What do you think? Want to file a PR for that?

boulaffasae commented 4 months ago

+1 for

We should either make the URLs truly hackable (i.e., add Views with the appropriate contextual filters) or remove the directory separators from the URLs

phenaproxima commented 4 months ago

I think this pretty much closes #105, then. If we're going to make the URLs hackable, then the blog view will be needed!