It would be really nice if it could be used as a custom source in the YOOtheme Pro page builder, so we could place it inside built-in layouts like galleries, grids, or lists and fully control the layout from the builder.
Phoca Image Fields Plugin
-
keep2000
- Phoca Enthusiast

- Posts: 93
- Joined: 14 Nov 2022, 12:04
Re: Phoca Image Fields Plugin
Hello, great plugin — thanks for the work! 
It would be really nice if it could be used as a custom source in the YOOtheme Pro page builder, so we could place it inside built-in layouts like galleries, grids, or lists and fully control the layout from the builder.
It would be really nice if it could be used as a custom source in the YOOtheme Pro page builder, so we could place it inside built-in layouts like galleries, grids, or lists and fully control the layout from the builder.
- Jan
- Phoca Hero

- Posts: 49616
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Image Fields Plugin
Hi, unfortunately I am not user of YOOtheme PRO and don't the the PRO so this should be a question on someone familiar with YOOtheme Pro 
Jan
Jan
If you find Phoca extensions useful, please support the project
-
Plam
- Phoca Newbie

- Posts: 2
- Joined: 04 Jul 2026, 11:41
Re: Phoca Image Fields Plugin
Hi! Is it possible to use the Phoca Image Fields Plugin with the Joomla Custom Field option "Do not automatically display" and manually insert the field code at the desired location within the article content?
Currently, the gallery can only be displayed before or after the article content.
Currently, the gallery can only be displayed before or after the article content.
- Jan
- Phoca Hero

- Posts: 49616
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Image Fields Plugin
Hi, it is possible since version 6.0.4:
https://www.phoca.cz/download/78-phoca- ... lds-plugin
https://www.phoca.cz/download/78-phoca- ... lds-plugin
If you find Phoca extensions useful, please support the project
-
Plam
- Phoca Newbie

- Posts: 2
- Joined: 04 Jul 2026, 11:41
Re: Phoca Image Fields Plugin
Thank you! You are amazing!
- Jan
- Phoca Hero

- Posts: 49616
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
AlainR
- Phoca Enthusiast

- Posts: 85
- Joined: 24 Jul 2018, 16:33
Re: Phoca Image Fields Plugin
I try to use this plugin as a field in the DPCalendar component.
The emplacement after or before content doesn't work. I only can display it after title or no display and call the field with {field 31}.
Then I see that the file plugins/fields/phocaimage/src/Extension/Phocaimage.php only works with articles and all code is in onContentBeforeDisplay function (no code in onContentAfterDisplay function).
Do you project to develop the onContentAfterDisplay function?
Because I can see your plugin works with DPCalendar if I add
in
The emplacement after or before content doesn't work. I only can display it after title or no display and call the field with {field 31}.
Then I see that the file plugins/fields/phocaimage/src/Extension/Phocaimage.php only works with articles and all code is in onContentBeforeDisplay function (no code in onContentAfterDisplay function).
Do you project to develop the onContentAfterDisplay function?
Because I can see your plugin works with DPCalendar if I add
Code: Select all
$context = $event->getArgument('context');
$item = $event->getArgument('item');
$result = $this->renderPositionedGallery($context, $item, '3');
if ($result !== '') {
$event->addResult($result);
}Code: Select all
public function onContentAfterDisplay(EventInterface $event)
{
// Currently handled in beforeDisplay to control exact position relative to text body
}- Jan
- Phoca Hero

- Posts: 49616
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Image Fields Plugin
Hi, hard to say, if the code can run parallel in both events, then it can be in conflict to each other (e.g. the code will be displayed twice
)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
GrahamW_1968
- Phoca Newbie

- Posts: 5
- Joined: 17 Oct 2026, 08:42
Re: Phoca Image Fields Plugin
mate, been reading this thread and its a bit over my head, but I reckon I get the basic problem... if the gallery code runs in both onContentBeforeDisplay and onContentAfterDisplay it could show up twice on the page. Is there a proper way to stop that, like a simple flag or check so it only renders once per item, or would that just be a dodgy workaround?
Also, does it matter which position the user picks in the field settings, or does the plugin ignore that completely for anything that isnt an article? Asking because I recieve the odd request for a custom field setup like this and definately dont want to break teh layout... cheers
Also, does it matter which position the user picks in the field settings, or does the plugin ignore that completely for anything that isnt an article? Asking because I recieve the odd request for a custom field setup like this and definately dont want to break teh layout... cheers