`How to get a link to a resource in an inline chunk?
S
S
sergemin2017-03-29 14:26:48
MODX
sergemin, 2017-03-29 14:26:48

How to get a link to a resource in an inline chunk?

&tpl=`@INLINE <a href="{{+link}}">{{+pagetitle}}</a>`

I'm using pdoResources to display resources
pagetitle returns the title of the resource. How can I get a link to this resource? What is wrong in the code?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Eugene, 2017-03-29
@sergemin

try it the old fashioned way , unless of course we don't have a cnc on the site

S
sergemin, 2017-03-29
@sergemin

&tpl=`@INLINE <a href="">{{+pagetitle}}</a> <br>
`

So it worked
helped

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question