Jump to content


Photo
- - - - -

Submission layout


Best Answer 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.

Go to the full post


  • This topic is locked This topic is locked
1 reply to this topic

#1 P.K

P.K
  • JBZoo User
  • User rate: 0
  • posts: 155
  • topics: 35

Posted 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
  • JBZoo User (rus)
  • User rate: 11.9
  • posts: 406
  • topics: 40

Posted 07 July 2014 - 22:23   Best Answer

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!