Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parentIds doesn't not include deep children #28

Closed
Spheerys opened this issue May 30, 2015 · 1 comment
Closed

parentIds doesn't not include deep children #28

Spheerys opened this issue May 30, 2015 · 1 comment

Comments

@Spheerys
Copy link

Hi,

I want to select the tags of all children of one specific parent.
Even if the doc talk about a parentIds parameter, it doesn't include all the children :

[[!smarttagTags?
                 &parentIds=`129`
                 &includeHiddenDocs=`1`
                 &tplWrapper=`@code:[[+smarttag.tags]]`
                 &tplItem=`@code:<button class="button" data-filter=".tag-[[+smarttag.tag]]">[[+smarttag.tag]] <span>([[+smarttag.count]])</span></button>`
                 &tvNames=`EventTags`
]]

The other parameter allTags is working, but for ALL the resources of the website !

[[!smarttagTags?
                 &allTags=`1`
                 &includeHiddenDocs=`1`
                 &tplWrapper=`@code:[[+smarttag.tags]]`
                 &tplItem=`@code:<button class="button" data-filter=".tag-[[+smarttag.tag]]">[[+smarttag.tag]] <span>([[+smarttag.count]])</span></button>`
                 &tvNames=`EventTags`
]]

Is there a way to select all the tags of children of a specific resource, without specify each direct parents ?

@goldsky
Copy link
Owner

goldsky commented Jul 28, 2015

try to nest it with http://modx.com/extras/package/getids

&parentIds=`[[!GetIds? &ids=`129,c129`]]`

@goldsky goldsky closed this as completed Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants