• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

Solved Custom module in detail view.

Not sure, what you mean with 'detailed view of my list'

Basically you can always add in the intro or footer section of a list or a form some other Joomla content.
You need to search Joomlas documentation for 'loadposition' or 'loadmodule'
 
Not sure, what you mean with 'detailed view of my list'

Basically you can always add in the intro or footer section of a list or a form some other Joomla content.
You need to search Joomlas documentation for 'loadposition' or 'loadmodule'
Good morning, this is the detail of the view. I've attached an image to clarify.
Thank you very much for the help.
 

Attachments

  • list.png
    list.png
    31 KB · Views: 74
  • details.png
    details.png
    13.8 KB · Views: 67
So basically you need to load your custom HTML module in the intro section of your form (like you would include it into an article.
How this is done is described here -> https://docs.joomla.org/How_do_you_put_a_module_inside_an_article?/en
And as Lorenz mentioned ensure you enable Joomla plugins in your form settings.
Thanks for the help. But I don't think I explained myself well or you didn't understand me. I just want to post the details in image 2. The list doesn't have any.
 
Hmm,...What do you mean with "detaisl"? Details from a Fabrik dataset? Then yu could simply use a Fabrik plugin in the formintro.
 
Or probably you didn't understand me :-)
I talked about the intro section of the form and not the lis

I've done what you've told me, but it doesn't work. If I assign the module to the menu item that has the list, I can see it in both the list and the details, but I only need it in the details, as you can see in the last two images.

1741968787983.png
1741968933572.png
 

Attachments

  • test lista.png
    test lista.png
    29 KB · Views: 63
  • test details.png
    test details.png
    14.8 KB · Views: 59
As @wezetel said;
I talked about the intro section of the form
If you assign it to the list's menu item it will show up there (that's what is to expect).

Include it only in the form's intro and
And make sure that you have enabled "Process Joomla Plugins" in the settings of your form and/or list, depending on where you want your module to be.
 
I'm sorry, but I don't know what I'm doing wrong. I entered it in the form's introduction, as you can see in the image, but the module doesn't appear.
 

Attachments

  • 1741973836971.png
    1741973836971.png
    152.8 KB · Views: 53
ust to be sure that we are not having a misunderstanding here: We propose that you load the module via a plugin in the details intro. No need to assign your module to a position and a menu, you can just use the name of the module, like this

Code:
{loadmodule mod_module_name}
 
This was the problem. I had edited the details template in a custom template I had published and disabled the code that was duplicating the same form image in the details, and that's the reason.I'll see how I can do this while keeping the form image disabled in the details and still being able to publish the module.Thank you very much for the help, and I'm sorry for wasting your time.


<?php
/**
* Bootstrap Details Template (Ejemplo Básico)
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2020 Media A-Team, Inc.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.1
*/

// No permitir acceso directo
defined('_JEXEC') or die('Restricted access');

// Obtener el formulario y el modelo
$form = $this->form;
?>

<!-- Contenedor principal de la vista de detalles -->
<div class="fabrikForm fabrikDetails" id="<?php echo $form->formid; ?>">


<!-- Introducción del formulario -->
<?php
/*
if (!empty($form->intro)) : ?>
<div class="form-intro"><?php echo $form->intro; ?></div>
<?php
endif;
*/
?>


<!-- Renderizar grupos -->
<?php foreach ($this->groups as $group) : ?>
<fieldset class="<?php echo $group->class; ?>" id="group<?php echo $group->id; ?>">

<!-- Título del grupo -->
<?php if ($group->showLegend) : ?>
<legend><?php echo $group->title; ?></legend>
<?php endif; ?>

<!-- Elementos del grupo -->
<?php
$this->elements = $group->elements;
echo $this->loadTemplate($group->tmpl); // Cargar la plantilla de los elementos
?>
</fieldset>
<?php endforeach; ?>

<!-- Outro del formulario -->
<?php if (!empty($form->outro)) : ?>
<div class="form-outro"><?php echo $form->outro; ?></div>
<?php endif; ?>
</div>
 

Members online

No members online now.
Back
Top