PlgEditors-xtd - class name problem #809
Replies: 3 comments 5 replies
-
|
ok it start to work. |
Beta Was this translation helpful? Give feedback.
-
|
of course |
Beta Was this translation helpful? Give feedback.
-
|
yes, I already did it on this way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create an button as an editor extension. In the php file, the default class name of the plugin starts with PlgEditors-xtd + the plugin name, example class PlgEditors-xtdBookshopButton extends CMSPlugin. This dash in the class name makes an error in PHPStorm and also when I open an article:
syntax error, unexpected '-', expecting '{'Therefore I changed the class name to PlgEditors_xtdBookshopButton. No error anymore.
But I cant not just change it with
/***[REPLACE<>$$$$]***/this make a compilation warning:Custom Code Warning File plugin_editors-xtd_bookshopbutton/bookshopbutton.php could not be found, so the custom code for this file could not be addded.So what to do know?
Another thing, the expected button doesn't appear in the editor. I compared the code (function onDisplay($name)) with editor-xtd/article.php and it is almost the same, but still no button. Is there something missing to add ?
Beta Was this translation helpful? Give feedback.
All reactions