Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2011-08-01 20:03:45
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
Hi jpdupont
Thanks for trying this out! I can use some of what you posted above verbatim.
Edited to add: I may need to extend the commands in cleanups.php to handle some of these after all as they may not be exactly what everyone wants.
Last edited by net-carver (2011-08-01 22:39:55)
— Steve
Offline
#26 2011-08-01 20:37:30
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
v0.4.2 posted.
Bugfix: don’t delete the category roots when emptying the categories table. (Thanks jpdupont)
— Steve
Offline
#27 2011-08-01 22:21:29
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Offline
#28 2011-08-02 06:31:20
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: sed_cleaner
Thanks Steve !
Maybe a … last idea ???
As the wonderful automatic plugin insertion, an automatic .page, .css, .form file insertion ?
Offline
#29 2011-08-02 08:09:23
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
Hi jpdupont,
As I mentioned above, I’m not so keen on turning this into an import mechanism for presentation items as there are plenty of good theme installers around already.
If people can see a gap between what this plugin now does and what a theme installer does, and can convince me of the need, I’ll take a look at adding that functionality.
— Steve
Offline
#30 2011-08-02 08:56:25
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: sed_cleaner
What I mean here here, is not a theme installer, but a complete TXP reset/initialisation.
Each time I start a new TXP site, I must remove many things : your pluging actually do the job ! Fine !
Then I paste the same plugins code from other site : now your plugin do the job ! Wonderful !
And finally I paste from other installations the sames css reset, the same form snippets (jquery code / calls, search form, …).
It’s not theme import (I never use pre made theme …), but last step in the initialisation job !
Offline
#31 2011-08-02 09:09:56
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
jpdupont wrote:
What I mean here here, is not a theme installer, but a complete TXP reset/initialisation.
Each time I start a new TXP site, I must remove many things : your pluging actually do the job ! Fine !
Then I paste the same plugins code from other site : now your plugin do the job ! Wonderful !
Great! Glad this is working :)
And finally I paste from other installations the sames css reset, the same form snippets (jquery code / calls, search form, …).
It’s not theme import (I never use pre made theme …), but last step in the initialisation job !
Right, but couldn’t you just use something like cxc_templates to create your own personal ‘starting template’ (generating your starting template would be a one-time task.) You could then have sed_cleaner install cxc_templates into your new site so it can import your starting template.
Would that work?
— Steve
Offline
#32 2011-08-02 12:14:52
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: sed_cleaner
I just tried cxc_templates. Works, but it’s not what I need (to many manipulations – create tpl directory, upgrade the template zip file each time we need, on some hostings chmod the tmp directory etc…).
I need just the automatic import of .css, .page, .form dropped in the files directory near the cleanups.php, like plugin files….
But, don’t worry with this Steve !
Big thanks for the actual job !
Last edited by jpdupont (2011-08-02 12:16:12)
Offline
#33 2011-08-02 13:02:00
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
Hello again jpdupont,
glad you’re finding this useful.
Another idea for you: create a local staging copy of the latest Txp but with the required /tpl
directory & files in place. Also add your cleanups.php & plugin files already in the /files
folder. Then, when you do your ftp or ssh sshfs/scp/rcp installation to the new server all the files you need are already in the correct place for you. You could have a favourite admin theme installed in the /themes
directory too and use SetPref
in your cleanups.php file to select it.
— Steve
Offline
#34 2011-08-02 13:08:22
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: sed_cleaner
Thanks Steve … I plan to try this in a day or two.
Offline
#35 2011-08-04 18:51:32
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
Hi jpdupont,
I’ve been trying staging layouts here and whilst they work really well, I’m warming to your idea of basic import for presentation items (a CSS reset in particular) instead of using a theme installation plugin now as it would allow a more streamlined approach.
To make way for this possibility I’m working on a little mod to only treat files with a .plugin
suffix as an actual plugin.
Last edited by net-carver (2011-08-04 18:53:01)
— Steve
Offline
#36 2011-08-04 19:45:54
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: sed_cleaner
Hi Steve,
Fine ! I plan to use your plugin on 2 or 3 new sites in a few days …
Offline