Topic Closed
Frank
10 Posts

Hi, I've written a plug-in which works so far, but I'm not able to save settings to the _addondata folder. I'm on Window 10 with Apache and all other plug-ins are saving without any problem with the same save code. Any suggestions?

Frank

3 years ago#11830

mabu
452 Posts
7.8K Downloads
5 Themes
9 Plugins

Difficult to say without the plugin-code. Not all plugins need that folder.

Normally You can save to /_addondata/subfolder (if _addondata exists)

MyGuestbook - plus and the Spamfilter-plugins use such a folder.

P.S.

But plugins only use these _data - directories if they are installed from the web and not if the are manually installed under /addons_

Therefore You should use cms-variables like $addonRelativeCode and $addonPathCode  for pathes. This is of course not for a beginner in Js and php - or : much to study....

Edited: 3 years ago#11833

mahotilo
28 Posts
Sorry, wrong post :)
Edited: 3 years ago#11834

Frank
10 Posts

Sorry, the culprit was a stupid typo.

But I have a other question. Is there any documentation or tutorial how to make a plug-in editable in the sections?

 

Edited: 3 years ago#11838

mabu
452 Posts
7.8K Downloads
5 Themes
9 Plugins

The only documentation is in the above plugin-link and the Git-wiki

For the rest You will have to study plugins with this feature (which also use hooks).

Which sections do You mean ?

Edited: 3 years ago#11839

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

Log In

  Register