Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#205 2014-01-27 21:10:28
Re: [plugin] [ORPHAN] cnk_versioning
Yet more progress…
It looks like the manual upload is taking files from within the textpattern/ install but the auto upload screen refresh is taking them from the www/ (root folder). I figure this should be fixable!.
Offline
#206 2014-01-27 21:20:06
Re: [plugin] [ORPHAN] cnk_versioning
Did it, well after all my poking about above it looks like all I needed to do was set $CNK_VER_OUTPUT_PATH = ‘textpattern/’
This points it to the textpattern default install and then the public page can find the files!
To be more exact, the $CNK_VER_OUTPUT_PATH should be set to the computers path for the location of the CSS, Pages and Forms folder. eg: ‘/wamp/www/’ to locate ‘c:/wamp/www’.
After all my diddlings, there is still a known bug (above where you need to add _CSS to something)
Last edited by shagwana (2014-01-28 06:59:20)
Offline
#207 2014-02-28 19:57:24
Re: [plugin] [ORPHAN] cnk_versioning
John Smith wrote #270114:
Spent 30 mins to make plugin work with 4.5.4 by lurking entire topic.
Instruction
- Create “_templates” folder in TXP web root.
- Create “css”, “forms” and “pages” folders inside “_templates”.
- Install plugin from this link
- Open plugin file in Admin panel
- Replace line $CNK_VER_OUTPUT_PATH = ‘admin/’; with $CNK_VER_OUTPUT_PATH = ‘_templates/’;
- Click Save
- Enable plugin
WARN: do not click on “Manually trigger Form, Page & CSS update” – PLUGIN DOES NOT CHECK EMPTY FILES. IT WILL ERASE ALL YOUR TEMPLATES INSIDE DB.- Go to templates section and click on Versioning tab
- Click on Install
- Ensure your site in Testing mode and visit it once
- Done.
Documentation will save this world.
I’ll throw in my 2 cents on this since i’m using this on just about every site now.
- - I’ve found that giving the path from your DOCUMENT_ROOT works more times than if I give the path as relative, usually i get the “xxx folder is not writable”. SO what I do is have the path setup as:
$CNK_VER_OUTPUT_PATH = rtrim(getenv('DOCUMENT_ROOT'),'/') . '/textpattern/_templates/versioning/'; //e.g. 'textpattern/_templates/versioning/'
- - before your enable the plugin make sure your production mode is in “live”, this way when you do the install the plugin wont nuke all your forms/pages/css and leave you with a blank page.
Once your ready for development switch from “live” to “testing” to update the database with your template files.
Offline
#208 2014-07-13 08:33:34
- Ciges
- Member
- From: Vigo (España)
- Registered: 2013-08-21
- Posts: 12
Re: [plugin] [ORPHAN] cnk_versioning
Thanks you very much @ecklesroad!
I have just installed cnk_versioning in my recently installed Textpattern (dev, rev5854) web with success :-)
There was an error in the php code, easily to solve. Global variable $CNK_VER_EXT is not defined in cnk_ver_push_css function.
Line 244 should be:
global $CNK_VER_OUTPUT_PATH, $CNK_VER_EXT, $CNK_VER_EXT_CSS, $CNK_VER_IGNORED_NAMES;
Last edited by Ciges (2014-07-13 09:01:39)
Offline
#209 2015-04-04 23:37:01
Re: [plugin] [ORPHAN] cnk_versioning
I just installed the plugin and
1) nothing has happened in terms of writing my files to a directory
2) there is no readme/help message as there was as i recall when i tried a few years ago.
Is this plugin safe to run… i am on Textpattern · 4.5.7
PS is there another option to use external files for forms, pages, css etc?
…. texted postive
Offline
#210 2015-04-05 00:12:55
Re: [plugin] [ORPHAN] cnk_versioning
You can try rah_flat.
cnk_versioning still works on TXP 4.5.7, but I think you should consider its development abandoned.
Offline
#211 2015-04-05 00:14:36
Offline
#212 2015-04-05 02:22:06
Re: [plugin] [ORPHAN] cnk_versioning
maniqui wrote #289750:
You can try rah_flat.
cnk_versioning still works on TXP 4.5.7, but I think you should consider its development abandoned.
ok. trying it. but how does one get the db form/page files outputted as flat files?
This plugin seems to only import:
“Rah_flat imports normal, flat files from a specified directory to your Textpattern database.”
so how do we propagate the flat files?
…. texted postive
Offline
#213 2015-04-05 02:30:55
Offline
#214 2015-04-07 18:15:43
Re: [plugin] [ORPHAN] cnk_versioning
I’ve recently used hcg_templates for exporting forms and pages to files.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#215 2015-04-08 03:45:17
Re: [plugin] [ORPHAN] cnk_versioning
MattD wrote #289802:
I’ve recently used hcg_templates for exporting forms and pages to files.
I have never heard of this plugin-in. In all my searches via google and on the forum i have never come across this plugin?
Wonder why?
…. texted postive
Offline
#216 2015-04-08 21:51:00
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: [plugin] [ORPHAN] cnk_versioning
Interesting thread about that theme mechanism.
Last edited by candyman (2015-04-08 21:51:16)
Offline