Web based family history software

This Help forum is for issues relates to the latest release (1.7.9). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

Question [SOLVED] Viibility of Blocks

  • Bartje
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #1 by Bartje
Viibility of Blocks was created by Bartje
I noticed that the'News' Block on the Landing Page for Visitors is not shown in 'My Page', when logged in as a Manager.

I tried to add this Block into My Page, but the option is not available.
Is there a way get this done?
Note: I tried to manage this by changing the Access Level of this one (Config -> Modules -> Blocks) without any success.

Thanks in advance!

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
7 years 2 months ago #2 by fisharebest
Replied by fisharebest on topic Viibility of Blocks
This block has two versions. "News" and "Journal".

The news block goes on the tree's home page.
The journal block goes on the user's home page.

In the control panel, module administration, you'll see that the two blocks have different icons in the list.

Whe this design? I don't know. It was part of PhpGedView (from which webtrees was created), and was probably designed over 15 years ago.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Bartje
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #3 by Bartje
Replied by Bartje on topic Viibility of Blocks
Hi Greg

Found the Journal Block and joined it to the user's page..
There seems to be no synch between News and Journal ..
I mean, in the webtree's page in the News Block the Journal entries are not shown and vice versa ..
Complete different sources I guess, instead of two different 'Windows' on the same source?

Would be nice to be able to opt for access level 'All' in the Blocks config.

Thanks

Bartje

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
7 years 2 months ago #4 by fisharebest
Replied by fisharebest on topic Viibility of Blocks
> There seems to be no synch between News and Journal ..

That's right. They are independent.

The one on your home page is private, and only you see it.
The one on the family tree page is public.

You can have several trees on one site. If you have a news block on a user home page, it could only show the news from one tree.

> Would be nice to be able to opt for access level 'All' in the Blocks config.

If you want this on your own site, it is (probably!) just a one line code change in app/Module/FamilyTreeNewsModule.php
Code:
public function isUserBlock() { return false; }

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Bartje
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #5 by Bartje
Replied by Bartje on topic Viibility of Blocks
Thanks Greg,

That does the trick! .. when changed false to true

I consider this one as solved :)

Bartje

Please Log in or Create an account to join the conversation.

  • Bartje
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #6 by Bartje
Replied by Bartje on topic [SOLVED] Viibility of Blocks
Problem solved.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}