Skip to content

Commit 37fd063

Browse files
committed
Related a ton of pages. Closes statamic#714.
1 parent f9695e0 commit 37fd063

27 files changed

+176
-71
lines changed

app/ViewModels/Modifiers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ class Modifiers extends ViewModel
88
{
99
public function data(): array
1010
{
11-
return ['title' => ucwords($this->cascade->get('slug')) . ' Modifier'];
11+
return ['title' => ucwords($this->cascade->get('title')) . ' Modifier'];
1212
}
1313
}

content/collections/docs/blueprints.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
---
2-
title: Blueprints
3-
intro: Blueprints are a key component of the content modeling process. Inside a blueprint you define your fields, which field types they'll implement, group them into sections if you desire, and define conditions controlling their visibility. The control panel uses blueprints to render publish forms so you can manage content.
42
id: 54548616-fd6d-44a3-a379-bdf71c492c63
53
blueprint: page
4+
title: Blueprints
5+
intro: 'Blueprints are a key component of the content modeling process. Inside a blueprint you define your fields, which field types they''ll implement, group them into sections if you desire, and define conditions controlling their visibility. The control panel uses blueprints to render publish forms so you can manage content.'
6+
related_entries:
7+
- 2940c834-7062-47a1-957c-88a69e790cbb
8+
- 9a1d8b88-c600-46f2-8727-1deb56f2e87a
69
---
710
## Overview
811

@@ -304,4 +307,4 @@ This hides the field column from entry listings, which can be useful for toggle
304307
listable: hidden
305308
```
306309
307-
This will hide the field from entry listings by default, but still allows a user to toggle visibility using the column selector, and save those column preferences for his/her preferred workflow.
310+
This will hide the field from entry listings by default, but still allows a user to toggle visibility using the column selector, and save those column preferences for his/her preferred workflow.

content/collections/docs/fields.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
---
2-
title: Fields
3-
template: page
4-
intro: While in the control panel all content is managed inside fields. They come in many types, from basic text and select boxes, to rich text fields and image pickers. Fields are grouped into blueprints and fieldsets and can be reused in a number of different ways.
52
id: cb21fabb-65ba-4869-9acd-f6aa2fb58a01
63
blueprint: page
4+
title: Fields
5+
template: page
6+
intro: 'While in the control panel all content is managed inside fields. They come in many types, from basic text and select boxes, to rich text fields and image pickers. Fields are grouped into blueprints and fieldsets and can be reused in a number of different ways.'
7+
related_entries:
8+
- 9a1d8b88-c600-46f2-8727-1deb56f2e87a
9+
- 54548616-fd6d-44a3-a379-bdf71c492c63
10+
- 2940c834-7062-47a1-957c-88a69e790cbb
11+
- 9b2f6f55-5355-4334-b90d-d1236fb58887
712
---
813
## Common Settings
914

@@ -72,4 +77,4 @@ Learn more about configuring Statamic for [multi-site](/multi-site) projects.
7277

7378

7479

75-
[dry]: https://en.wikipedia.org/wiki/Don%27t_repeat_yourself
80+
[dry]: https://en.wikipedia.org/wiki/Don%27t_repeat_yourself

content/collections/docs/fieldsets.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
---
2-
title: Fieldsets
3-
template: page
42
id: 2940c834-7062-47a1-957c-88a69e790cbb
53
blueprint: page
6-
intro: Fieldsets are used to store and organize reusable fields.
4+
title: Fieldsets
5+
template: page
6+
intro: 'Fieldsets are used to store and organize reusable fields.'
7+
related_entries:
8+
- 54548616-fd6d-44a3-a379-bdf71c492c63
9+
- 9a1d8b88-c600-46f2-8727-1deb56f2e87a
710
---
811
## Overview
912

@@ -55,4 +58,4 @@ fields:
5558
5659
As mentioned earlier, a Fieldset is not inherently attached to anything. In order to use a field (or fields) in a fieldset, you'll need to approach it from the Blueprint side.
5760
58-
See the [Reusable Fields](/blueprints#reusable-fields) section of the Blueprint docs for more details.
61+
See the [Reusable Fields](/blueprints#reusable-fields) section of the Blueprint docs for more details.

content/collections/docs/forms.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
2-
title: Forms
3-
template: page
42
id: fdb45b84-3568-437d-84f7-e3c93b6da3e6
53
blueprint: page
6-
intro: Forms are a natural part of the internet experience and a core component of most websites. From a basic "Contact Me" form to a multi-page job application, Statamic can help manage your forms, submissions, and thereby make your life a little bit easier.
4+
title: Forms
5+
template: page
6+
intro: 'Forms are a natural part of the internet experience and a core component of most websites. From a basic "Contact Me" form to a multi-page job application, Statamic can help manage your forms, submissions, and thereby make your life a little bit easier.'
7+
related_entries:
8+
- e4f4f91e-a442-4e15-9e16-3b9880a25522
79
---
810
## Overview
911

@@ -358,5 +360,4 @@ axios.post(form.action, new FormData(form))
358360
```
359361

