×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
Bespoke code - where should I add it?
Graham Thomas
New Member
Posts: 1
4 года 4 мес. назад #9779
от Graham Thomas
Graham Thomas создал тему: Bespoke code - where should I add it?
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>
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>
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Søren Beck Jensen
Administrator
Posts: 81
4 года 4 мес. назад #9780
от Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Søren Beck Jensen ответил в теме 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
Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.
Время создания страницы: 0.050 секунд