You need to be logged in to view a user's profile.
  1. wilco1219
  2. JEvents 3.4 (Free Access)
  3. Sunday, 12 December 2021
I'm having some dificulties recently with a template override I have created. I have made an override in the flat-template of the file month/tmpl/calendar_body.php In this override I added an extra button on the right side of "Next month". The name of this button is formatted as language override, which is available in the Joomla-template I'm using. The error suggest that this language override, named TPL_PLONS_AGENDA_LIJSTTEXT, can't be found.

This is the URL where the error message is displayed: https://www.plons.nu/agenda/maandkalender/2021/12?catids=
Attached is the file with the override of the flat template
I'm using Joomla

This is the php code in beginning of calendar_body.php

$app = JFactory::getApplication();
$thismenu = $app->getMenu()->getActive()->link;

use Joomla\String\StringHelper;

$cfg = JEVConfig::getInstance();

if ($cfg->get("tooltiptype",'joomla')=='overlib'){
JEVHelper::loadOverlib();
}

$view = $this->getViewName();
echo $this->loadTemplate('cell' );
$eventCellClass = "EventCalendarCell_".$view;

// previous and following month names and links
$followingMonth = $this->datamodel->getFollowingMonth($this->data);
$precedingMonth = $this->datamodel->getPrecedingMonth($this->data);


This is the code that was added after the Next month button:

<div class="lijstweergave">
<?php echo "<a href='".JRoute::_($thismenu)."' title='".JText::_(TPL_PLONS_AGENDA_LIJSTTEXT)."' style='text-decoration:none;'>".JText::_(TPL_PLONS_AGENDA_LIJST)."</a>";?>
</div>


Can somebody help me get my override back working again?
Accepted Answer
tonyp
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
Hello,

IT is correct because the coding is incorrect it should be:


<div class="lijstweergave">
<?php echo "<a href='".JRoute::_($thismenu)."' title='" . JText::_('TPL_PLONS_AGENDA_LIJSTTEXT') . "' style='text-decoration:none;'>".JText::_(TPL_PLONS_AGENDA_LIJST)."</a>";?>
</div>


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!
Accepted Answer Pending Moderation
0
Votes
Undo
Thank you! This solved my problem :D
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 1
tonyp
Support Team
Accepted Answer Pending Moderation
0
Votes
Undo
Awesome! :D
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!
  1. more than a month ago
  2. JEvents 3.4 (Free Access)
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!