-
AuthorPosts
-
February 17, 2015 at 1:18 pm #203865
Hi,
in a previous thread (now gone) I asked how I could change the words “recent projects” in the articles category module into the name of the category that it exposes. Pankajsharma told me to do this:
go to /templates/ja_sugite/html/mod-articles_category/project.php
and change this code “<h3><?php echto JText::_(‘TPL_RECENT_PROJECTS’); ?></h3>”
into this code “<h3><?php echo “YOUR CATEGORY NAME”; ?></h3>”
I did this and the title did change the way I wanted, but now there’s a problem with the text that appears when i hover on the images. check the screenshot:
After every title there’s now “4>View more info”
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 18, 2015 at 1:21 am #559826Hi @dageraad
Sorry we have lost our 30 days data .
<blockquote>and change this code “<h3><?php echto JText::_(‘TPL_RECENT_PROJECTS’); ?></h3>”into this code “<h3><?php echo “YOUR CATEGORY NAME”; ?></h3>”
</blockquote>You need to do this only for the override module .
Can you send me your admin details . Currently i can not access your site >>> http://prntscr.com/66inj9February 18, 2015 at 7:50 am #559855What do you mean by override module?
I copied the original php-document and renamed that one, than I changed the piece of code. You won’t see anything on the site right now, I changed it back to “recent projects”.URL is:
dochy2.mascomm.beadded login details in original post
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 18, 2015 at 8:22 am #559860HI
Can you check your server settings . I am not able to access your site .
check this >>> http://prntscr.com/66lkcnFebruary 18, 2015 at 8:46 am #559867Okay, now you should be able to check the site.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 19, 2015 at 2:58 am #559962Hi
Send me FTP details of your Site in PM and the module ID with layouts . I will fix it directly on your site.February 20, 2015 at 8:21 am #560090Hi,
Sorry but I’m not allowed to give you the FTP details.. Can you give me the right code instead?
Thanks
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
February 20, 2015 at 8:35 am #560094Hi
as per previous Post you have Created the override of your Layout module .
if you have changed anything (custom work) please revert it .Now on your site i found there are two layout of article category module that you created .
1. Interieur
2. Exterieur .Open the File Interieur.php
Find this code
<h3><?php echo JText::_('TPL_RECENT_PROJECTS'); ?></h3>
Change it into
<h3><?php echo JText::_('TPL_YOUR_INTERIEUR'); ?></h3>
Now open
FInd this code
<h3><?php echo JText::_('TPL_RECENT_PROJECTS'); ?></h3>
Change it in with
<h3><?php echo JText::_('TPL_YOUR_EXTERIEUR'); ?></h3>
Now open
open the root directorylanguageen-GB/en-GB.tpl_ja_sugite.ini
and define these values
<blockquote>TPL_YOUR_INTERIEUR=”YOUR CATEGORY NAME”</blockquote>
and
<blockquote>TPL_YOUR_EXTERIEUR=”YOUR CATEGORY NAME”</blockquote>Replace the YOUR CATEGORY NAME with the name that you want .
Apply the layouts that you created above to your modules .Take a backup of your site before applying changes .
1 user says Thank You to Pankaj Sharma for this useful post
February 23, 2015 at 9:10 am #560351This works fine! Thanks !
AuthorPostsViewing 9 posts - 1 through 9 (of 9 total)This topic contains 9 replies, has 2 voices, and was last updated by dageraad 9 years, 10 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Change recent projects into names of categories
Viewing 9 posts - 1 through 9 (of 9 total)