By Guest on Monday, 19 November 2018
Replies 3
Likes 0
Views 0.9K
Votes 0
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
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
·
Monday, 19 November 2018 22:53
·
0 Likes
·
0 Votes
·
0 Comments
·
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>';
·
Monday, 19 November 2018 13:56
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks very much TonyP that work as i wanted.

Consider this post now closed.
·
Tuesday, 20 November 2018 08:42
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post