Jump to content

Tab Output only for Listing Owners


Michael Pusch

Recommended Posts

Hi,

just a little question about a conditional for output a tab only for admins and listing owners.

This code from the docs don't work for me:

<?php if ( $listing['User']['user_id'] == $User->id || $this->auth->admin ): ?>

It works for admins, but not for the listing owner.

In detail.thtml I tried this code:

<?php if ( $listing['User']['user_id'] == $User->id || $this->auth->admin ): ?>

<li><a href="#WeitererEintragTab"><span class="jrIconPlus"></span><?php __t("Weiterer Eintrag");?></a></li>

<?php endif; ?>

I want to show an aditional tab with links for listing owners to create other listings in other listing types.

Where is my error?

Link to comment
×
×
  • Create New...