360362
[tags]: /tags/form
361-
[submissions]: /tags/form-submissions
362-
363+
[submissions]: /tags/form-submissions

content/collections/docs/navigation.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
---
2-
title: Navigation
3-
intro: A nav (or navigation for long) is a hierarchy of links and text nodes that are used to build navs and menus on the frontend of your site. Trust me, you've seen them before. You're looking at one right now, just move your eyeballs up a little bit. Yeah, there it is.
42
id: 2af9fc45-66d0-4ca5-9761-00017076144f
53
blueprint: page
4+
title: Navigation
5+
intro: 'A nav (or navigation for long) is a hierarchy of links and text nodes that are used to build navs and menus on the frontend of your site. Trust me, you''ve seen them before. You''re looking at one right now, just move your eyeballs up a little bit. Yeah, there it is.'
6+
related_entries:
7+
- ed746608-87f9-448f-bf57-051da132fef7
8+
- 485f1703-fc6f-4d0f-94f2-e84ae625e1b7
9+
- 3c34ef5c-781e-4a22-a09b-25f58bdb58a8
10+
- 35c9cd07-f377-4fcb-b02c-72c1925e6fdf
611
---
712
## Overview
813

@@ -101,4 +106,4 @@ In the case of entry reference nav items, any fields you add to the nav blueprin
101106
102107
## Localization
103108
104-
When running a [multi-site](/multi-site) installation, you can have a different tree for each nav. Learn more about [localizing navs](/tips/localizing-navigation).
109+
When running a [multi-site](/multi-site) installation, you can have a different tree for each nav. Learn more about [localizing navs](/tips/localizing-navigation).

content/collections/docs/oauth.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
---
2-
title: OAuth
3-
template: page
42
id: 3dbb14fd-a762-4891-bce1-daf13b8c5981
53
blueprint: page
4+
title: OAuth
5+
template: page
66
pro: true
7+
related_entries:
8+
- 6b691e04-8f28-4eb2-8288-b61433883fe4
79
---
810
## Overview
911

@@ -176,4 +178,4 @@ OAuth::provider('github')->withUser(function ($user) {
176178
});
177179
```
178180

179-
[socialite-providers]: https://socialiteproviders.com/
181+
[socialite-providers]: https://socialiteproviders.com/

content/collections/docs/relationships.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
---
2-
title: Relationships
3-
template: page
4-
intro: |
5-
Content is often related to other content and bits of data. A blog post may have an author and 3 other recommended posts. A product may have a brand and a category. A hot dog may have a bun and some mustard. This pages covers ways to create and take advantage of these types relationships.
62
id: 8ed04215-9f46-4000-bd67-c71b21b67d85
73
blueprint: page
4+
title: Relationships
5+
template: page
6+
intro: 'Content is often related to other content and bits of data. A blog post may have an author and 3 other recommended posts. A product may have a brand and a category. A hot dog may have a bun and some mustard. This pages covers ways to create and take advantage of these types relationships.'
7+
related_entries:
8+
- d0c65546-74f1-4a15-89d5-1562a95ee2c6
9+
- acee879a-c832-449d-a714-c57ea5862717
10+
- 31adcc00-4fbb-4fe9-9b48-401061273096
11+
- 0f8102b9-c948-4264-8cb8-cbfbd0415a04
812
---
913
## Overview
1014

@@ -87,4 +91,4 @@ If you _aren't_ using a relationship fieldtype but _do_ have an ID to fetch data
8791
{{ get_content :from="related_id" }}
8892
<a href="{{ url }}">{{ title }}</a>
8993
{{ /get_content }}
90-
```
94+
```

content/collections/docs/structures.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
---
2+
id: 3c34ef5c-781e-4a22-a09b-25f58bdb58a8
3+
blueprint: page
24
title: Structures
3-
intro: A structure is a hierarchy of items used to build navigation on the front-end of your site and optionally dictate the URL structure for entire collections.
5+
intro: 'A structure is a hierarchy of items used to build navigation on the front-end of your site and optionally dictate the URL structure for entire collections.'
46
template: page
5-
blueprint: page
6-
id: 3c34ef5c-781e-4a22-a09b-25f58bdb58a8
7+
related_entries:
8+
- 2af9fc45-66d0-4ca5-9761-00017076144f
9+
- ed746608-87f9-448f-bf57-051da132fef7
710
---
8-
911
## Overview
1012

1113
Structures are a flexible way to create hierarchies of different items. Statamic 2's "Pages" feature has been replaced by a "Structured Collection" (more on that in a bit).
@@ -94,4 +96,4 @@ Each page may have an optional `children` array which is itself another tree. Yo
9496
- A hardcoded link* should contain a `url` key with either an internal or external URL. The `title` is optional. The GitHub page in the snippet above is an example.
9597
- Text* can just contain a `title`. The Support page above is an example.
9698

97-
_\* Text and link branches are only available in Navs._
99+
_\* Text and link branches are only available in Navs._

content/collections/docs/taxonomies.md

+8-10
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
---
2-
title: Taxonomies
3-
intro: A taxonomy is a system of classifying data around a set of unique characteristics. Scientists have been using this system for years, grouping all living creatures into Kingdoms, Class, Species and so on. Taxonomies are the primary means for grouping content together by topic or a shared attribute.
4-
blueprint: page
52
id: 6a18eac8-6139-419c-9d64-a2c960ccc3cd
3+
blueprint: page
4+
title: Taxonomies
5+
intro: 'A taxonomy is a system of classifying data around a set of unique characteristics. Scientists have been using this system for years, grouping all living creatures into Kingdoms, Class, Species and so on. Taxonomies are the primary means for grouping content together by topic or a shared attribute.'
6+
related_entries:
7+
- 7202c698-942a-4dc0-b006-b982784efb03
8+
- ba832b71-a567-491c-b1a3-3b3fae214703
9+
- 3f5506d6-03e0-4fcf-b4e8-334c48d51f81
610
---
711
## Overview
812

@@ -155,10 +159,4 @@ When on a [term route](#routing), you can list the entries by using an `entries`
155159
{{ /results }}
156160
</ul>
157161
{{ /entries }}
158-
```
159-
160-
## Related Reading
161-
162-
- A fundamental understanding of [collections](/collections) is pretty important.
163-
- The [taxonomy tag](/tags/taxonomy) can come in handy when you're not on taxonomy routes.
164-
- Prefer writing in your code editor instead of the control panel? You probably want to know how to [manage taxonomies by hand](/tips/taxonomies-by-hand)
162+
```

content/collections/docs/users.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
---
2-
title: Users
3-
intro: Users are the member accounts to your site or application. What a user can do with their account is up to you. They could have limited or full access to the Control Panel, a login-only area of the front-end, or even something more custom by tapping into Laravel.
4-
template: page
52
id: 6b691e04-8f28-4eb2-8288-b61433883fe4
63
blueprint: page
4+
title: Users
5+
intro: 'Users are the member accounts to your site or application. What a user can do with their account is up to you. They could have limited or full access to the Control Panel, a login-only area of the front-end, or even something more custom by tapping into Laravel.'
6+
template: page
77
pro: true
8+
related_entries:
9+
- 878f0dd7-2d31-479c-b58d-bc60685fa7d2
10+
- 748f88ce-85f6-491b-8e9c-fa2b1895be31
11+
- 4c3f5caa-a861-4ffd-a856-1692cafeb870
12+
- 1ee69ba0-2fa4-4155-9b8d-82536ce95f99
13+
- 55993382-c928-48d0-8559-c88b226d4657
814
---
915
## Overview
1016

@@ -165,4 +171,4 @@ While users are stored in files by default — like everything else in Statamic
165171

166172
In addition to conventional user authentication, Statamic also provides a simple, convenient way to authenticate with OAuth providers through [Laravel Socialite](https://github.com/laravel/socialite). Socialite currently supports authentication with Facebook, Twitter, LinkedIn, Google, GitHub, GitLab and Bitbucket, while dozens of additional providers are available though [third-party Socialite Providers](https://socialiteproviders.netlify.com/).
167173

168-
Learn how to [configure OAuth](/oauth) on your site.
174+
Learn how to [configure OAuth](/oauth) on your site.

content/collections/docs/views.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
---
2+
id: 74c47654-8c47-49b1-a616-ed940ce19977
3+
blueprint: page
24
title: Views
3-
intro: Views contain HTML, have access to your data, and are used to render the front-end of your site. Layouts, templates, and partials are all different types of views.
5+
intro: 'Views contain HTML, have access to your data, and are used to render the front-end of your site. Layouts, templates, and partials are all different types of views.'
46
template: page
5-
blueprint: page
6-
id: 74c47654-8c47-49b1-a616-ed940ce19977
7+
related_entries:
8+
- dcf80ee6-209e-45aa-af42-46bbe01996e2
9+
- fbf59081-ba24-4e82-b011-b687be228c89
10+
- c7816387-ebc4-4204-b5f2-8e7073a4db8b
11+
- 5e848460-9bbc-449e-8edd-182d918163ff
12+
- 3d5efc5c-17b1-480b-bb77-53faf3d9552c
713
---
814
## Overview
915
Views contain the HTML served by the frontend of your site and are stored in the `resources/views` directory. A simple view might look something like this (but should it?):
@@ -191,11 +197,4 @@ resources/views/
191197
index.antlers.html
192198
show.antlers.html
193199
layout.antlers.html
194-
```
195-
196-
## Additional Reading
197-
198-
- If you want to learn more about how data gets into your view, check out [The Cascade](/cascade)
199-
- If you'd like to manipulate your data _before_ it arrives in your view, check out [View Models](/view-models).
200-
- If you want to use a third-party template engine (like Twig), check out [Other Template Engines](/template-engines).
201-
- If you want to fetch data from Laravel or do other more programmery-things, you'll want to do that from a [Controller](/controllers).
200+
```

content/collections/modifiers/ampersand_list.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ modifier_types:
55
- array
66
- markup
77
title: 'Ampersand List'
8+
related_entries:
9+
- d8a8568c-bb93-4e84-8d30-e527b3b02876
10+
- 6866c25b-1266-4908-8325-dce4e5146f5b
11+
- eed4c5bc-0923-4f54-ad37-ca9a3384e1e0
12+
- 9dfc5020-3d14-4774-a1f6-d82d051cb964
813
---
914
Turn a simple array into a comma delimited string with a friendly little ampersand between the last two items.
1015

@@ -21,4 +26,4 @@ fruits:
2126

2227
```html
2328
apples, bananas & jerky
24-
```
29+
```

