Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#217 2015-04-08 23:37:34
Re: [plugin] [ORPHAN] cnk_versioning
candyman wrote #289818:
Interesting thread about that theme mechanism.
yes it is. only concern is that the thread is from 2008.
Would be nice to read of what the workflow is these days…
I am really dying for an external templating option which allows for global search and replace etc. using Coda nerdy fave editors.
…. texted postive
Offline
#218 2015-04-09 02:54:05
Re: [plugin] [ORPHAN] cnk_versioning
^^ rah_flat should be more than enough.
Offline
#219 2015-04-09 05:27:56
Re: [plugin] [ORPHAN] cnk_versioning
maniqui wrote #289820:
^^ rah_flat should be more than enough.
I have tried yet again to get this to work and nothing happens for me.
I download the plugin .txt field. install it. tell it the relative directory is ../templates/ i run the url with the key.
eg: http://bicilogic.net/?rah_flat_key=5678c79135ab96888880434559f5f62
"{"success":true}"
but nothing gets exported.
obviosly i’am missing something.
followup: i just noted that the documentation says : “Rah_flat imports” which begs the question How to we get them out in the first place? manually?
and yet again… i see that this was all answered earlier in this thread… so never mind. ;-)
Last edited by bici (2015-04-09 05:39:56)
…. texted postive
Offline
#220 2015-04-09 14:38:51
Re: [plugin] [ORPHAN] cnk_versioning
followup: i just noted that the documentation says : “Rah_flat imports” which begs the question How to we get them out in the first place? manually?
Yes, manually. That means, you simple create the files with your templates in the corresponding folders (pages/
, forms/
).
Using the default setting (../templates/
), it will look for the templates/
folder in a folder above your textpattern/
folder. That is, usually, in your document root, so you could put your templates in public_html/templates
). If you do so, my suggestion is that you also protect the folder with an .htacces
file, so noone can access them via http://yourdomain.com/templates/
.
Alternatively, you could put them outside your document root (one level up from public_html/
) and reconfigure the setting to point to ../../templates
. That way, you don’t have to hide/protect them, as they are outside of the public reach.
Offline
#221 2015-07-16 02:47:23
- lazlo
- Member
- Registered: 2004-02-24
- Posts: 110
Re: [plugin] [ORPHAN] cnk_versioning
I have been using hcg_templates plugin since it came out and it still works like a charm. Imports and exports and automatically backs up your current files before import. It is compatible with the cnk_versioning exports, to import you have rename the extensions and put it in a parent folder. The biggest bonus of course is that it works with the latest TXP install.
Or you can use mem_templates which is an upgrade to hcg_templates which includes plugins and sections but the caveat is you will have to edit the PHP as instructed here: http://forum.textpattern.com/viewtopic.php?pid=268904#p268904
I think both versions also need to be edited according to this thread. http://forum.textpattern.com/viewtopic.php?pid=233494#p233494
mem_template can be downloaded here https://bitbucket.org/Manfre/txp-plugins/downloads/
Last edited by lazlo (2015-07-16 03:57:35)
Offline
#222 2015-11-09 14:31:17
Re: [plugin] [ORPHAN] cnk_versioning
If you are considering migrating to flat (text) files for managing your pages, forms & styles, you might find these little python scripts helpful. Basically, they will help you with the initial exporting of pages, forms & styles to flat files. Really helpful if you have many forms & pages and want to avoid manual work.
Offline