Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#171 2012-02-01 18:31:47

markus_falk
Member
Registered: 2012-01-14
Posts: 11

Re: [plugin] [ORPHAN] cnk_versioning

aaaahhh … seems to be working now … I created a subfolder for those 3 required folders … that did the trick :) that and checking the path again ;)

thanks alot guys … that just saved my day … o and made developing for txp like it should be :)

Offline

#172 2012-02-17 15:33:44

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

Re: [plugin] [ORPHAN] cnk_versioning

Hi Nate.

Check that the $CNK_VER_OUTPUT_PATH variable is pointing to the correct folder, where the pages/ and forms/ folders are stored.

$CNK_VER_OUTPUT_PATH = 'path/to/folder'; //e.g. 'textpattern/_templates/versioning/'

Also, check that the $CNK_VER_EXT is also set correctly to the file extension you are using.

$CNK_VER_EXT = 'txp';

I’m not sure why alanfluff decided to set it to “php”. I mean, it’s totally OK that he prefers to use .php for pages & forms files, instead of the default .txp extension, but I wonder what’s the reason.

Thinking out loud: OK, I can think of a reason. If pages & forms are located in a folder that is publicly accessible (via a webserver), using a .php extension will probably return a blank page (or a page with errors), instead of the raw/plain-text code for the page or form.
So, setting the extension to .php may “hide” the code for your pages & forms, which is a good thing, although I prefer to use an .htaccess file inside the pages & forms folders to do the same (i.e. to avoid webserver serving those files publicly). I don’t have the .htaccess (which is just one or two lines) right now at hand, but I’ll post it when I do.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#173 2012-02-17 15:34:15

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

Re: [plugin] [ORPHAN] cnk_versioning

Ops!
Nate’s post “disappeared”!


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#174 2012-02-17 15:35:53

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 221
Website

Re: [plugin] [ORPHAN] cnk_versioning

Yes it did!

Btw, I did it (.PHP) so that when the files were opened in my editor they had syntax highlighting.

I added a warning to the top of my post also, just re-iterating the original author.


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#175 2012-02-17 15:43:13

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

Re: [plugin] [ORPHAN] cnk_versioning

Julián, Thanks. I had two things wrong, I have my extensions set to .php instead of .txp (which they were in the old version) and my production was set to Live. Switching to Testing and fixing that extension setting saved my morning!

Offline

#176 2012-02-17 15:43:56

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

Re: [plugin] [ORPHAN] cnk_versioning

maniqui wrote:

Ops!
Nate’s post “disappeared”!

figured out the problem about 2 minutes after I posted……

Offline

#177 2012-02-17 16:17:04

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,036
Website

Re: [plugin] [ORPHAN] cnk_versioning

I did it (.PHP) so that when the files were opened in my editor they had syntax highlighting

That’s what I thought when I read your instructions because it was something I faced too. In my case I was able to set my OS to open txp files with my preferred code editor, and in the code editor I added the “txp” file extension to the file extensions that are displayed using html/php syntax highlighting.

although I prefer to use an .htaccess file inside the pages & forms folders to avoid webserver serving those files publicly.

I agree, I think that’s a better approach. This is what we have in the .htaccess in one of our repos. Is that it?

Order Deny, Allow
Deny from all

TXP Builders – finely-crafted code, design and txp

Offline

#178 2012-08-01 20:01:19

drudog
Member
Registered: 2011-02-01
Posts: 20

Re: [plugin] [ORPHAN] cnk_versioning

I followed Alan’s directions to a ‘T’ and still I can’t get this bugger to work. The path to my dev site and txp install is webroot/dev/ but I put the required folders in both the webroot and in /dev/ directories and set the permissions wide open (777).

I checked that the path in the plugin is correct.

When I follow Alan’s directions the plugin tells me the files were successfully created in the directories but when I go verify via FTP the folders are bare. I even tried manually uploading a new page to those folders to see if txp would recognize the new files under sections>‘uses page:’ but the newly uploaded file doesn’t show in the drop down list of pages.

I am using a newly installed version of txp 4.4.1

Anyone have an idea how to get this plugin working? Any help is very appreciated.

Offline

#179 2012-08-01 20:24:25

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 221
Website

Re: [plugin] [ORPHAN] cnk_versioning

Ack :/ really sorry @drudog that this is not working. I wish I had something else to add but the best of my knowledge on this is here in this thread.

The only other thing that came to mind was that I think I did all this on a local MAMP env’ and so at least permissions were likely less of an issue. Good luck and sorry I can’t add anything more at the moment.


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#180 2012-08-01 20:25:37

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

Re: [plugin] [ORPHAN] cnk_versioning

When I follow Alan’s directions the plugin tells me the files were successfully created in the directories but when I go verify via FTP the folders are bare. I even tried manually uploading a new page to those folders to see if txp would recognize the new files under sections>‘uses page:’ but the newly uploaded file doesn’t show in the drop down list of pages.

When you did this test, did you recall to set the website in “Testing” mode & hit (ie. visit) the front-end at least once?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB