Extension

Archived
Forum
(read-only)

Brian Litzinger does not actively monitor this forum
(but you can still get help from other EE users).


For official support, visit the official support site »

EE 1
EE 2
Snippet Sync

Back to this add-on's main page
View Other Add-ons From Brian Litzinger

     

You must be logged in to post.

Colon in snippet prefix prevents saving in CP

General

ghd_
ghd_

I’ve got Snippet Sync installed and correctly syncing .html files to snippets with the default prefix “snippet:”—

However, these newly created snippets are “This Site Only” by default. When attempting to save as “All Sites”, the colon used in the default prefix throws a “disallowed character” error.

Removing the colon in the snippet prefix corrects the issue.

MetaSushi
# 1
MetaSushi

Hi ghd_, thanks for the bug report. We are looking into this issue.

ghd_
# 2
ghd_

Thanks Ryan. Looks to be an unfortunate limitation of EE’s snippet naming convention.

MetaSushi
# 3
MetaSushi

Yeah so far it just looks like with MSM installed you need to not use colons in snippet names. We’ll see if there’s a way to work around this but if not I’d recommend changing the prefix to “snippet_”. You will need to manually rename the files to match the names set in the database.

ghd_
# 4
ghd_

Ya… Not a major issue, I suppose. Nothing you can do!

Thanks for the reply.