Welcome, Guest
Username: Password: Remember me

TOPIC: Adding Text in the J!Track Gallery Overview

Adding Text in the J!Track Gallery Overview 11 months 1 week ago #196


  • Posts:22
  • Sven 's Avatar
  • Sven
  • Junior Member
  • OFFLINE
Hi,

On the demo site: demoj3.jtrackgallery.net/index.php

I would like to add a text below the menu (above the map) giving a short introduction to our clients - how can I achieve that?

Thanks
The administrator has disabled public write access.

Adding Text in the J!Track Gallery Overview 11 months 6 days ago #199


  • Posts:121 Thank you received: 11
  • Christophe's Avatar
  • Christophe
  • Administrator
  • OFFLINE
This is not implemented. I will try to add a new parameter containing this intro_text which can be modified in an editor.

For 0.9.24, may be I will simply add this a simple HTML text if using the editor need too much work.
Christophe
J!TrackGallery developper
The administrator has disabled public write access.

Adding Text in the J!Track Gallery Overview 11 months 6 days ago #208


  • Posts:121 Thank you received: 11
  • Christophe's Avatar
  • Christophe
  • Administrator
  • OFFLINE
Sven wrote:
Hi,

On the demo site: demoj3.jtrackgallery.net/index.php

I would like to add a text below the menu (above the map) giving a short introduction to our clients - how can I achieve that?

Thanks
Christophe
J!TrackGallery developper
The administrator has disabled public write access.

Adding Text in the J!Track Gallery Overview 11 months 4 days ago #212


  • Posts:22
  • Sven 's Avatar
  • Sven
  • Junior Member
  • OFFLINE
Thanks,

For the moment I solved it with an HTML override at the beginning of the following file: templates/mytemplate/html/com_jtg/jtg/default.php

And adding a language override for:
  • COM_TRACKS_TITLE (I couldn't figure out how to show the title either - activated show title in menu...maybe I have overseen one of my settings)
  • COM_TRACKS_TEXT_INTRO
  • COM_TRACKS_TEXT_MAIN

<div class="uk-margin-large-bottom">
<h1 class="uk-article-title"><?php echo JText::_('COM_TRACKS_TITLE'); ?></h1>
<p><?php echo JText::_('COM_TRACKS_TEXT_INTRO'); ?></p>
<p><?php echo JText::_('COM_TRACKS_TEXT_MAIN'); ?></p>
</div>
 
<?php
/**
 * @component  J!Track Gallery (jtg) for Joomla! 2.5 and 3.x
 *
 *
 * @package     Comjtg
 * @subpackage  Frontend
 * @author      Christophe Seguinot <christophe@jtrackgallery.net>
 * @author      Pfister Michael, JoomGPStracks <info@mp-development.de>
 * @author      Christian Knorr, InJooOSM  <christianknorr@users.sourceforge.net>
 * @copyright   2015 J!TrackGallery, InJooosm and joomGPStracks teams
 *
 * @license     http://www.gnu.org/licenses/gpl-3.0.html GNU/GPLv3
 * @link        http://jtrackgallery.net/
 *
 */

Probably not the cleanest way :-) but it works ;-)
The administrator has disabled public write access.
Time to create page: 0.334 seconds