Using the latest download zip and v1.0.9.0 (and tested on v.1.0.9.10)
In both author and folder, expecting the listen_infoBox function in the hook files to output in the infoBox but nothing shows there for either.
S05e02 - Info pages extensions QUESTIONS/SUPPORT
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: S05e02 - Info pages extensions QUESTIONS/SUPPORT
A vain attempt at changing the order of the functions was unsuccessful so still stuck on this one.
Any pointers appreciated.
- burt
- Core Team
- Posts: 4550
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: S05e02 - Info pages extensions QUESTIONS/SUPPORT
I think they'd only show if an author / folder is assigned.
Assumption you have assigned??
Assumption you have assigned??
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: S05e02 - Info pages extensions QUESTIONS/SUPPORT
Yes, created a new info page - 'New Page'
Assigned Author:
but nothing in infobox:
You do not have the required permissions to view the files attached to this post.
- burt
- Core Team
- Posts: 4550
- Joined: Tue Oct 29, 2019 9:37 am
- Phoenix Version: v1.1.0.8
- : Buy Me A Beverage
- Has thanked: 252 times
- Been thanked: 412 times
Re: S05e02 - Info pages extensions QUESTIONS/SUPPORT
Try
As in
Similar for Folders.
Code: Select all
$GLOBALS['table_definition']Code: Select all
function listen_infoBox($parameters) {
if (!Text::is_empty($GLOBALS['table_definition']['info']->author ?? '') && ($container = AUTHORS_ARRAY[$GLOBALS['table_definition']['info']->author]['name'] ?? false)) {
$parameters['contents'][] = ['text' => sprintf(PAGE_AUTHOR_CONTAINER, $container)];
}
}
I am not here to build for you.
I am here to build with you. Let's help each other.
I am here to build with you. Let's help each other.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: S05e02 - Info pages extensions QUESTIONS/SUPPORT
Yes, that change works TY.
You do not have the required permissions to view the files attached to this post.