Перейти к содержимому


Фотография
- - - - -

Submission layout


Лучший Ответ Kess , 07 July 2014 - 22:23

You can do this here:

components/com_zoo/partials/_mysubmissions.php

there is this line there:

<h3 class="toggler"><?php echo $item->name; ?> <span>(<?php echo $item->getType()->name; ?>)</span></h3>

change it like this:

<h3 class="toggler"><?php echo $item->name; ?> <?php echo JText::_($this->app->zoo->getGroup($item->access)->name); ?> <span>(<?php echo $item->getType()->name; ?>)</span></h3>

this part prints an access group name:

<?php echo JText::_($this->app->zoo->getGroup($item->access)->name); ?>

so you can move it to other span if you want.

Перейти к сообщению


  • Закрытая тема Тема закрыта
В теме одно сообщение

#1 P.K

P.K

Отправлено 07 July 2014 - 04:10

Hi

On the My submission page where all the submissions by the user are displayed i need to show the product access(for ex public, special etc) next to the name field. Can you tell me which variables i need to use to show that and which file needs to be modified?

 

thanks


  • 0

#2 Kess

Kess

Отправлено 07 July 2014 - 22:23   Лучший Ответ

You can do this here:

components/com_zoo/partials/_mysubmissions.php

there is this line there:

<h3 class="toggler"><?php echo $item->name; ?> <span>(<?php echo $item->getType()->name; ?>)</span></h3>

change it like this:

<h3 class="toggler"><?php echo $item->name; ?> <?php echo JText::_($this->app->zoo->getGroup($item->access)->name); ?> <span>(<?php echo $item->getType()->name; ?>)</span></h3>

this part prints an access group name:

<?php echo JText::_($this->app->zoo->getGroup($item->access)->name); ?>

so you can move it to other span if you want.


  • 1




Click to return to top of page in style!