Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#205 2014-01-27 21:10:28

shagwana
New Member
From: UK
Registered: 2009-02-03
Posts: 9
Website

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

shagwana
New Member
From: UK
Registered: 2009-02-03
Posts: 9
Website

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

ecklesroad
Plugin Author
From: Bemidji, MN
Registered: 2008-02-22
Posts: 119
Website

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

  1. Create “_templates” folder in TXP web root.
  2. Create “css”, “forms” and “pages” folders inside “_templates”.
  3. Install plugin from this link
  4. Open plugin file in Admin panel
  5. Replace line $CNK_VER_OUTPUT_PATH = ‘admin/’; with $CNK_VER_OUTPUT_PATH = ‘_templates/’;
  6. Click Save
  7. 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.
  8. Go to templates section and click on Versioning tab
  9. Click on Install
  10. Ensure your site in Testing mode and visit it once
  11. 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.

  1. - 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/'
  1. - 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

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

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

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#211 2015-04-05 00:14:36

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

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.

thanks … i wasn’t getting anywhere with cnk.
cheers and happy easter!


…. texted postive

Offline

#212 2015-04-05 02:22:06

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

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

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [plugin] [ORPHAN] cnk_versioning

bici wrote #289753:

This plugin seems to only import

Yes.

so how do we propagate the flat files?

Manually, it doesn’t have exporting features at the moment.

Offline

#214 2015-04-07 18:15:43

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: [plugin] [ORPHAN] cnk_versioning

I’ve recently used hcg_templates for exporting forms and pages to files.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#215 2015-04-08 03:45:17

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,071
Website Mastodon

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

Board footer

Powered by FluxBB