WebsiteBaker Support (2.12.x) > Modules

CKEditor WBLink does not detect modules

<< < (5/6) > >>

crnogorac081:
there are 2 lines in modules/oneforall/WBReorg.php  around line 50


--- Code: ---/** sub directory for accessfiles
 * @description  This is needed to correct db::x_mod_table::link entries of former versions<br />
 *               let it empty without a hardcoded subdirectory name like our news addon with a
 *               hardcodet subdirectory. The root directory always will be the pages_directory.
 *               with trailing slash if not empty
 */
    const ACCESSFILES_SUBDIR   = '';

/** root directory for accessfiles */
    protected $sAccessFilesRoot = '';

--- End code ---


But no matter if I change to

    const ACCESSFILES_SUBDIR   = '/ofa';

or
    protected $sAccessFilesRoot = '/ofa';
or both of them as /ofa

it want work... Wierd..

johnbroeckaert:
I got this solution from Jacobi22
Works fine for me...

Try it for yourself and let me/us Know.....
CHEERS

dbs:
Works also for me. Thanks.  (Y)
In my case

--- Code: ---const ACCESSFILES_SUBDIR   = 'de/listen/oneforall';
--- End code ---

edit: it works not if you have the same module on another (sub)page.

crnogorac081:
Someone tell me what is difference between

const ACCESSFILES_SUBDIR   = '';
And
    protected $sAccessFilesRoot = '';

Where are they used.. it seems to me this is same..

But stil, const can not be changed, and
$sAccessFilesRoot  could be changed dinamicly ,something like $sAccessFilesRoot = $language.'/ofa/';  right ?

CodeALot:
I tried the posted WbLink.php and that works, as long as you don't use the same OFA module on different pages.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version