You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build/content-types.md
+28-13Lines changed: 28 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,21 +45,21 @@ The title is an accurate representation of the content within your article. It w
45
45
46
46
#### Section
47
47
48
-
Location: **Sort and display**
48
+
In: **Sort and display** area.
49
49
50
50
An article is published in one section only. Choose the desired section from those available in the list. The default section is defined in the **Default publishing section** selector at the top of the Presentation>Sections panel.
51
51
52
52
#### Status
53
53
54
-
Location: **Sort and display**
54
+
In: **Sort and display** area.
55
55
56
56
Articles have a status that governs their public visibility. Draft, Hidden, and Pending articles are not visible to public site visitors, so use these indicators while an article is in development (Draft), ready for publishing review (Pending), or pulled from the site for any reason (Hidden).
57
57
58
58
The remaining two status values are used to make an article Live (visible to all) or Sticky (usually used to display at the head of every page in the section, or on landing page lists). Users with sufficient privileges logged into the back-end of Textpattern can preview articles of any status.
59
59
60
60
#### Publish date
61
61
62
-
Location: **Date and time**
62
+
In: **Date and time** area.
63
63
64
64
An article has a publication date. By default for articles that are being published for the first time, the **Set timestamp to now** checkbox is checked, which sets the article publication date/time to the moment the Save/Publish button is clicked. From that point on, the timestamp will remain static, regardless of the number of times the article is saved and its publication status.
65
65
@@ -69,7 +69,7 @@ If you wish to alter the publication date for any reason (e.g. to schedule a pos
69
69
70
70
#### Url-only title
71
71
72
-
Location: **Meta**
72
+
In: **Meta** area.
73
73
74
74
The title of the article that appears in the browser location URL bar and is, thus, visible to search engines. It should closely align with your article title and content for maximum search engine ranking opportunity.
75
75
@@ -97,45 +97,60 @@ Just like the article Body, it processes its content through a textfilter with o
97
97
98
98
#### Description
99
99
100
-
Location: **Meta**
100
+
In: **Meta** area.
101
101
102
102
A short summary of the article, designed for use by search engines to display in search results. Limited to 255 characters, this is a very concise description of the page content.
103
103
104
104
#### Expiry date
105
105
106
-
Location: **Date and time**
106
+
In: **Date and time** area.
107
107
108
108
Just like the [Publish date](#publish-date) which governs when an article appears on the site, an article can be set to automatically expire (disappear for the site) at a given date/time in the future. This is useful for time-bound content such as events or short promotional campaigns.
109
109
110
110
If the values in this field are left blank, the article never expires. Otherwise, adjust the year, month, day, hour, minute and second values to set an expiry. Check the **Set expiry to now** checkbox as a shortcut to set the article expiry to the moment the Save/Publish button is clicked.
111
111
112
112
#### Keywords
113
113
114
-
Location: **Meta**
114
+
In: **Meta** area.
115
115
116
116
A comma-separated list of keywords or tags that represent this article. This was historically where document keywords were housed that search engines used to build an idea of what your page was about, before semantic content took over. As such, this field is not used very often and is likely to be repurpossed as a general purpose tagging system in a future version of Textpattern.
117
117
118
118
#### Category 1 and Category 2
119
119
120
-
Location: **Categories**
120
+
In: **Categories** area.
121
121
122
122
Up to two categories may be assigned to an article to indicate what its content represents. This information can be used to filter articles grouped by category that may be from many sections.
123
123
124
124
Select a category from the dropdown lists for either Category 1 or 2. The nearby 'Edit' link will jump to the [Categories panel](#Categories) so the category tree may be manipulated.
125
125
126
126
#### Article images
127
127
128
-
Location: **Article image**
128
+
In: **Article image** area.
129
+
130
+
The Article image field associates one or more (comma-separated) images with an article. Instead of adding an image inline with the body text itself, this feature is commonly used in conjunction with the [article_image](/tags/article_image) tag to display a thumbnail on the article listing page and a full-size version of the image on the individual article.
131
+
132
+
The article image could power:
133
+
134
+
* A photoblog, where a photo or gallery of shots is associated with an article, which might contain details about where the images were taken, or what kind of equipment was used to take it.
135
+
* A portfolio, where an illustration or a screenshot of a website is associated with an article, which contains details about the project or the client involved.
136
+
* A news site, where each article has, optionally, one main image that is always placed at the top of the article, and maybe other images used throughout the text (you can use the `offset` attribute of the [images](/tags/images) tag to skip images you have already displayed).
137
+
138
+
There are two ways to assign an image to an article:
139
+
140
+
1. By ID (as it appears in the Images panel; this only works for images managed through the Textpattern Images panel.
141
+
2. By an absolute URL to the image, such as `/images/my-dog.jpg`.
142
+
143
+
To harness the additional features provided by Textpattern tags such as `<txp:images />`, it is recommended to list image IDs to reference article images. This means managing Images and articles separately, ensuring images are uploaded first. If you prefer to upload images at the same time as creating articles, as well as offering drag/drop image editing and reordering, there are plugins available (such as [com_article_image](https://github.com/textpattern/com_article_image)) for this purpose.
129
144
130
145
#### Custom content
131
146
132
-
Location: **Custom fields**
147
+
In: **Custom fields** area.
133
148
134
149
135
150
136
151
#### Article level comments
137
152
138
-
Location: **Comment options**
153
+
In: **Comment options** area.
139
154
140
155
If the **Accept comments** preference is enabled, this area allows you to override the site-wide commenting options on a per article basis.
141
156
@@ -152,8 +167,8 @@ If an article has yet to be published (i.e. it is Draft, Pending or Hidden) clic
152
167
153
168
There are two ways to duplicate an article:
154
169
155
-
1. Individually. Open an article you wish to duplicate in the Write panel, and click the Duplicate link near the Save button. This will copy the article as it is, with any changes you have made and append the new article's ID so it is easily distinguishable from the original. It will also set it to Draft status, ready for immediate editing.
156
-
2. En masse. From the Articles panel, select one or more article checkboxes. Using the **With selected** dropdown, select Duplicate. The selected articles will all be cloned, have their new IDs appended to the titles so they are easily distinguishable from the originals, and have their status set to Draft. Click to edit as normal.
170
+
1.*Individually*. Open an article you wish to duplicate in the Write panel, and click the Duplicate link near the Save button. This will copy the article as it is, with any changes you have made and append the new article's ID so it is easily distinguishable from the original. It will also set it to Draft status, ready for immediate editing.
171
+
2.*En masse*. From the Articles panel, select one or more article checkboxes. Using the **With selected** dropdown, select Duplicate. The selected articles will all be cloned, have their new IDs appended to the titles so they are easily distinguishable from the originals, and have their status set to Draft. Click to edit as normal.
157
172
158
173
You should remove the article ID from the title field prior to publishing the cloned articles.
0 commit comments