Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
ckgedit and farmer plugin
Avatar
PaceyIV #1
Member since Dec 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: ckgedit and farmer plugin
I can't figurate how to configure my wiki to use ckgedit with farm created with farmer plugin (https://www.dokuwiki.org/plugin:farmer).

When I access to the farming information (see the farmer plugin) from the farmer I get these paths

Instance is                                    The farmer!
Instance Configuration Directory    /var/local/dowuwiki/www/conf/
Instance Data Directory            /var/local/dowuwiki/data/ecwiki/
Farmer Install                            /var/local/dowuwiki/www/
Farmer Host Name                    ecwiki.it
Animal directory                            /var/local/dowuwiki/data/
Animals   
                                               1. software
                                               2. tecnico
Configuration Settings                   inherited from farmer

When I access to the farming information from an animal I get these paths

Instance is                                     An Animal!
Animal Name / Domain                     software
Instance Configuration Directory    /var/local/dowuwiki/data/software/conf/
Instance Data Directory            /var/local/dowuwiki/data/software/data/
Farmer Install                            /var/local/dowuwiki/www/
Farmer Host Name                    ecwiki.it
Animal directory                            /var/local/dowuwiki/data/

I create the symbolic links in the lib/plugins/ckgedit/fckeditor/userfiles to link to /var/local/dowuwiki/data/ecwiki/ (the farmer data directory) and works.

I've tried to create symbolic links in the same way in the directory software and tecnico next to userfiles but it doesn't work.
I've also tryed to create two symbolic links software.ecwiki.it and tecnico.ecwiki.it inside farmer directory to the animals data directory but it doesn't work. I can see only farmer images from any animals.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4161 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Folow the instructions found here: https://www.dokuwiki.org/plugin:ckgedit#farms

Notice that farms requires a dedicated version of ckgedit.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
PaceyIV #3
Member since Dec 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
I've read that page. You create animals with your script and use farm.php of dokuwiki.
With the farmer plugin, animals are created in a different way and dokuwiki use DokuWikiFarmCore.php provided by this plugin. In this way I can use inheritance to manage all my wiki in the same way.
I'm trying to understand if is it possibile to use ckgedit with this farm setup.

In my wiki I use VirtualHost. According with your instructions I have to create the animal directory inside the wiki folder. I've create a symbolic link software.ecwiki.it in my farmer directory /var/local/dowuwiki/www/ that link to my real animal directory /var/local/dokuwiki/data/software.
It doesn't works. fck browser always shows the contain of userfiles.

I've seen that you make use of $conf['animal'] to understand if it is an instance of a animal. And you set a cookie (FCK_animal_inc) to save a path.
I've set the variables animal and animal_inc in my animal local.php (they are not used with farmer plugin), but I can't have the FCK_animal_inc in the cookie.

EDIT

With ckgdoku_farms instead of ckgedit_farms is it possibile to manage animals created by farmer plugin with virtual host.
I have to set only $conf['animal'] and $conf['animal_inc'] in the animal local.php if I want to use ck browser and create the symbolic link in fckeditor to the animal media directory. Now I've get the FCK_animal, FCK_animal_inc and FCK_farmlocal cockies.

With DW browser I don't need any symbolic links.
This post was edited on 2017-05-15, 22:50 by PaceyIV.
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4161 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
With ckgdoku_farms instead of ckgedit_farms is it possibile to manage animals created by farmer plugin with virtual host.
I have to set only $conf['animal'] and $conf['animal_inc'] in the animal local.php if I want to use ck browser and create the symbolic link in fckeditor to the animal media directory. Now I've get the FCK_animal, FCK_animal_inc and FCK_farmlocal cockies

Is this a question or a solution?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
PaceyIV #5
Member since Dec 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
A solution, it works.
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 4161 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Thank you.  I will put this on the ckgdoku page.  Does your method work with ckgedit or just with ckgdoku?
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2017-05-16, 12:08 by turnermm.
Avatar
PaceyIV #7
Member since Dec 2013 · 4 posts
Group memberships: Members
Show profile · Link to this post
It works only with ckgdoku.
Avatar
turnermm (Moderator) #8
Member since Oct 2009 · 4161 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Thank you again.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-07-18, 09:02:39 (UTC +02:00)