Author Topic: Hints Version: 0.6.0  (Read 2204 times)

Offline henri

  • Posts: 136
Hints Version: 0.6.0
« on: March 02, 2019, 01:09:38 PM »
No Hints visible in admin when I log in as a new user.
I do not know if I'm doing something wrong.

A new group is created in the admin of WB and a new user is created.

See screenshot for settings Hints and a not found message in Modify or Delete Pages after logging in as a new user.

PHP-Version: 7.2.14
WebsiteBaker Version: 2.12.1 -r188

Offline Gast

  • Posts: 5920
Re: Hints Version: 0.6.0
« Reply #1 on: March 02, 2019, 01:41:26 PM »
i did not test it and have no time at the moment, to look into the code, but have you set the permission for the new UserGroup in Groups -> Edit your new Group -> advanced permissions -> modules?

see Screenshot from Group Permissions


Offline Martin Hecht

  • Betatester
  • **
  • Posts: 589
  • Gender: Male
    • meine Homepage
Re: Hints Version: 0.6.0
« Reply #2 on: March 02, 2019, 01:45:15 PM »
Exactly, does the new group have the permission to use Hints? And is the new user member of that new group?

Offline henri

  • Posts: 136
Re: Hints Version: 0.6.0
« Reply #3 on: March 02, 2019, 01:57:42 PM »
Hi jacobi22 and Martin Hecht,

A new group is created in the admin of WB and a new user is created who has access to this new group.
All checked in the newly created group. Also with advanced options.

Offline henri

  • Posts: 136
Re: Hints Version: 0.6.0
« Reply #4 on: March 02, 2019, 02:17:51 PM »
Screenshot user and Group data


Offline Martin Hecht

  • Betatester
  • **
  • Posts: 589
  • Gender: Male
    • meine Homepage
Re: Hints Version: 0.6.0
« Reply #5 on: March 02, 2019, 02:25:07 PM »
Ah, and the group needs the permission to modify that page

Offline henri

  • Posts: 136
Re: Hints Version: 0.6.0
« Reply #6 on: March 02, 2019, 05:25:41 PM »
Hello Martin Hecht,

As administrator every page in Modify or Delete Pages assigned to new group.

Do not see Hints appear anywhere yet.

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 589
  • Gender: Male
    • meine Homepage
Re: Hints Version: 0.6.0
« Reply #7 on: March 02, 2019, 10:28:52 PM »
Hi Henri,

you have just added "Testgroep" to the administrators of the "Home" page (and all other pages), right?  Before, this permission was missing and that was the reason for the "Niet gevonden" error (which is generated by the WB core when the user has no permissions to modify any page at all).

Now, user "Henri" should be able to edit the page and see the "Hints" section, right? According to the first screenshot of that Hints section that you have shown, he should be able to edit the content in this section, because the owner "Administrator" has granted the right to modify the section to all groups. If you log in as Administrator and remove the modification permissions, but keep the right to view the hint, at least for the "Testgroep", then Henri should still see the "Hint" but not be able to modify it anymore. If Administrator changes the display mode to something else than "standaard", then user "Henry" will be presented a popup hint, a message at the bottom, or the hint is going to float up to the top region of the page (which is probably not very notable if it is the only section on the page anyway). The standard display mode might also not be anything exciting if you expect "something to happen" - maybe that's what you mean when yo write that you do "not see Hints appear anywhere yet"?

kind regards,
Martin

Offline henri

  • Posts: 136
Re: Hints Version: 0.6.0
« Reply #8 on: March 03, 2019, 10:09:54 AM »
Hi Martin,

This morning I started my browser and went to my website. to my great surprise, I saw that my links in the footer of my website were now at the top of the main menu. The links in the footer worked with showmenu2.
After research, it turned out that in the Modify Page tab the Menu setting had changed from Footer menu to Main menu.

Then I removed the Hints module and removed the created new user. The assigned page is reset to the original administrator. And the Menu setting of Footer menu is correctly set.

Then new user created and assigned several pages to the created group for the new user.

Then the Hints module is reinstalled and tested with the new user. Now appears in the created hidden page Hints a popup with text in it. On the other assigned pages no popup with text appears. I do not know if that should happen.

After restarting browser menu items in footer will now remain in the right place.

Offline Gast

  • Posts: 5920
Re: Hints Version: 0.6.0
« Reply #9 on: March 03, 2019, 11:03:37 AM »
to the footer menu settings.....

Just a few thoughts, because this has happened to me ....
I work a lot with the mouse wheel, often without consciously wanting to. If I am now in the page settings to set maybe new permissions for a new Usergroup, it happens that I am with the mouse on one of the selection boxes and there adjust things with the mouse wheel, which I did not want, so maybe Language, template or menu selection. And if I do not notice that by accident, sometimes I store things that I did not want to store   :oops: :oops: :oops:

be sure, there is no relation between showmenu2 and the hints-module

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 589
  • Gender: Male
    • meine Homepage
Re: Hints Version: 0.6.0
« Reply #10 on: March 03, 2019, 11:54:39 AM »
Hi Henri,

I agree with jacobi22. Probably you have changed the menu setting by accident when you have added the permission for the new group to the page.

About the popup: Each Hints section is specific to its page, more precisely to the "modify page" area of that page. The hints are not global to the whole backend. Or did you add Hints sections on the other pages, too (visible to the new group!) and they still do not appear?

Best regards, Martin

Offline henri

  • Posts: 136
Re: Hints Version: 0.6.0
« Reply #11 on: March 03, 2019, 12:51:44 PM »
Hi jacobi22 and Martin,

Now Hints works fine in the hidden page.
And now it is clear that Hints only works for that page where the Hints module has been added.

Concerns the Menu setting had changed from Footer menu to Main menu. For me a big riddle because there were 6 menu items in Footer that were moved to the menu at the top of the page. And at Modify Page I was only right at administrators with the mouse.

It would be great if Hints in admin of website baker would be at the top of the menu.

see screenshot

Offline Martin Hecht

  • Betatester
  • **
  • Posts: 589
  • Gender: Male
    • meine Homepage
Re: Hints Version: 0.6.0
« Reply #12 on: March 03, 2019, 03:50:24 PM »
Hi Henri,

The possibility to have add or view hints right from the main menu of the backend would require a substantial modification of the WebsiteBaker core. Addons are supported for cintent  of sections, for adding support of a specific language, for backend and frontend templates (only the layout, but not new functionality), admin tools in the Tools area (Beheerfunctues I believe in Dutch), and the Snippets which provide functions that can be called by other addons.

Sure, several ideas in the Hints module would be nice to have in general, e.g. the fine grained access rights on a "per section basis", but the core package can not pick up each and every idea that appears to be useful in some usage scenario. One of the advantages of WB is that it is not too complex and quite easy to use even for beginners with close to zero background knowledge about content management systems.

We have discussed several aspects before I have decided to write the Hints module. The implementation as a content addon that is only visible in the backend, with a built-in permission management was the most straight forward path to go. Maybe, if future WB versions are more flexible, e.g. when there is an interface to register user-defined functions to the menu bar, or when it is possible to inject user-defined content at each place of the backend, things look different, but for now the only solution would be a fork of the backend theme (to insert a new item in the menu) in combination with an own infrastructure to hold the information which hint shall be shown where (there are no page ids or section ids for the whole backend. They onty exist in the page tree).

Best regards
Martin

 

postern-length