Monday, 19 November 2018
  3 Replies
  0.9K Visits
0
Votes
Undo
Hi,

I'm trying to remove the hyperlink to events in Day view so they can just see the event and basic information without going into the event itself but can't seem to find how to do this, i have gone into listevents_body.php under /templates/ja_events_ii/html/com_jevents/default/day and gone to this piece of code towards the very bottom and a // just in front of echo and it removes the title and hyperlink but i just want the hyperlink gone not the title. Am i editing the wrong piece of code.??


<div class="header item-header clearfix">

<?php
echo '<h2><a href="' . $row->viewDetailLink($row->yup(), $row->mup(), $row->dup(), $Itemid) . '">' . $row->title() . ' </a></h2>';
?>
<dl class="article-info">
<dd>
<span class="icon-calendar"></span>
<?php
echo $row->startDate();
?>
</dd>
<dd>
<span class="icon-time"></span>
<?php
echo JEVHelper::getTime($row->getUnixStartTime(), $row->hup(), $row->minup()) . ' - ';
echo JEVHelper::getTime($row->getUnixEndTime(), $row->hdn(), $row->mindn());
?>
</dd>
<dd style="float:none;">
<span class="icon-globe"></span> <?php echo $row->location(); ?>
</dd>

</dl>

<?php

?>
</div>


Thanks
Monday, 19 November 2018 22:53
·
#207310
Accepted Answer
0
Votes
Undo
Hello,

Steve was close but you need:


echo '<h2>' . $row->title() . '</h2>';


So that replaces:


echo '<h2><a href="' . $row->viewDetailLink($row->yup(), $row->mup(), $row->dup(), $Itemid) . '">' . $row->title() . ' </a></h2>';


Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Tuesday, 20 November 2018 08:42
·
#207314
0
Votes
Undo
Thanks very much TonyP that work as i wanted.

Consider this post now closed.
Monday, 19 November 2018 22:53
·
#207310
Accepted Answer
0
Votes
Undo
Hello,

Steve was close but you need:


echo '<h2>' . $row->title() . '</h2>';


So that replaces:


echo '<h2><a href="' . $row->viewDetailLink($row->yup(), $row->mup(), $row->dup(), $Itemid) . '">' . $row->title() . ' </a></h2>';


Many thanks
Tony

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Monday, 19 November 2018 13:56
·
#207301
0
Votes
Undo
I haven't tested, this but you should be able to just remove the link portion.
You should use an over ride for this versus modifying the core files.


echo '<h2>' . $row->viewDetailLink($row->yup(), $row->mup(), $row->dup(), $Itemid) . '">' . $row->title() . '</h2>';
  • Page :
  • 1
There are no replies made for this post yet.

Members Area

Show your support

Unlike many Joomla calendars we do not charge to download JEvents - please show your support for this project by becoming a member of the JEvents Club Club members get access to early releases, exclusive member support forums, and Silver and Gold members can use many exciting JEvents addons

Your membership will ensure that JEvents continues to be the best events calendar for Joomla.