Custom Title in Related Item XTD

Hi Admin,

Thank you for this great module.
Is possible to create custom title?, so if i implementing this module with mode standard or slideout in the same page but with different title, it will work.

Thank you
10 years 11 months ago #1 by mkpdroid
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5263) Offline
HI mkpdroid,
Can you tell me what do you mean by custom title? The title is taken automatically from the joomla com_content
10 years 11 months ago #2 by TemplatePlazza
The topic has been marked as resolved.
Hi,

Can you open this url : prntscr.com/2ij7yv

I mean Custom module title.
in that url i used duplicating mode, i activated related item as standard in the bottom of page and sllide out too.

I want to create different module title between above situation.

thank you
10 years 11 months ago #3 by mkpdroid
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5263) Offline
Hi,
You need to edit these files :

1. mod_relateditems_xtd.xml. put this code below anywhere in the file:
<field name="modtittle" type="text" default="Related Article" label="Mod Title" description="Mod Title" />
2. file default.php and slideout.php, add this code below arround line 27 (default.php) or line 20 for slideout.php :
$modtittle		= $params->get('modtittle', 'Related');

then find this code in both of default.php and slideout.php :
<span><?php echo JText::_('RELATED_ARTICLE'); ?></span>

replace with :
<span><?php echo $modtittle; ?></span>

Now you can change the module title from the module backend
10 years 11 months ago #4 by TemplatePlazza
The topic has been marked as resolved.
Wow awesome.

Thank you so much for this solution. Now my website with different title.
www.erabaru.net/kehidupan/kuliner/6479-ayam-jamur-jujube
;)
10 years 11 months ago #5 by mkpdroid
The topic has been marked as resolved.
Powered by Kunena Forum