Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bookcreator and farmer plugin #141

Open
farmascript opened this issue Mar 16, 2023 · 4 comments
Open

bookcreator and farmer plugin #141

farmascript opened this issue Mar 16, 2023 · 4 comments

Comments

@farmascript
Copy link

farmascript commented Mar 16, 2023

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?

@farmascript farmascript changed the title bookcreator and farming plugin bookcreator and farmer plugin Mar 16, 2023
@Klap-in
Copy link
Owner

Klap-in commented Mar 16, 2023

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?)

@farmascript
Copy link
Author

farmascript commented Mar 16, 2023

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:

  • Wiki page where the book manager is displayed: book_an2:ebook
  • Wiki page with info and instructions: book_an2:ebook_help
  • Namespace where selections are saved: book_an2:

Everything works as expected.

When animal1 wants a book of his own with pages from his animal1 site.
Settings accordingly in his configuration file:

  • Wiki page where the book manager is displayed: book_an1:ebook
  • Wiki page with info and instructions: book_an1:ebook_help
  • Namespace where selections are saved: book_an1:

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.

@farmascript
Copy link
Author

The plugin can be disabled in the farmer for the animals of your choice. But then they cannot use this (very usefull) plugin.

@Klap-in
Copy link
Owner

Klap-in commented Jul 16, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants