Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Upcoming events linking

Upcoming events linking 14 years 10 months ago #6128

  • neltek
  • neltek's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 48
  • Thank you received: 0
At the moment Upcoming Events can only link to the DTR registration page or Jevents page.

I don't want to use Jevents as we don't set it up fully for each event - just enough to feed DTR.
Also we typically set up an article with more details on each event and have the DETAILS button enabled from the events list.

So from the upcoming events - 2 questions:

a) How do I edit (manually hack) it to link to the events list ?

b) can a future feature be that there will be 2 more choices to link to
i) the DTR events list page
ii) the DTR details article (if exists and set in the event details) and if it doesn't default to the DTR events list

This would allow keeping all the functionality within DTR

cheers

Ian

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

---
Ian Nelson
www.neltek.com

Upcoming events linking 14 years 10 months ago #6144

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
If you want each link in the module's list of events, then you can modify this file:

/modules/mod_dt_upcoming_event.php

Line 233 and line 442:

<a class="dt_event_link" href="<?php echo $reglink; ?>"><?php echo $row->summary; ?>

Change both places to:

<a class="dt_event_link" href="index.php?option=com_dtregister">

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

Upcoming events linking 14 years 10 months ago #6146

  • neltek
  • neltek's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
  • Posts: 48
  • Thank you received: 0
Hi

When I make this change and ftp up to the site it shows a blank white page?

If I replace the original file it works again.

???

I have attached both files - ORIG and NEW in the zip file on this post

Ian
:)
Attachments:

  • Rendering Error in layout Attachment/Item: Property "protected" is not defined. Please enable debug mode for more information.

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

---
Ian Nelson
www.neltek.com

Upcoming events linking 14 years 9 months ago #6661

  • jaywilliams
  • jaywilliams's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 0
Changing the code to this
<a class="dt_event_link" href="index.php?option=com_dtregister"><?php echo $row->summary; ?>

Works the way its intended above, in that it will now link to the events list.

Is it possible to change the code to make it link to the event article, if assigned, instead in that same way the details button in the event list works??

I'm also trying to avoid the JEvents interface.

Jay

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

Upcoming events linking 14 years 8 months ago #7045

  • CQdtr
  • CQdtr's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 7
  • Thank you received: 0

jaywilliams wrote: Changing the code to this

<a class="dt_event_link" href="index.php?option=com_dtregister"><?php echo $row->summary; ?>

Works the way its intended above, in that it will now link to the events list.

Is it possible to change the code to make it link to the event article, if assigned, instead in that same way the details button in the event list works??

I'm also trying to avoid the JEvents interface.

Jay


I want to do this as well. I am assigning articles and showing the Details link, however I would like the user to see the article when they click the link from mod_dt_upcoming_events and then the View/Register buttons (already inserting this link in articles).

Cheers,

Deborah

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

  • Page:
  • 1
Time to create page: 0.127 seconds