content/collections/modifiers/days_ago.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ modifier_types:
55
- date
66
parse_content: true
77
title: 'Days Ago'
8+
related_entries:
9+
- e73f1574-732e-4a74-be47-37e1fddb05d6
10+
- 603701ba-5da7-4ec8-abe5-5bc9fe6861ea
11+
- 06027289-825e-4205-bd3a-f375e26ab81e
12+
- 7ba53a64-0266-4752-af5b-282a40dd11fa
13+
- 6ebb6c28-d1f3-4362-92a0-8a16b5c9cd51
14+
- 6fcbfa5c-854e-4541-9955-505eca0d6bf7
15+
- 811c1cf5-797f-4e77-af92-fde6c03e96d2
16+
- 40578328-3288-4c54-a475-8afad19a37e6
817
---
918
Returns the number of days since a given date variable. Statamic will attempt to parse any string as a date, but try to keep it in the least ambiguous date format possible.
1019

@@ -20,4 +29,4 @@ date: December 25 2021
2029

2130
```output
2231
6
23-
```
32+
```

content/collections/modifiers/hours_ago.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ modifier_types:
55
- date
66
parse_content: true
77
title: 'Hours Ago'
8+
related_entries:
9+
- e73f1574-732e-4a74-be47-37e1fddb05d6
10+
- 603701ba-5da7-4ec8-abe5-5bc9fe6861ea
11+
- 06027289-825e-4205-bd3a-f375e26ab81e
12+
- 7ba53a64-0266-4752-af5b-282a40dd11fa
13+
- 6fcbfa5c-854e-4541-9955-505eca0d6bf7
14+
- 811c1cf5-797f-4e77-af92-fde6c03e96d2
815
---
916
Returns the number of hours since a given date variable. Statamic will attempt to parse any string as a date, but try to keep it in the least ambiguous date format possible.
1017

@@ -20,4 +27,4 @@ date: October 1 2015
2027

2128
```html
2229
{{ test_date | hours_ago }}
23-
```
30+
```

