Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: Particle's image picker can't translate "gantry-media://" to real URI
Posted 9 years 8 months ago
Thanks for the information, it works. However, I have to point out that this "url()" syntax is not mentioned in the documentation:
docs.gantry.org/gantry5/advanced/creating-a-new-particle
. So how did you know it and where can I see a more detailed explanations about these things?
Re: Particle's image picker can't translate "gantry-media://" to real URI
Posted 9 years 8 months ago
Our documentation does link you to the complete set of TWIG documentation here several times -
http://twig.sensiolabs.org/documentation
- there's no point in us copying that or maintaining it.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
Re: Particle's image picker can't translate "gantry-media://" to real URI
Posted 9 years 8 months ago
Are you sure this function `url()`, which can translate 'gantry-media' to real URL, is from twig? It is weird if twig would have some function capable of recognizing gantry, unless it has been modified. If so, how can we normal users get to know the usage of things like "url()" from twig's documentation??
I have done a search in twig API, and the closest one I can find is "url_encode", which is a filter but not a function. I even google "url()" site:http://twig.sensiolabs.org/, it returns nothing relative.
Re: Particle's image picker can't translate "gantry-media://" to real URI
Posted 9 years 8 months ago
Did you try what I said? Twig is running as part of and in conjunction with Gantry. Just have a look at existing particles provided with the template you will see that they do the same thing as I told you.
Regards, Mark.
Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.