×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Backbutton on default event template

Backbutton on default event template 10 years 5 months ago #26800

  • Rob Swart
  • Rob Swart's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 57
  • Thank you received: 5
Hi Yves,

For some reason (I suppose) you've removed the Back button from the default event template.
I would like to have that back :)

Again this is something I code myself with every new release of Matukio.
I put this code after line 147 ($gmapicon = ""; ) in default.php
$backlink = JRoute::_("index.php?option=com_matukio&view=eventlist&art=" . $zurueck[$this->art]); //. "&cid=" . $this->event->id);
// Zurueck-Knopf anzeigen		
$knopfoben = "<a title=\"" . JTEXT::_('COM_MATUKIO_BACK') . "\" href=\"" . $backlink . "\"><img src=\""
    . MatukioHelperUtilsBasic::getComponentImagePath() . "1032.png\" border=\"0\" align=\"absmiddle\"></a>";
 
$knopfunten .= " <span class=\"mat_button\" style=\"cursor:pointer;\" onclick=\"location.href='" . $backlink . "'\">
    <img src=\"" . MatukioHelperUtilsBasic::getComponentImagePath() . "1016.png\" border=\"0\" align=\"absmiddle\">&nbsp;"
    . JTEXT::_('COM_MATUKIO_BACK') . "</span>";
This is the code that was in the old Seminar event view.
I don't know why this button was removed. Maybe there was a very good reason to do so. But if not, then I would appreciate it very much when you could reinstate this button.

Greets,
Rob

Backbutton on default event template 10 years 5 months ago #26801

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Hi Rob,

multiple reasons:

- With Matukio you can now use the browser navigation buttons (e.g. back and forward) instead of that button (without problems like on seminar!! Which used javascript for navigation.. never ever use onClick=location.href)
- We need the space
- You can also use a breadcrumb

Best regards,

Yves

Backbutton on default event template 10 years 5 months ago #26802

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
P.S. use that code if you really want that button (this is just a reference to the back button in the browser):

<a href="javascript:history.back()">Back</a>

Yves

Backbutton on default event template 10 years 5 months ago #26806

  • Rob Swart
  • Rob Swart's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 57
  • Thank you received: 5
Hi Yves,

Thanks for clearing that up.
OK, so you had good reasons to remove this button :)

I think I will not add this code on my next upgrade. And when I get complaints I will use the code you proposed to make my own button.
  • Page:
  • 1
Time to create page: 0.155 seconds