1. Michel Ollivier
  2. Sherlock Holmes
  3. Newbie area
  4. Wednesday, 02 September 2015
  5.  Subscribe via email
 Hi Daniel,

I added this line in hotspot view to enable user to edit hotspot from hotspot itself. What do you think of it?

<?php  if (!$currentUser->guest) : ?>
<?php if ($currentUser->authorise('core.edit.own', 'com_hotspots') && $currentUser->get('id') == $this->hotspot->created_by) : ?>
<div class="row text-center">
<a class="btn btn-lg btn-danger" href="/<?php echo JRoute::_('index.php?option=com_hotspots&task=form.edit&id=' . $this->hotspot->id); ?>">
<?php echo JText::_('JACTION_EDIT'); ?>
</a>
</div>
<?php endif; ?>
<?php endif; ?>


Regards
Michel
Responses (2)


There are %s replies to this question. If you want to see them you need a valid subscription.
If you have a valid subscription, please login now.
Visit store now
Powered by EasyDiscuss for Joomla!