Skip to content

Commit 451e611

Browse files
committed
Merge branch 'master' into self-hosted
2 parents 35b6999 + c7c7b80 commit 451e611

File tree

6 files changed

+21
-78
lines changed

6 files changed

+21
-78
lines changed

_includes/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
1010
<link rel="manifest" href="/site.webmanifest">
1111
<meta name="color-scheme" content="dark light">
12+
<meta name="theme-color" content="#ffda44">
1213
<meta name="author" content="{{ site.author }}">
1314
<meta name="application-name" content="Textpattern CMS Documentation">
1415
<script defer src="https://textpattern.com/assets/js/app.js"></script>

site.webmanifest

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"short_name": "Textpattern Docs",
33
"name": "Textpattern CMS Documentation",
44
"start_url": "https://docs.textpattern.com",
5+
"scope": "https://docs.textpattern.com",
56
"icons": [
6-
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png" },
7-
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png" }
7+
{ "src": "/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable any" },
8+
{ "src": "/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable any" }
89
],
910
"background_color": "#ffffff",
1011
"theme_color": "#ffda44",
11-
"display": "browser"
12+
"display": "minimal-ui"
1213
}

tags/header.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
3232

3333
`name="string"`
3434
: Header name/type.
35-
: **Default:** `Content-Type`.
35+
: **Default:** unset.
3636

3737
`replace="boolean"`
38-
: Whether the existing HTTP header must be replaced entirely, or added to.
39-
: **Values:** `0` (no) or `1` (yes).
38+
: Whether the existing HTTP header must be preserved, replaced entirely, or added to.
39+
: **Values:** `0` (preserve) or `1` (replace) or other (add).
4040
: **Default:** `1`.
4141

4242
`value="string"`
4343
: Header value.
44-
: **Default:** `text/html; charset=utf-8`.
44+
: **Default:** unset.
4545

4646
## Examples
4747

@@ -58,7 +58,7 @@ If you don't want an article to be cached by the browser, then the corresponding
5858
If you need to output the articles from a section as a JSON document, the corresponding page template could be:
5959

6060
~~~ html
61-
<txp:header value="application/json; charset=utf-8" />
61+
<txp:header name="Content-Type" value="application/json; charset=utf-8" />
6262
[<txp:article break=",">
6363
{
6464
"title": "<txp:title escape="json" />",
@@ -73,6 +73,10 @@ Other tags used: [article](/tags/article), [title](/tags/title).
7373

7474
## Genealogy
7575

76+
### Version 4.8.5
77+
78+
Default attribute values modified.
79+
7680
### Version 4.7.0
7781

7882
Tag support added.

tags/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@ Each Textpattern tag is described in detail on its respective reference page. Se
220220
* [image_list](/tags/image_list) <span class="footnote error">**Deprecated**</span>
221221
* [image_url](/tags/image_url)
222222
* [images](/tags/images)
223-
* [item](/tags/item) <span class="footnote warning">**New v4.8.0**</span>
224223
{: .list--no-bullets}
225224

226225
</div>

tags/item.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

tags/search_input.md

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,9 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
3636
: **Default:** unset (no button is created).
3737

3838
`form="form name"`
39-
: Use specified form template to build a customized HTML form.
39+
: Use the specified form template to build a customized HTML form.
4040
: **Default:** `search_input` (if no form template is specified and no other attributes are used), otherwise unset (uses a built-in HTML `<form>`).
4141

42-
`html_id="id"` <span class="footnote warning">v4.0.7+</span>
43-
: The HTML `id` attribute assigned to the search form.
44-
: **Default:** unset.
45-
4642
`match="match type"` <span class="footnote warning">v4.3.0+</span>
4743
: Set the search mode. Choose from: \\
4844
`exact`: search terms must exactly match the words in the article in the order given. This mode is also automatically selected if the search term is surrounded with double quotes. \\
@@ -51,7 +47,7 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
5147
: Default `exact`.
5248

5349
`placeholder="text"` <span class="footnote warning">v4.7.2+</span>
54-
: HTML `placeholder` attribute to be applied to search `input` field.
50+
: HTML `placeholder` attribute to be applied to the search `input` field.
5551
: **Default:** unset.
5652

5753
`section="section name"`
@@ -62,22 +58,6 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
6258
: Sets the `size` attribute of the search `input` field.
6359
: **Default:** `15`.
6460

65-
### Common presentational attributes
66-
67-
These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.
68-
69-
`class="class name"`
70-
: HTML `class` to apply to the `wraptag` attribute value.
71-
: **Default:** tag name or unset (see [class cross-reference](/tags/tag-attributes-cross-reference#class)).
72-
73-
`label="text"`
74-
: Label prepended to item.
75-
: **Default:** unset (but see [label cross-reference](/tags/tag-attributes-cross-reference#label) for exceptions).
76-
77-
`wraptag="element"`
78-
: HTML element to wrap markup, specified without brackets (e.g. `wraptag="div"`).
79-
: **Default:** unset (but see [wraptag cross-reference](/tags/tag-attributes-cross-reference#wraptag) for exceptions).
80-
8161
## Examples
8262

8363
### Example 1: Display a search input form
@@ -88,13 +68,13 @@ These attributes, which affect presentation, are shared by many tags. Note that
8868

8969
### Example 2: Elements required for building a customized HTML search form
9070

91-
You can build your own custom search form by specifying `form="form-name"` inside the `<txp:search_input />` tag:
71+
Build your own custom search form by specifying `form="your-form-name"` inside the `<txp:search_input />` tag:
9272

9373
~~~ html
94-
<txp:search_input form="form-name" />
74+
<txp:search_input form="search_box" />
9575
~~~
9676

97-
You would then need to build your Form (i.e. `form-name`), and the absolute minimum Textpattern tags and attributes required would be:
77+
You would then need to build your Form called `search_box`. It could contain any fields and markup you wish to suit your site. The absolute minimum Textpattern tags and attributes required would be:
9878

9979
~~~ html
10080
<form action="<txp:site_url />">
@@ -106,10 +86,10 @@ When using a customized form template, Textpattern doesn't automatically wrap th
10686

10787
Other tags used: [site_url](/tags/site_url).
10888

109-
Note: Textpattern will use a user defined form named `search_results`, or an internally defined default form if no search result form is defined by you.
89+
Note: When displaying search results, Textpattern will use a user defined form named `search_results`, or an internally defined default form if no search result form is nominated/defined.
11090
{: .alert-block .information}
11191

112-
### Example 3: Minimal search input form without label or button (but still accessible)
92+
### Example 3: Minimal search input form without label or button (yet still accessible)
11393

11494
~~~ html
11595
<txp:search_input aria_label="Search" placeholder="Search…" />

0 commit comments

Comments
 (0)