Allow structures to have a "homepage" #8390
Replies: 4 comments 6 replies
-
@leevigraham Setting the slug of a structure entry to |
Beta Was this translation helpful? Give feedback.
-
OK, then +1 for being able to set a homepage (slug = |
Beta Was this translation helpful? Give feedback.
-
I have shared these two somewhat relevant ideas: #9736, #9783. In short, I'm asking for a way to relate an entry to a section or/and a way to assign fields to a section as a whole. This way a section (any section, not only structures) could even have multiple homepages! There are of course UI details that should be investigated to make this intuitive. |
Beta Was this translation helpful? Give feedback.
-
Description
Let's say I have a section of my site called "Services" with urls that look like:
and I want to limit editing of these entries to a particular user / group.
There's two ways I could go about this:
Option 1. Create a new structure
I could create a new structure called "Services" with the
Entry URL Format
set to{slug}
. A parent page would need to be created calledServices
with theuri
:/services
. This would list all the services and probably be a different entry typeServices Index
. Then authors could publish sub pages below 'Services' with a different entry typeService Detail
.The issue with this approach is that an author could publish an entry with any URL becuase they are not limited to just
/services
as defined by the 'Entry URL format' structure setting.Option 2: Structure + Single
An alternative is to create a single for 'Services' with a locked down url and a structure for the Service details. This allows for fine grained permissions on both the index and the structure. The only downside is that the author needs to look in Singles to change the index, and 'Services' structure to change the entries. Using Expanded Singles makes this a bit easier but then there are two 'Services' links in the sidebar.
Option 3: Allow an entry to be the 'homepage' for a structure.
I'm thinking adding an option to structure entries for 'This is for the structure homepage' could work here. If the checkbox was clicked the uri for the structure would be set to
/
instead of the slug.I'm already hacking something similar with a 'Site Structure' by setting the slug for one entry to
__home__
.Beta Was this translation helpful? Give feedback.
All reactions