The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Apr 25, 2012 8:40 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 26, 2012 1:54 pm
Posts: 20
Hello! I am doing all I can to learn Joomla, and it turns out it really learn how to work Joomla properly I will have to learn PHP and the so forth, which I am currently studying.

However, at the point I am I still am unable to recognize what specific piece of code I'm looking for remove or modify.

I am trying to remove the standard search module's "box label". It is the label that always appears left to the actual search box. If I give it a blank label it automatically takes something from the standard language file (well thats what it said), and inputs it there. I want this space to be blank because it will ruin the custom template I am trying to build at the moment. But it won't be left blank and always inputs something else if I leave it blank.

I know that I have to copy the files in question to my template directory, but I dont actually know what specific file and lines of code govern this because as I said, I'm still learning PHP.

Will someone please show me how to override and disable this? Im interested in learning more about overrides in Joomla templates.


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 9:00 am 
Joomla! Explorer
Joomla! Explorer

Joined: Tue Feb 08, 2011 8:46 am
Posts: 294
Well... the text comes from either of the 2 places.
1) Language File. This will be in your Joomla Installation Directory > Language > en-gb > look for the relevant .ini file here (it will say search on it)
2) The php file. This will be in your Joomla Installtion Directory > Modules > Mod_Search > tmpl > default.php

_________________
Vidur Bharany


Top
 Profile  
 
PostPosted: Wed Apr 25, 2012 10:54 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 26, 2012 1:54 pm
Posts: 20
Okay I found it. The file is en-GB.mod_search.ini
It's line 32 which says "Search".. and when I changed it and refreshed it it came out as what I edited it.

I've tried putting it into my template but it looks I didn't do it right.

I am positive this will work now as an override but I'm not sure where to place it as it's part of a language folder and not a component folder.

Can anyone show me the proper place in my Template folder for me to put this en-Gb.mod_search.ini file for it to work right?


Top
 Profile  
 
PostPosted: Thu Apr 26, 2012 5:45 am 
Joomla! Explorer
Joomla! Explorer

Joined: Tue Feb 08, 2011 8:46 am
Posts: 294
I can't understand the part where you've said that you refreshed and it worked, but didn't put it in the right place?

_________________
Vidur Bharany


Top
 Profile  
 
PostPosted: Thu Apr 26, 2012 7:36 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon Mar 26, 2012 1:54 pm
Posts: 20
thats because I tried modifying the original core language file. I did it and it worked. I reverted it back to the original file again, but saved the edited file. I know the file works, but I don't know where to place this file in my template in order for it to override the module.


Top
 Profile  
 
PostPosted: Fri Apr 27, 2012 2:55 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Tue Feb 08, 2011 8:46 am
Posts: 294
I've mentioned the path of the file in my previous post. Just go there, copy the original and rename this copy. Now edit the file in use.

_________________
Vidur Bharany


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group