bjornbjorn / snippetssync.ee2_addon

Save snippets as files during development
http://wedoaddons.com
21 stars 8 forks source link

Updating default directory names #7

Closed codaxe closed 12 years ago

codaxe commented 12 years ago

I've modified the default directory names to adhere to EE2 naming convention. Without this change, the plugin did not work out of the box how expected (i.e: creating a new template group called 'snippets' in the admin panel, creating a new template within it and saving it as a file), it was looking for files in the 'snippets' directory instead of 'snippets.group' created by EE. Also the folders that do not end with '.group' do not show up in the Template Manager in EE therefore this change seems to me the correct way to implement this. Using EE 2.5.3

bjornbjorn commented 12 years ago

Hi codaxe and thanks for the pull request.

However, the directories are named that way because they are not template groups (and one do not want them to show up in the template manager). SnippetsSync is for saving snippets & global variables as files - templates as files can be handled natively be EE.

So, once SnippetsSync is installed you can do everything on the filesystem (create template.groups with templates in them, create snippets in the snippets/ folder and global variables in the global_variables/ folder) - without ever entering the Template Manager etc.

codaxe commented 12 years ago

I see, so it was intended, I preferred them to show in the template manager as well but that's just personal preference, thanks for this work.


sent from mobile device

On Sep 18, 2012, at 2:20 AM, "Bjørn Børresen" notifications@github.com wrote:

Hi codaxe and thanks for the pull request.

However, the directories are named that way because they are not template groups (and one do not want them to show up in the template manager). SnippetsSync is for saving snippets & global variables as files - templates as files can be handled natively be EE.

So, once SnippetsSync is installed you can do everything on the filesystem (create template.groups with templates in them, create snippets in the snippets/ folder and global variables in the global_variables/ folder) - without ever entering the Template Manager etc.

— Reply to this email directly or view it on GitHub.