× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

Bespoke code - where should I add it?

il y a 4 ans 4 mois #9779 par Graham Thomas
Bespoke code - where should I add it? a été créé par Graham Thomas
Hi,

I'd like to override the front-end display code of a table to reformat the content as a document and not a table.
Is there somewhere I can put this code?

E.g. currently:

<div class="item_fields">
<table class="table">

<tr>
<th><?php echo JText::_('COM_BOXLEAGUE_FORM_LBL_BOXLEAGUE_ID'); ?></th>
<td><?php echo $this->item->id; ?></td>
</tr>
<tr>
<th><?php echo JText::_('COM_BOXLEAGUE_FORM_LBL_BOXLEAGUE_BL_NAME'); ?></th>
<td><?php echo $this->item->bl_name; ?></td>
</tr>
</table>
</div>

However I would like something like this:

<div class="item_fields">
<h1><?php echo $this->item->bl_name; ?></h1>
</div>

Connexion ou Créer un compte pour participer à la conversation.

il y a 4 ans 4 mois #9780 par Søren Beck Jensen
Réponse de Søren Beck Jensen sur le sujet Bespoke code - where should I add it?
You should be using template overrides. You can learn more about them here: docs.joomla.org/How_to_override_the_outp...rom_the_Joomla!_core

Søren Beck Jensen
Founder, Component-Creator.com

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.046 secondes
Propulsé par Kunena

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.