hi MODX-folks,
it’s something like an advanced newbie-question, but I can’t manage to find the right doc-page
This is the
resource-content of ’Archives’ from MODx Sample-Content:
[[!getPage?
&element=`getArchives`
&elementClass=`modSnippet`
&tpl=`blogPost`
&hideContainers=`1`
&showHidden=`1`
&pageVarKey=`page`
&parents=`2`
&includeTVs=`1`
&toPlaceholder=`archives`
&limit=`10`
&cache=`0`
]]
<h3>[[+arc_month_name]] [[+arc_year]] Archives</h3>
[[+archives]]
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
My question is about [tt]<h3>[[+arc_month_name]] [[+arc_year]] Archives</h3>[/tt] and [tt][[+archives]][/tt].
I know, [tt][[+NAME]][/tt] is a placeholder-tag.
Snippets and Chunks may have property-sets (another name for placeholders?) attached to them. But not with this content - no properties.
Chunks or Snippets may get params with their call. To access these params (just another name for placeholders and properties ?) I have to use the placeholder-tag, too: [tt][[+PARAM]][/tt].
so far, I understand the semantics.
but this is a
resource, no snippet or chunk.
WHERE do these placeholders get their values ?
In case of the above content-sample, does the Snippet [tt]getPage[/tt] export/create these placeholders ?
(I assume yes)
Where do I find the docs about placeholders - how to create and how to export ?
[tt][[+modx.user.id]][/tt] is another example. Are there other
global placeholders ? Where are the docs ?
any help/hints appreciated!
Marc