My build is English and French. I have a domain key for each in the system. I have my two cultures set as well, and I can not get this work correctly. my language toggle is based on the Kentico V8 Toggle, which currently gives the domain I Expect.
I'm making my changes in Chrome, and checking in IE, so I can see it not logged in.
Here's my setup:
My domain alias is set to the French URL and the french culture. Default path and Redirect URL are blank.
In Settings -> Content: Default culture is English. Combine check boxes are blank.
In Settings -> URLS - SEO - Cultures, all check boxes are empty
I've also noticed the culture class on the BODY tag doesn't change to FRCA.
I'm hoping this is something simple, but from the documentation, i can't see what I've missed. Also, is the license key different for a alias domain?
I've had similar problems with language switching in the past too. If your language switcher is custom code, try adding a lang querystring with value set to the target culture code (e.g. domain.fr/?lang=fr-FR). This has worked for me before.
This seems to be working. Not sure if there was a iis cache issue. I'm going to reboot my local dev, and try across multiple browsers.
Related
I have created a custom website using the Magento platform (No pre-defined theme is used). This is a completely created from the scratch. Now after developing the website, some slider in homepage is not displaying properly in the mobile version in addition to other pages. Can you guys help me out?. I am fine to buy an extension or do any other minor changes, so that I can go-live with my website immediately.
Have you checked out themes there in magento commerce?
Also tryout inspect element from browser to rule out syntactic errors
All the Best
KK
I'm using orchard 1.8.1 and Culture picker.
After removing the culture filter in module (Orchard has it on core by default and so it has to be removed to avoid conflicts) I made it working when I'm logged on.
However anonymous user cannot change language (or better it seems that the cookie is set correclty but the filter does not works or does not picks the language)
I digged for permission and read all code but it seems nothing wrong.
Any idea why culture picker works only when I'm logged as admin and does not works when I browse anonymous?
It is probably something with 1.8 upgrade
This is a site that works (1.6):
http://social-media-marketing-day.web-marketing-manager.it/cina-russia-corea-asia-corso-digital-strategia-comunicazione
This is the one that does not works (1.8):
http://radici-group.linked-in.it/nylon-uso-vantaggi
Thanks
I found a workaround.
Since it is a caching problem I have added a fake lang parameter matching requested language to the requested url.
This should not harm existing urls but adds something different to url itself so that it is cached separately...
Any idea on how do it properly without change the url?
I have an Orchard 1.6 site hosted on Windows Server 2012, IIS 8.5, .NET 4.0.
I need to add a link to a network-hosted file into my Orchard menus, where the network share is accessible from my web server - the destination file itself resides on a different server. I put in file://path/to/network/file in the Custom Link menu URL, but the base URL of the site always gets prepended to the link.
E.g., if my base URL is http://example.com, the link becomes http://example.com/file://path/to/network/file, and then .NET does not like the second : in the path - on top of it being the incorrect link. No combination of forward-slashes, backslashes, or other symbols prevents the prepended base URL.
To add another wrinkle to this, the same URL scheme works fine with a slightly different setup: Orchard 1.6, Windows Server 2008, IIS 7.0, .NET 4.0; web server and destination network URL are on the same server.
Is there a way to force Orchard to use the URL as given, without changing it at all? Alternatively, where is the code that constructs the final link?
Using a 'HTML menu item' instead of 'Custom link' to insert raw HTML as a link does work, but that seems like a pretty kludgy workaround; I have to do this for a few dozen links, and I won't necessarily be the one to change them later on.
I've looked into Orchard settings and IIS settings; neither has anything about rewriting links. Changing the base URL on Orchard to match the expected destination server doesn't work (and wouldn't be acceptable long-term). I've also tried hosting a temporary local file (c:\temp\test.txt) but I can't even get that to produce the correct file:// destination on the new setup.
Upgrading to the latest Orchard (1.8.x) is not a feasible solution (if that even ends up being a possible solution).
Edit:
I should clarify that both sites are on an intranet; I'm aware of the security implications associated with file:// links, and the problems with getting various browsers to load them properly, but I want to get the link generation working first.
Edit: problem source
I figured out why link handling was inconsistent between my own sites - I had written a small chunk of Javascript in the first site to strip the application's base URL for any file:// links it encountered. I forgot that it was there and hardcoded to remove only a certain base URL, so when I moved the site to a different hostname, it broke.
So, no inconsistency in Orchard, just my own faulty memory.
Orchard deliberately limits menu links to mailto, tel, http, and https protocols, and excludes all others, such as file and ftp (see navigationmanager.cs). If you want to use other protocols, you will have to use another type of menu item, but please keep in mind that the file protocol is unsafe and is not supported by all browsers, for security reasons (see for example http://kb.mozillazine.org/Links_to_local_pages_do_not_work). Even Internet Explorer has stopped supporting it in the Internet zone since IE6 SP1: http://msdn.microsoft.com/en-us/library/aa767731(v=vs.85).aspx
Making a EXISTING CMS site compatible for mobile site NOT REDIRECT
Hi All.
I am currently creating a mobile version of an expression engine site that we use.
I am having problems with this, because typically I can just use media quires, or use redirect scripts.
However, the layout of the mobile site will be completely different from the desktop, so I can't just fiddle with a media quires for the CSS (as site just looks to different).
I was thinking of using a javascript to wipe the code or markup (php) if the device is mobile BUT it would mean perhaps loading two versions of code anytime a page loads up (not good for mobile). Eg one code for desktop and another for mobile.
I can't change the file names eg (mobile_index) because it is a CMS and the links wont link up correctly. I have tried this a few times , and also editing the .HTACCESS file, but it simply didnt work.
So if anyone knows how do I change the code of a page if the device mobile, but cant change file name, directory or any of that :-)
Cheers
Daragh
Why no redirect? If I was in your position, which I was a few months ago, I would handle this totally different:
Install Multiple Site Manager by ExpressionEngine: http://expressionengine.com/user_guide/cp/sites/index.html
Add another site -- mobile
Give it a proper domainname like m.domain.com
Give it its own template group
... and redirect with http://github.com/sebarmeli/JS-Redirection-Mobile-Site/
Now you can manage both installations from the same CMS and both installations can access existing channels, modules, extensions and members. This will keep your code fast and clean.
Adding a bunch of conditionals will only slow down installation.
Actually you could mess with media queries - it's the most flexible. JS is really overkill for something like this. At larger sizes, UL>LI menus could appear, and at smaller sizes they could be hidden (display:none) and swapped to select lists; divs can be replaced, elements dropped or resized. I also combine them with different snippets or embeds so you can tailor the content out as well.
You might try something like MX Mobile Device Detect. It gives you some variables that can detect if the user is on a mobile device that you could use in conditionals in your templates.
In my site there are 3 Languages (Arabic, English, Netherlands). I am using Joomfish to manage translation. My client asked me that he want Arabic as his default language. That is www.mysite.com should be load in Arabic. I already made Arabic as the default language from Joomla admin panel. But the site is still loading in English. What to do.?
Tip found myself : Actually the Arabic site will be loaded by opening www.mysite.com/ar. So i tried to do a htaccess redirection. Unfortunately that too didn't worked.
Kindly share your ideas to get ride of this situation.
Thanks & Regards.
I had the same problem yesterday for a spanish/english website where Spanish was to be the default. It was driving me crazy!!!! Anyway, the solution is to go to Plugin Manager and select the Jfrouter system plugin.
On the right hand side change the "Language selection for new visitors?" setting to "site default language" instead of "browser settings". It turns out that the Joomfish plugin was using the language of my browser instead of the site default.