content/collections/modifiers/list.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ modifier_types:
55
- array
66
- markup
77
title: List
8+
related_entries:
9+
- 6866c25b-1266-4908-8325-dce4e5146f5b
10+
- eed4c5bc-0923-4f54-ad37-ca9a3384e1e0
11+
- cbab1bb5-302e-499d-badb-f154dbae751d
12+
- 9dfc5020-3d14-4774-a1f6-d82d051cb964
813
---
914
Turn a simple array into a comma delimited list with no comma after the last item.
1015

@@ -21,4 +26,4 @@ things:
2126

2227
```html
2328
batman, zombies, scrunchies
24-
```
29+
```

content/collections/modifiers/minutes_ago.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ modifier_types:
66
parse_content: true
77
date: 'October 1 2015 8:30:am'
88
title: 'Minutes Ago'
9+
related_entries:
10+
- e73f1574-732e-4a74-be47-37e1fddb05d6
11+
- 603701ba-5da7-4ec8-abe5-5bc9fe6861ea
12+
- 7ba53a64-0266-4752-af5b-282a40dd11fa
13+
- 6fcbfa5c-854e-4541-9955-505eca0d6bf7
14+
- 6ebb6c28-d1f3-4362-92a0-8a16b5c9cd51
15+
- 811c1cf5-797f-4e77-af92-fde6c03e96d2
916
---
1017
Returns the number of minutes since a given date variable. Statamic will attempt to parse any string as a date, but try to keep it in the least ambiguous date format possible.
1118

@@ -21,4 +28,4 @@ date: October 1 2015 8:30:am
2128

2229
```html
2330
{{ test_date | minutes_ago }}
24-
```
31+
```

0 commit comments

Comments
 (0)