Closed louis-ev closed 7 years ago
You can use a relative path. If your snippet is located at site/snippets/collection/snippet.php
, this should work:
snippet: ../../../snippets/collection/snippet
Thanks!
But wouldn't this break shopkit's calls to snippetfields such as discount-codes and gift-certificates in shopkit/snippets/panel
?
No, the relative path would be in your own custom blueprint under site/blueprints
.
Since the snippetfield.path
is site/plugins/shopkit/snippets/panel
, this path:
../../../snippets/collection/snippet
would resolve to...
site/snippets/collection/snippet
Sounds good, thanks.
Hi,
I've been trying to set-up snippetfield in a blueprint (and snippet) without touching the shopkit plugin.
However since
snippetfield.path
is set inshopkit/registry/snippets.php
I haven't found a way to link the field to a snippet, for examples:The path seems to look for collection/snippet using the
snippetfield.path
, which redirects to a shopkit folder. Is that right? Any other way to do it?