Open farmascript opened 1 year ago
Are plugins installed per animal? What do you mean with book, a stored selection in your ebook namespace? (Or a pdf template, to style your book?)
The plugin can only be installed by the 'farmer' (the basic dokuwiki site). Each 'animal' can use the plugin. The configuration settings are individual for each animal.
Situation: farmer | +--- animal1 |
---|
+--- animal2 | etc...
The icon for plugin_bookcreator__addtobook is added to each animal's site.
Now, the first time, say, animal2 creates a book with settings in his configuration file:
Everything works as expected.
When animal1 wants a book of his own with pages from his animal1 site. Settings accordingly in his configuration file:
Bookcreator shows on each page in each animal page where ~~BOOK~~
is placed, the toolbar with the total of pages from each other animal included.
When you click on 'manage book' you get 'This topic does not exist yet'. What is ok.
The problem is that the number of pages, displayed after 'manage book' includes the pages from the other animals... And the listing beneath is the listing with the namespaces for the pages from the 'foreign' owner of those pages. When you click on such an url, again, 'This topic does not exist yet' is showed correctly.
The plugin can be disabled in the farmer for the animals of your choice. But then they cannot use this (very usefull) plugin.
Ah, I think see what happened. Each animal is (of course) a separate set of pages, with also a ..:ebook page for the Book manager. If you load in the Book manager a saved selection, or you mark pages in your animal for inclusion, then these listed pages are stored temporary in your browser's localStorage. Data in localStorage is only shared within the same domain, so I guess your animals are in different paths on the same domain, is that right? I will see how I prevent mixing between the different paths on the same domain.
Thank you for this fine plugin! I have the plugin farmer active. Is there a possibility to give each animal an exclusive book, only visible to that specific animal?