Skip to content

Commit 6b73cda

Browse files
authored
Add article image content-type
1 parent a373b9f commit 6b73cda

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

build/content-types.md

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,21 @@ The title is an accurate representation of the content within your article. It w
4545

4646
#### Section
4747

48-
Location: **Sort and display**
48+
In: **Sort and display** area.
4949

5050
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.
5151

5252
#### Status
5353

54-
Location: **Sort and display**
54+
In: **Sort and display** area.
5555

5656
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).
5757

5858
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.
5959

6060
#### Publish date
6161

62-
Location: **Date and time**
62+
In: **Date and time** area.
6363

6464
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.
6565

@@ -69,7 +69,7 @@ If you wish to alter the publication date for any reason (e.g. to schedule a pos
6969

7070
#### Url-only title
7171

72-
Location: **Meta**
72+
In: **Meta** area.
7373

7474
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.
7575

@@ -97,45 +97,60 @@ Just like the article Body, it processes its content through a textfilter with o
9797

9898
#### Description
9999

100-
Location: **Meta**
100+
In: **Meta** area.
101101

102102
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.
103103

104104
#### Expiry date
105105

106-
Location: **Date and time**
106+
In: **Date and time** area.
107107

108108
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.
109109

110110
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.
111111

112112
#### Keywords
113113

114-
Location: **Meta**
114+
In: **Meta** area.
115115

116116
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.
117117

118118
#### Category 1 and Category 2
119119

120-
Location: **Categories**
120+
In: **Categories** area.
121121

122122
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.
123123

124124
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.
125125

126126
#### Article images
127127

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.
129144

130145
#### Custom content
131146

132-
Location: **Custom fields**
147+
In: **Custom fields** area.
133148

134149

135150

136151
#### Article level comments
137152

138-
Location: **Comment options**
153+
In: **Comment options** area.
139154

140155
If the **Accept comments** preference is enabled, this area allows you to override the site-wide commenting options on a per article basis.
141156

@@ -152,8 +167,8 @@ If an article has yet to be published (i.e. it is Draft, Pending or Hidden) clic
152167

153168
There are two ways to duplicate an article:
154169

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.
157172

158173
You should remove the article ID from the title field prior to publishing the cloned articles.
159174

0 commit comments

Comments
 (0)