How to change Back to top label in Joomla 3 template Protostar - joomla

Protostar is Joomla 3 default template. In the footer part, there is a link Back to Top which returns the user to the upper part of the html page.
The only document in which I have found this text so far is on location:
templates/protostar/language/en-GB
But, the change of the text didn't actually change it on website. So, I suppose there is another location for this.
Where can I go and change it?

When the template is installed, that file would get moved to language/en-GB/en-GB.tpl_protostar.ini, so that would be the file that actually needs to get updated.
That being said, a better method is to use the language override feature on the admin side. You'll see in that file that the language key is TPL_PROTOSTAR_BACKTOTOP (what is to the left of the equal sign).
On the admin side, go to Extensions -> Language Manager. Then on the left side of the page, click "Overrides". Hit the new button and add TPL_PROTOSTAR_BACKTOTOP as the constant and whatever new text you would like there in the "Text" box.
By using the override feature you protect your site from updates if the template's language file is updated in a later version.

If you want to use your site with other languages than English, create the respective template language pack in folder templates/protostar/language/
As an example: If you use German on your site, create a folder named de-DE, copy the english files en-GB.tpl_protostar.ini and en-GB.tpl_protostar.sys.ini into it and change their names to de-DE.tpl_protostar.ini and de-DE.tpl_protostar.sys.ini. Now you can change the respective line in de-DE.tpl_protostar.ini to TPL_PROTOSTAR_BACKTOTOP="nach oben"

Related

Remove main menu and header from a page in Joomla

I want to create one or two pages on my website with no header or main menu or anything - i.e. just the main content.
I am using the Acacia template from Rockettheme. The main menu and the logo are not published as modules, so I do not know how to remove them from specific pages.
Is it possible to create a separate layout or something?
First check the template settings if there is any alternative layout. If not, you have to duplicate the template and then tweak the copy to fit your taste.
To duplicate the template depending on your joomla version see this for J1.5 , this for J2.5 or this for J3.2.
After you do that, either hide via css the header element like so header{display:none;} or remove completely the <header>...</header> section from the index page of the template or from where this code is being generated.
Then assign this copy of the template to the pages you want.

Troubleshooting a multilingual joomla 3.2 site after changing the language title

I made a complete bilingual joomla (3.2) site which was working perfectly fine until I tried changing the title of the English language from "English (UK)" to just "English". The reason I did this is because I only want to see "English" on the front end to switch to English.
Even after changing the language title back to "English (UK)", it did not work anymore.
Basically I have tow questions:
How do I get the English switch working again and
how do I get rid of the country tag i.e. DE and GB?
Problem solved: It looks like it was a bug in Joomla, the error has been reported.
There is two solutions I encountered, I only tried out the first one, so I don't know whether the second one works.
Go to the Content Language tab in the Language Manager
Open the language en-GB for Edit
Change the Access from Guest to Public
Save the changes
Invoke phpMyAdmin
On the left panel double click on the database that is being used for your site
On the left panel click on the table named xyz_languages (where xyz_ is the table prefix for your site) and on the right side you would notice rows from the table
On the right panel, click on the link Edit that is against the row with lang_id 1
In the resultant window on the right panel for the column Access change the value from 5 to 1
Save the row
Note: Make a back-up of your database content before making this change.
Apparently, this should be resolved in the next release of Joomla!. Suggest reviewing the tracker http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=33034 and the Github pull request https://github.com/joomla/joomla-cms/pull/2714.
Removing the (DE) and (UK) parts of the language switcher module was easy, just change the title native in the content tab of the language manager. Just make sure that the access is set to public.

Magento Identifier position - similar to ?tp=1 in Joomla

Does anybody know how can I find out the predefined identifiers and their position in the layout of a certain magento template?
I am having a big problem every time I want to add a new static block, since I do not know what are the available positions.
In other words I am looking for something like ?tp=1 that joomla has.
Thanks,
George
Just had this problem and here is the solution I've found.
log into the magento back-end admin
Go to System -> Configuration in the main menu
Go to Developer on the bottom left under ADVANCED
Switch to the store view on the top left to your current website or store view.
Under the Debug tab of the same Developer config page you will see a new option appear that will allow you to turn on/off template path hints.
Remember to clear your cache
source: https://support.sweettoothrewards.com/entries/21255937-How-do-I-turn-on-template-path-hints-
I am not sure about Joombla, but you can "Turn on Template Path Hints" to identify blocks.

How to add js to a joomla template

i need to add js to a specific page in joomla. How do i do that? I cant find any option to edit the html of each page, since i also have to add some little html. How does joomla do that? i can assign a template for a specific site but then you would have to do each change twice...
I need to add a javascript file and some html to one specific site. i read the wiki and googled but i dont get it...
The reason you couldn't find a page to edit is that there is only one page in a Joomla site that builds all the other pages based on the URL, menu ID, and other parameters passed in the query string.
If you only need the javascript on a single "page" then there are a couple of ways to do it depending on where the content needs to be.
If it needs to go in the main content area (the component position) then you should get an extension that allows you to put javascript inside a regular Joomla article. Then you can put what ever code and HTML you need in the article and link to it with a regular menu item.
If you want it to go in a module position, then you can simply use the Custom HTML module. If you turn off the WYSIWYG editor editor, you can put the javascript right in to the content area of the module. It does require the editor to be off though, otherwise the code will be evaluated and you will lose what ever you had in there. You can also limit where the module displays under the menu assignment selection.

Copy home template to make changes & test on hidden menu

I want to copy my Homepage (index page) and make the copy appear on the hidden part of my website as so i can make changes and test it before i put the new page up live...
So i basically want to be able to type a URL and see the page on the web, yet I don't want that page to apart of the websites main menu...
Make a new menu from the menu management name it like 'hidden menu' or something else then add new menu item on it .
Don't publish your hidden menu elsewhere in site. Assign your copied template to your new menu item created under hidden menu.
Now you can copy the link of new menu to the url.
Copy (aka duplicate) your content article (= index page, hompage content). You can access it via URI index.php?option=com_content&view=article&id=<ID> and replace <ID> with your articles ID.
This is for Joomla 3:
Go into the Template Manager and copy your existing template to make a new one e.g. 'YourTemplateName2'.
Note that a style 'YourTemplateName2 - Default' will automatically be created as well.
Edit the new template.
Preview the new template, either:
In Styles, using the 'eye' icon to the left of the style name, or
In Templates, using the link 'Preview' under the style name, or
Using the URL GET parameter 'template' like this:
"http://www.example.com//index.php?template=YourTemplateName2
If you use the 'Preview' link or the 'eye' icon, you'll get a preview with the extra parameter 'tp=1' - this shows you some extra info, but if you want to preview the site exactly as it'll look to the user then you can just delete this parameter.
When you're happy with your changes, either set the new template to be the default template, or copy the details from your new template to the existing one.
Hope that helps.

Resources