×

Notice

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

TOPIC: Hidden startdate and enddate are shown

Hidden startdate and enddate are shown 11 years 9 months ago #19347

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Dear Yves,
I'm using the 'modern' event template in configuration settings.
As I'm still planning an event I don't want to show the startdate and enddate of that event in the frontend. Configuring the event I do have an option to hide startdate and enddate so I'm using it. Surprisingly it is still shown in the frontend. Can you please debug it in a new version?
When will a new version be available?

Hidden startdate and enddate are shown 11 years 9 months ago #19348

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

this option is deprecated and not used anymore in the new modern template - Thought nobody is using it :unsure:

Pretty easy to enable, you just need to insert: if ($this->event->showbegin > 0) { .. } around the output. If you need a more detailed instruction feel free to contact me on Skype (yves.hoppe)

Best regards,

Yves

Hidden startdate and enddate are shown 11 years 9 months ago #19349

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Hi Yves,
Thanks for your reply. Sorry to read that it is not used anymore in the modern template because nobody uses it. Maybe it's not used because it doesn't work well ;) When it works well maybe it will be used.
I'm not using skype.
In which file I do have to add the code manually?

Hidden startdate and enddate are shown 11 years 9 months ago #19350

  • Yves Hoppe
  • Yves Hoppe's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 3519
  • Karma: 71
  • Thank you received: 556
Okay going to reinsert it again (just for you ;) ) - you have to edit components/com_matukio/views/event/tmpl/modern.php

Just search for COM_MATUKIO_BEGIN - and replace the two table lines (begin and end) with the following code
<?php if ($this->event->showbegin > 0) :?>
            <tr>
                <td class="key" width="80px">
                    <?php echo JTEXT::_('COM_MATUKIO_BEGIN'); ?>
                </td>
                <td>
                    <?php echo $htx1 . JHTML::_('date', $this->event->begin
                    , MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')) . $htx2; ?>
                </td>
            </tr>
            <?php endif; ?>
            <?php if ($this->event->showend > 0) :?>
            <tr>
                <td class="key" width="80px">
                    <?php echo JTEXT::_('COM_MATUKIO_END'); ?>
                </td>
                <td>
                    <?php echo $htx1 . JHTML::_('date', $this->event->end
                    , MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')) . $htx2; ?>
                </td>
            </tr>
            <?php endif; ?>

Yves

Hidden startdate and enddate are shown 11 years 9 months ago #19351

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Thanks a lot! I'm going to make that change this evening. I'll let you know.

Dirk

Hidden startdate and enddate are shown 11 years 9 months ago #19358

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
Hi Yves,
It's working well (for one part). Showing the overview of all events the beginning en enddate of some events (which I wanted) is hidden. When I want more information about a specific event I'm selecting it by clicking on it.
In the event-information at the right the begindate is hidden (that's okay) and the enddate is shown. I'd like to hide the enddate as well.
Is there another part of the code to be changed?
Thanks a lot in advance :)

Hidden startdate and enddate are shown 11 years 9 months ago #19359

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

then you made a mistake changing the code - perhaps you overwrote only the beginning part and forgot the end part. It's the <tr> direct under it.

E.G. this block:

<tr>
<td class="key" width="80px">
<?php echo JTEXT::_('COM_MATUKIO_END'); ?>
</td>
<td>
<?php echo $htx1 . JHTML::_('date', $this->event->end
, MatukioHelperSettings::getSettings('date_format_small', 'd-m-Y, H:i')) . $htx2; ?>
</td>
</tr>


Best regards,

Yves

Hidden startdate and enddate are shown 11 years 9 months ago #19360

  • Dirk Smit
  • Dirk Smit's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 11
  • Thank you received: 0
:blush: I made a mistake.
Now it's working fine!
Thanks again for your help!

Best regards,
Dirk
  • Page:
  • 1
Time to create page: 0.134 seconds