If I'm understanding you, you switched the snippet to a static element? Both the path and the source need to to be set correctly. When you do it right, the file's code should show up in the snippet in the Manager.
One check is to modify the snippet code and save and see if the file changes (or change the file and reload the snippet edit form in the Manager and see if the changes show up).
-
☆ A M B ☆
- 24,524 Posts
I ran into problems when converting an existing element to static; on save the existing element's code was saved to the file, thus losing the file's original content. So if you want to have the file's content used when converting an existing element, you need to take the extra step of editing the element to replace its code with the file content.
Yes, and when using any static elements, *ALWAYS* have the file content backed up somewhere else (don't ask me how I know).
Thanks for your help. In the end I deleted and recreated the Snippet which fixed the problem.
FYI, if you (or someone else reading this thread) are working on something that might be distributed as an extra, MyComponent will create the static elements/files for you.