Streaming live at 10am (PST)

Generate first URL with a collection


#1

Hi,

Today, when we create a collection, it generates a URL. Example:

mydoman.com/mycollection

I´d like to know if It is possible NOT to generate these URL, by making it be generated by a collection. Example:

I create a collection called "Channels". So when I create a Channels item, It generates the URL.

So I create the channel "Soccer" (in the collection "Channels") and this creates the URL:

mydomain.com/soccer

Then I could use the multi-reference link to populate these channels.

Is It possible?


#2

That's what CMS tend to do. They create slugs for tables (collections) and records ("posts") are linked under each table.

domain.extension/table/record-name

And CMS prevent you to change the slug to guaranty that the permalinks (links to records) never breaks.

Wordpress for example propose many variants in the way you can build a URL to a record, but never the simple domain.extension/record-name

Reasons are various but the main one is this would prevent users to give the same name to different records in different tables. For example:

domain.extension/channels/soccer
domain.extension/equipment/soccer
domain.extension/category/soccer

Now, other systems can perfom URL rewriting and display whatever they want in the URL, but that would be counter productive to display the same URL for different pages. Technically possible, but doesn't make a lot of sense. URLS shouldn't be use like titles, even is a "clear URL" (a URL that you can read in human language) is a good practice.


#3