Custom Title in Related Item XTD
- Posted by mkpdroid (12) Offline
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
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
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
Can you tell me what do you mean by custom title? The title is taken automatically from the joomla com_content
The topic has been marked as resolved.
- Posted by mkpdroid (12) Offline
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
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
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:2. file default.php and slideout.php, add this code below arround line 27 (default.php) or line 20 for slideout.php :
then find this code in both of default.php and slideout.php :
replace with :
Now you can change the module title from the module backend
10 years 11 months ago #4
by TemplatePlazza
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" />
$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
The topic has been marked as resolved.
- Posted by mkpdroid (12) Offline
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
Thank you so much for this solution. Now my website with different title.
www.erabaru.net/kehidupan/kuliner/6479-ayam-jamur-jujube
The topic has been marked as resolved.