Welcome, Guest
Username: Password: Remember me
EventList 1.0.2 for Joomla 1.6 - 2.5
  • Page:
  • 1

TOPIC:

Category-Event View: How to remove table if no events? 6 years 2 days ago #15789

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Karma: 1
  • Thank you received: 4
Dear all,
As titled.
Thanks for any kind of help!
JMY(晉明夷)
mfYoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
YogaJM.com -- YogaJM 晉明瑜伽
jmy89.me -- JMY 晉明日誌
jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法

Please Log in or Create an account to join the conversation.

Category-Event View: How to remove table if no events? 5 years 11 months ago #15886

hi hhtmp88,

did you manage to resolve this one?

and what did you mean with removing table? if i'm right there should be a message disaplying "no events..." do you completely want to hide the filters/table? if so you have to adapt the code manually.
(won't respond to PM)
==================================================================
running local: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0beta3 + PHP 7.2.25
running live: jem2.3.0

Please Log in or Create an account to join the conversation.

Category-Event View: How to remove table if no events? 5 years 11 months ago #16152

  • hhtmp88
  • hhtmp88's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 68
  • Karma: 1
  • Thank you received: 4

Bluefox wrote: hi hhtmp88,

did you manage to resolve this one?

and what did you mean with removing table? if i'm right there should be a message disaplying "no events..." do you completely want to hide the filters/table? if so you have to adapt the code manually.


Not Yet!
What are the codes to do so?

Thanks for any kind of help!
JMY(晉明夷)
mfYoga.org -- Mindfulness Yoga Association 靜觀瑜伽協會
YogaJM.com -- YogaJM 晉明瑜伽
jmy89.me -- JMY 晉明日誌
jm3ime.com -- JinMing 3-Key Chinese Input Method 晉明三鍵輸入法

Please Log in or Create an account to join the conversation.

Category-Event View: How to remove table if no events? 5 years 11 months ago #16172

will try to post some examples next week.

I'm not behind my own pc at the moment so it's a bit difficult to post examples by phone :)
(won't respond to PM)
==================================================================
running local: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0beta3 + PHP 7.2.25
running live: jem2.3.0

Please Log in or Create an account to join the conversation.

Category-Event View: How to remove table if no events? 5 years 11 months ago #16190

hi hhtmp88,.

here some information of how to adapt the code for the eventlist version.

the output for the table of category-event view can be adjusted within the file: components/com_eventlist/views/categoryevents/tmpl/default_table.php. if you take a look at that file you'll see a bunch of code and also the table.

the table starts with this line
<table class="eventtable" width="<?php echo $this->elsettings->tablewidth; ?>" border="0" cellspacing="0" cellpadding="0" summary="eventlist">

and ends with
</table>

as you are explicit stating that you don't want to see the table anymore in case of no events you can do the following.
be aware that you will still see filters etc.. this as they are not located within the table.

chnage the first line fo the table to:
<?php if ($this->noevents == 0) { ?>
<table class="eventtable" width="<?php echo $this->elsettings->tablewidth; ?>" border="0" cellspacing="0" cellpadding="0" summary="eventlist">

and the endline to:
</table>
<?php } ?>

have to say that i didn't try it out..
(won't respond to PM)
==================================================================
running local: pre-alpha JEM 4.x (custom version) + Joomla 4.0.0beta3 + PHP 7.2.25
running live: jem2.3.0

Please Log in or Create an account to join the conversation.

Last edit: by Bluefox.
  • Page:
  • 1
Time to create page: 0.289 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......