Skip to content

Commit d7716ae

Browse files
committed
Merge branch 'master' into self-hosted
2 parents 66a167b + b47075b commit d7716ae

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tags/page_url.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ This would result in the following, for example:
132132
### Example 6: Link to the latest article in a section
133133

134134
~~~ html
135-
<txp:variable name="is_latest"><txp:page_url type="most-recent" /></txp:variable>
135+
<txp:variable name="is_latest"><txp:page_url type="latest" /></txp:variable>
136136
...
137137
<txp:if_variable name="is_latest" value="1">
138138
<txp:article limit="1" />
@@ -145,15 +145,15 @@ Using the above code in a page template would permit you to use example.org/arti
145145

146146
Other tags used: [article](/tags/article), [else](/tags/else), [if_variable](/tags/if_variable), [variable](/tags/variable).
147147

148-
As an alternative, in the Advanced options of the Preferences panel, create a custom form type 'html' of type `mediatype="text/html"`. Then in the Forms panel, create a new form called 'most-recent' of this new 'html' type and make the following its contents:
148+
As an alternative, in the Advanced options of the Preferences panel, create a custom form type 'html' of type `mediatype="text/html"`. Then in the Forms panel, create a new form called 'latest' of this new 'html' type and make the following its contents:
149149

150150
``` html
151151
<txp:article limit="1">
152152
<txp:header name="Location" value='<txp:permlink />' />
153153
</txp:article>
154154
```
155155

156-
Now each hit of /any-section/?f=most-recent will 302-redirect the visitor to the latest article in that section.
156+
Now each hit of /any-section/?f=latest will 302-redirect the visitor to the latest article in that section.
157157

158158
## Genealogy
159159

0 commit comments

Comments
 (0)