uploading stylesheet through FTP
Maybe this is a silly question, but in 2.9.0 I can't seem to upload edited stylesheets through FTP anymore.
I always used to alter in dw, save and then overwrite in the tl_files folder. (Of course the sylesheets are attached in the layout)
Now this does not work. I can only alter the stylesheet in the backend. That's just not workable for me....
Am i forgetting something? Or is there some new feature which i have to select somewhere?
Thanks for your help!
Re: uploading stylesheet through FTP
It would more likely be a rights problem rather then a feature of Contao. Please check with your webhost if the rights to that file might be wrong. :?
I sometimes find I cannot edit files uploaded/created with TYPOlight, the access rights are sometimes set to the Apache user making them inaccessible for the FTP user. :( But it doesn't happen for all of my sites in a predictable way, so there is no real bug to report if it would be a bug at all....
Re: uploading stylesheet through FTP
PS. I used to edit the stylesheet in my Coda program too and then link the stylesheet in. But since I forced myself to use the Built-in CSS editor, I will never use anything else again.
Normally I have my reset.css, gridpx.css, forms.css, nav-horiz.css, pagination.css, etc. stylesheets in a cssframeworks folder and then import them. This saves TONS of work, as most of them need only minor modifications. With the new 2.9 aggregate stylesheets option, which joins the stylesheets together and then links 1 only, I am loving the style sheet editor even more.
When leo adds in a few more text-transform options, and when we have CSS 3 codes added in, then the stylesheet editor will rock. I love that you can add a border with all its settings, then deactivate it, but you can re-activate it as well, by just clicking the checkbox, and it remembers the values from previously. Another great feature it to turn a style on/off with the toggle publish icon. That is the best! Then you can also group the stylesheet items into Categories, which I am using all the time (News, Site, Forms, etc.).
I can't believe I never wanted to use the Stylesheet editor before. Now, you never have to use an FTP program to edit a Contao website ever again (especially after installing my unzip utility).
Re: uploading stylesheet through FTP
At the moment I use UltraEdit to edit CSS files directly via FTP, and link to the CSS files manually in fe_page.tpl. Once I have finished development I then use minify to combine the CSS files.
I would like to start using the Contao CSS editor (Easy access when out of the office and I can use the Contao functionality to minfy with one click) but am concerned about the following:
1) Could I still edit CSS files by FTP if/when appropriate.
2) Could I use CSS files outside of the tl_files folder. I like to keep my CSS files in a separate folder so that they are totally hidden from the client and do not appear in the TinyMCE dropdowns.
Thanks Gary.
Re: uploading stylesheet through FTP
The CSS module in Contao saves the stylesheets in the database. It is possible to edit files through ftp and then afterwards import them in the CSS module.
Re: uploading stylesheet through FTP
As far as I know, Contao creates the css files itself. After importing it in the backend css-editor and making a little edit in the css-file (using backend css-editor) Contao saves it into the root folder of your site. Correct me if I'm wrong. The css files in the root of your site can be edited with ftp but the css-editor inside Contao is so much easier.
The problem Vera talks about (with the rights) I had before with older TYPOlight versions. Maybe you should try the system check on your hosting platform (http://www.contao.org/configuring-th...tem-check-tool).
Re: uploading stylesheet through FTP
Hi Vascom,
Thanks for pointing that out. Yep, I can see that it has placed the imported CSS file in the root. This means that I can interchange between using FTP and the backend css-editor, which is great, thanks.
I am a little fussy when it comes to my website structures, and would hate to keep CSS files in the root. Is there any way to define a different folder for them to be imported to, for example:
/tl_files/theme/css/
Re: uploading stylesheet through FTP
Hi Gary,
Well I'm not a programmer but I think you'll have to write your own module wich overwrites the config of Contao. The file StyleSheets.php at /system/modules/backend is the file where the methods are build.
Re: uploading stylesheet through FTP
There maybe a way to define the root for CSS files in dcaconfig.php
Maybe another forum user knows if this is possible.
:?:
Re: uploading stylesheet through FTP
Not sure about defining the root, but I think you guys need to BEWARE when editing the css stylesheets in root, as I believe cron will overwrite them from time to time, as will the backend CSS editor.
You can edit the ones in root directly via FTP or otherwise and the resultant styles are there for html output ... but they are NOT databased. You would need to reimport that sheet into the editor to have the changes added into the database.
Its a bit of a circle really....Import databases the styles and writes to root. A change in root, reimport, databased, writes to root.
If you don't want to purely use the backend editor then I'd forget about the root css files (just see them as "output"), and keep editable .css files in tl_files somewhere. These will not be used... but you can edit them however you want and they are easier to import once edited (as you can only import from tl_files in the CSS editor).
Hope that helps.
Re: uploading stylesheet through FTP
I am developing a new way of handling themes for Contao. See viewtopic.php?f=9&t=1987
One of the features I want to include is to create a directory for each theme, and in that directory are the stylesheets stored, which could be edited through ftp and through the contao css editor.
Re: uploading stylesheet through FTP
That sounds like an interesting project, I'll try and keep track of it.
I think on balance that, I'm going to try to ditch ftp and move forward with the Contao backend CSS Editor, but 99% of the time I'll use the "Source editor".
Here is the functionality I would love to see:
1) Ability to open full screen in a new window
2) Full screen has multiple tabs so that it's easy to edit multiple files quickly.
3) Full screen has a "Save" button so that there is no need to close the full screen to save (Is there any way to get CTRL+S to work :-)).
4) Style sheet name is included in page/tab title
I don't want much do I :)
Re: uploading stylesheet through FTP
Could you move the answer above to the topic about the theme?
viewtopic.php?f=9&t=1987
Anyway thanks for the suggestions. I would see what I can do.