Adding new Templates / CSS / etc on the file system
Hi
I'm having a few issues with adding new templates etc.
We use dropbox to sync the whole site to our local machines, we can we edit files without using the UI.
However, in most cases, new files do not show up in the UI (eg, after selecting "reload nodes" under stylesheets), and same with templates.
Is this ment to work? or does everything have to go thru the web UI? It'd be nice to have something which does "look on disk. If it exists, pull it into the DB/UI."
There is a mix of database and file-system driven trees in the Umbraco back-office.
CSS files should be able to be picked up from the file-system, but once they are saved via the back-office, a copy will be stored in the database (for legacy reasons). Also you can create CSS sub-properties that can be used via the TinyMCE/RTE (if the stylesheet has been associated with it via the data-type).
The Templates are different, they must be created from the back-office, (or API calls) ... as the template's "stub" is used to associate with document-types (so stored in the database). Once the "stub" is in the database, the back-office will pick up any changes from the file-system. It just wont "auto-create" them.
Could be possible to hook-up a FileSystemWatcher to fill in the missing gap? (to hook into the ApplicationBase event to do the check?)
Thanks Lee - thats pretty much gels with what I found, I was just hoping there was a nice way to say "reload it off whats on disk". Maybe I should add it :)
Adding new Templates / CSS / etc on the file system
Hi
I'm having a few issues with adding new templates etc.
We use dropbox to sync the whole site to our local machines, we can we edit files without using the UI.
However, in most cases, new files do not show up in the UI (eg, after selecting "reload nodes" under stylesheets), and same with templates. Is this ment to work? or does everything have to go thru the web UI? It'd be nice to have something which does "look on disk. If it exists, pull it into the DB/UI."
Thanks
N
Hi Nic,
There is a mix of database and file-system driven trees in the Umbraco back-office.
CSS files should be able to be picked up from the file-system, but once they are saved via the back-office, a copy will be stored in the database (for legacy reasons). Also you can create CSS sub-properties that can be used via the TinyMCE/RTE (if the stylesheet has been associated with it via the data-type).
The Templates are different, they must be created from the back-office, (or API calls) ... as the template's "stub" is used to associate with document-types (so stored in the database). Once the "stub" is in the database, the back-office will pick up any changes from the file-system. It just wont "auto-create" them.
Could be possible to hook-up a FileSystemWatcher to fill in the missing gap? (to hook into the ApplicationBase event to do the check?)
Cheers, Lee.
Thanks Lee - thats pretty much gels with what I found, I was just hoping there was a nice way to say "reload it off whats on disk". Maybe I should add it :)
is working on a reply...