Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#11 2008-06-19 13:27:24
- chriloi
- Plugin Author
- From: Vienna, Austria
- Registered: 2006-01-17
- Posts: 120
- Website
Re: [plugin] [ORPHAN] cnk_versioning
Change it to define('CNK_VER_OUTPUT_PATH', 'textpattern/_templates/');
Offline
#12 2008-06-19 13:32:17
- sthmtc
- Member
- From: CGN, GER
- Registered: 2005-01-17
- Posts: 586
- Website
Re: [plugin] [ORPHAN] cnk_versioning
why textpattern
? it’s not there, my _templates
folder is in the root… ?!
edit: ok i got it, guess the trailing slash was the problem. it’s working now.
Last edited by sthmtc (2008-06-19 13:37:57)
Offline
#13 2008-06-19 14:52:19
- chriloi
- Plugin Author
- From: Vienna, Austria
- Registered: 2006-01-17
- Posts: 120
- Website
Re: [plugin] [ORPHAN] cnk_versioning
I assumed that you are using the default mcw_templates structure…
A check for trailing slashes and other stuff to simplify these things will come next.
Offline
#14 2008-07-02 05:55:26
- johnstephens
- Plugin Author
- From: Woodbridge, VA
- Registered: 2008-06-01
- Posts: 989
- Website
Re: [plugin] [ORPHAN] cnk_versioning
I like this a lot— compared to hcg_templates, it eliminates the extra steps of navigating to Extensions > Templates and reloading the template every time there is a change. Is there a way I can get it to import my style files without changing the file extension to .txp*— keeping the *.css extension recognized by hcg_templates?
Offline
#15 2008-07-02 09:07:25
- chriloi
- Plugin Author
- From: Vienna, Austria
- Registered: 2006-01-17
- Posts: 120
- Website
Re: [plugin] [ORPHAN] cnk_versioning
I’ll take your suggestion into account for the next version. Probably I’ll release it tonight.
Offline
#16 2008-07-03 20:20:56
- chriloi
- Plugin Author
- From: Vienna, Austria
- Registered: 2006-01-17
- Posts: 120
- Website
Re: [plugin] [ORPHAN] cnk_versioning
Version 0.1.3 saves styles as <filename>.css. If you want to keep the .txp extension, just alter $CNK_VER_EXT_CSS. Users updating their plugins, have to alter either the global or the file extensions, otherwise styles will be deleted from the db!
Offline
#17 2008-07-03 23:19:53
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,208
Re: [plugin] [ORPHAN] cnk_versioning
chriloi wrote:
Users updating their plugins, have to alter either the global or the file extensions, otherwise styles will be deleted from the db!
Better add this warning to the first post, Christian!
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#18 2008-07-04 07:55:25
- NickCaldwell
- Member
- From: Brisbane, Queensland in AU
- Registered: 2004-03-04
- Posts: 40
- Website
Re: [plugin] [ORPHAN] cnk_versioning
I’m getting an interesting error and no actual activity from the plugin (4.0.6, using my localhost with a backed-up copy of my TXP database)
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or ‘$’ in /Users/ncaldwell/Sites/retrorocket.dev/textpattern/lib/txplib_misc.php(574) : eval()’d code on line 27
The above errors were caused by the plugin:cnk_versioning
Offline
#19 2008-07-04 14:06:49
- chriloi
- Plugin Author
- From: Vienna, Austria
- Registered: 2006-01-17
- Posts: 120
- Website
Re: [plugin] [ORPHAN] cnk_versioning
You’re right uli.
@NickCaldwell: I’m sorry, I uploaded a non-working copy. Please download version 0.1.4.
Offline
#20 2008-07-04 23:02:56
- NickCaldwell
- Member
- From: Brisbane, Queensland in AU
- Registered: 2004-03-04
- Posts: 40
- Website
Re: [plugin] [ORPHAN] cnk_versioning
chriloi – thanks! It works now, but the initial export doesn’t create file-name extensions, just a trailing period.
Offline