2.x: calling partial with @ sign?

Hi All,

I took over a site done in October CMS 2.x and found something interesting I could not figure out.

In a partial, the previous dev called another partial using an @ sign, so something like this for example:
{% partial ‘@locationSuggest’ %}

I looked for a partial with that name and could not find anything like that. I looked through the 2.x docs for calling a partial with an @ sign, no dice. I also checked Components with that name and nothing.

I did find the file it’s loading, it’s a partial with a completely different filename.

Can anyone explain what’s going on here?


That could be a shared components partial. Check the documentation on components.


1 Like

You nailed it… I found it in the plugins/xyz/components/partials directory.