WebsiteBaker Support (2.12.x) > Modules
CKEditor WBLink does not detect modules
CodeALot:
Hi all. There used to be a solution to add different modules (Bakery, Topics, OneForAll) to the pages.php file in /modules/ckeditor/ckeditor/plugins/wblink
This pages.php-file has changed, and now there is a code block (starting at line 225 in pages.php) that should detect all available modules to build WBLinks from:
"/* --- begin: crawl all available page-addons for additional lists -------------------- */"
This however does not work. I have tested this with a fresh install of OneForAll, but the WBLink plugin fails to detect the pages made by that OneForAll-module.
Like I said: there was a workaround in the old version of CKeditor, but that does not work anymore. Anyone any idea?
CodeALot:
Additional info: WBLink DOES detect items of a section of the NEWS module.
It fails however to 'detect' OneForAll-records.
CodeALot:
Never mind. The problem lays deeper than this. It has to do with the new features in WB 2.12.2, like in the announcement:
Added WBLink format [wblink14?addon=news&item=153] to work with addons like news, topics, bakery and so on
It works for News. It does not work for OneForAll.
The link is returned as "#"
For instance, I am on www.mysite.com/pages/home.php
On that page I want to link to page ID 30, which has a OneForAll section. That link should be www.mysite.com/pages/newpage/oneforallitem1.php
--- Code: ---<a href="[wblink30?addon=oneforall&item=1]">Linktext</a>
--- End code ---
But it results in a link to: www.mysite.com/pages/home.php/#
Looks like it's too complex to solve. I'll work around it.
crnogorac081:
You need to create separate droplet for this. For example [ofa-30] i have this for custom addon..
CodeALot:
--- Quote from: crnogorac081 on February 04, 2020, 04:33:28 PM ---You need to create separate droplet for this. For example [ofa-30] i have this for custom addon..
--- End quote ---
That would be a workaround, but not for the client. They want to select a page and then a single record. Just like they can do with Bakery, News and Topics-items. It won't work for OneForAll. :-(
Navigation
[0] Message Index
[#] Next page
Go to full version