Remove summary (introtext) in getResources call

Is there a way to remove the summary (introtext) in a getResources call? Sometimes I just want to output the title and the idea is to use the same and already existing generic chunk instead of creating different versions. Thanks

I’m quite sure this is not possible.

Maybe you could use an @INLINE template, if you want to avoid creating an additional chunk.

[[getResources?
    &parents=`[[*id]]`
    &tpl=`@INLINE <div>[[+pagetitle]]</div>`
    &limit=`0`
]]

Alternatively you could try something like this:

[[getResources?
    &parents=`[[*id]]`
    &tpl=`myTemplate`
    &limit=`0`
    &dontshowintrotext=`1`
]]

Chunk myTemplate:

<h1>[[+pagetitle]]</h1>
<div>[[+dontshowintrotext:isnot=`1`:then=`[[+introtext]]`]]</div>

All the scriptProperties should be available in the chunk. So you could just make up a new one like &dontshowintrotext and use it in the chunk.

1 Like

There is another way, pdoResources, it has &select parameter where you can specify desired fields for request:

&select=`{"modResource":"id,pagetitle,content"}.`

Thanks @halftrainedharry adding a &parameter as an alternative is a good solution.