Troubleshooting a multilingual joomla 3.2 site after changing the language title - joomla

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.

Related

Language changes when I change page in magento

I have one problem in my site. I have two languages installed, Portuguese and English(default). On my front end when i change from English to Portuguese it makes it all right but when I switch page (for example, try to see one category) it switches back again to English language.
I've tried to change cookie lifetime and some other things but didn't work.
What can I do in order to "save" the language selected and keep it on every pages that I try to access?
You need to have two different store views in your magento install one for english and one for Portuguese.

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

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"

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.

Get preview link to article before publishing

In Joomla 1.5, I created an article. Before publishing it, I want to send a preview URL to my colleagues (they are not registered to Joomla).
I'm looking for something like adding task=preview to the URL and it would show the article.
It would be enough if the article would be normally published but would not be displayed on the main page in the latest news. I tried to set "Front Page" to "No" but without success.
How can I solve the problem?
Joomla! 1.5 doesn't have a feature like this and from the way it's built I'm not sure it's possible without modifying the core com_content files. You could try a search of the Joomla! Extension Directory to see if someone has implemented what you're after.
In the meantime if the article is turning up on the websites front page even when you've set it not to - then the front page must be using a Section/Category Blog page style rather than a Joomla Frontpage page. In this case you could find out which category is set to show on the menu item being used for the front page and then temporarily change your article to another that doesn't appear there.
Once you've got it in another Category you should be able to get a link to the article by doing a search from the front end (assuming you don't want to create a menu link).
try creating a new category called Preview and since that wouldn't have been assigned to any pages yet, it should not appear. If you have trouble finding the article then, you could temporarily publish it either on the home page or somewhere in the menu. Then when you have found and copied the url, you can remove the article from the home page or menu or wherever you temporarily have it appear.
If you should ever want several 'preview' articles appearing on one page, create a new menu item, assign it to the Preview category you made, and in System Parameters, click on Show Title: 'No' so it doesn't appear in the menu. I don't know about what shows up in Google for example so if it's sensitive data I can't say it won't show in search engines, it probably will.
It probably appears on the Front Page because as you say it's part of the 'latest news' module. You could also try removing it from the module feed, but a new category is what I'd do.
Paul
I just selected Section: "Uncategorised" and the article went out from the latest news. Hope it's not accessible any other way in the current setup (there is no search function hopefully). It's not a cleanest solution, but it seems to work.

Remove "componentheading" from homepage - Joomla!

I'm working on a site in Joomla! and on the homepage, at the top of the article, it comes up with a h1 of the website name. The pagesource says (Note it's not the article title.)
Any idea how to get rid of it?
Thanks,
Steph
You can set this h1 tag not to display via the Parameters - System section of your Menu Item Manager screen in administrator ... this page has a nice depiction of the steps.
It's so simple
Just do the following :
Login to the Joomla Administrator Interface
Go to the Menu Manager
Select your Menu
Select your Menu Item (Home Menu)
On the right hand, Click Parameters (System)—> and in the *Show Page Title—->*Just Select No.
That's all.
This is not the desired solution, since many people, (including myself) actually need to be able to Set/Override the page title (That Appears in the Browser’s Title bar), and setting Page Title to no here will also remove the functionality to Configure the Browser title (which is important for SEO among other things).
Anyway, I have searched and not been able to find a fully correct solution via CMS or PHP Code. The closest solution which is not fully perfect, but unlikely to cause significant (if any) negative effect on your site is through Javascript (Example is JQuery).
jQuery(document).ready( function($) {
$(‘.componentheading’).empty();
});
This can also be done is JS with no JQuery. When I find a better method of doing this I’ll let you know.This should actually be done by removing output from a template file.I don’t know which one yet. When I do, I’ll post it…
When setting the page title not to show in the menu item as stated in other answers, this will not stop the text entered in the page title box being used as the browser title, it will just stop it being shown in the page.
Using javascript to remove it is not a good idea.
1. It will only work for browsers with javascript enabled
2. Search engine spiders will still see it. As the component heading for articles is 'articles' by default it will see all your pages with the same h1 tag.
Just turn it off in the menu item and enter your browser title in the text box above.

Resources