Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
#37 2011-08-05 21:03:21
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
v0.6 is posted.
Changes…
- plugin files now require a .plugin suffix.
- AddSection to allow scripting of the page, css, rss, frontpage and searchable parameters.
Additions…
- Import of new — or overwrite of existing — pages, styles and forms (of all flavours.) Read the documentation for this as the files must follow a naming convention.
- Scripted removal of certain text files from the install (HISTORY.txt etc.)
— Steve
Offline
#38 2011-08-06 07:41:05
- jpdupont
- Member
- Registered: 2004-10-01
- Posts: 752
Re: sed_cleaner
Big thanks for all this works, Steve …
I’ll try this as soon as possible.
Offline
#39 2011-08-06 18:39:31
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
All
I’ve been trying this in conjunction with a local copy of Txp 4.4.1 that I’ve setup with the din theme in themes/din and with all my favourite admin plugins + forms, pages, styles and my cleanups.php script in the files/ directory ready for sed_cleaner to load up.
It really simplifies getting things running the way I want — and I hope it will for you too.
I’d appreciate as much feedback as possible before I consider this tested well enough to bump this to v1.0.
— Steve
Offline
Re: sed_cleaner
@Steve
What a “killer” plugin! Very usefull. Thanks.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
#41 2011-08-07 09:23:08
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
Thanks Patrick,
I would be particularly interested in feedback about the plugin-import, presentation-import & scripting capabilities if you’ve tried them.
Regardless, thanks for looking at this!
— Steve
Offline
Re: sed_cleaner
Ok Steve.
I’ll trying it tomorrow and send you my feedback.
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: sed_cleaner
So just to be clear on this one Steve, as I have just completed a new ProText Theme and would like to get it out there so don’t won’t to waste time right now if I don’t need to, this is still only suitable for “virgin” sites due to all the removals that are carried out or could the removals be optional?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#44 2011-08-07 22:15:29
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: sed_cleaner
Hi Stuart,
Currently the default removals are non-optional so use of this plugin would not be suitable for installing one of your excellent themes into non-virgin sites as it would terminate existing content.
Just thinking aloud: there’s no reason I couldn’t have the plugin skip the default removals if there were more than one article present in the DB. It could then run in a purely scripted mode. Hmmm, this is beginning to sound like something we talked about briefly some time ago. Alas though, I probably wouldn’t get time to make any changes to this plugin until next weekend.
— Steve
Offline
Re: sed_cleaner
No rush Steve. I’ll get this theme out then have a look at your plugin as it is now. I want a peek at the code you are using for Preferences. It’s just finding the time. ;)
Are you still in Blighty?
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline