I create the multi language website with linguaplone.
Now I should fix the baseurl to .../en or ...../de for two versions.
what should I do?
I have really no idea what you are exactly asking and why.
But you are probably want to set navigation base URL using LinguaPlone language folders feature
http://pypi.python.org/pypi/Products.LinguaPlone/4.1.2#installation
See ##language-setup-folders
Related
I'm hoping someone can help me because this is driving me crazy.
I have a multilingual DrupaL 7 site set up with English being the main language and French being the secondary language. I have url aliasing set up and for the most part it works correctly.
The problem arises when I have pages that I don't want included in a menu, so I leave the "provide a menu link" box unchecked. Even if the "Generate automatic URL aliases" box is checked for those pages without a menu link, the page completely ignore any url alias patterns I have set up and the url always shows up as 'node/31' instead of 'my-content-page'. If I hardcode in a URL alias via the URL path settings on the page, it WILL take those, but this is not what I want. I want it to take the url alias pattern I've set up for it. I even installed the "Pathauto persistent state" module and forced the "Generate automatic URL aliases" to remain checked just in case, but my alias patters are still ignored.
Both English and French pages do this if the page is not provided a menu link.
Has anyone seen this behaviour before? Does anyone have any ideas what might be wrong?
Thanks!
This can happen when you have tokens in your URL alias pattern that doesn't work for any reason. In your case it sounds like you have a pattern including a "menu item" token, so when you save your node without a menu item, the URL alias is not created.
The solution would be to either include a menu item, manually add your URL alias, or change anything looking like [node:menu-link] in your URL alias patterns to something else.
I think I had the same problem, and the point was that the "Basic Page" content-type needed to have available the menus of the appropiate languages in its "menu settings" (in admin/structure/ then "edit" basic-page) .
Hope this will work for you too.
If your have a non english site, follow the issue: https://drupal.org/node/1847444 and patch or solution.
I had the same problem and I solved it, "I hope forever", by reading the comment written by enzipher:
This can happen when you have tokens in your URL alias pattern that
doesn't work for any reason.
I'm using a custom pattern and I solved it by following these steps:
I went to pattern page, deleted custom token and save
I went to node and edit, then saved the node and url alias had been created like domain/language/title_node
I went to pattern page, insert same custom token and saved
I went to node again and edited it, then saved and the correct node url alias has been created
domain/language/custom_token_content/title_node
The project I am working with is using an old version (v.2.1.0.1) of N2CMS.
To start with, I want to avoid upgrading to the latest N2 version, not because I don't like new things (because I do) but because since I am using such an old version it would take a lot of efford trying to upgrade it and if there's a way to solve this issue in a more time efficient way then I need to do that instead.
What I need to do is to enable the url to set the languageroot for the website and having it not only rely on the /lang. For example, i want my website.se to point towards /sv and my website.no to point towards /no. Right now .se is default so no matter the URL, swedish is the language shown. The twist is, and the reason for why I need it done this way, that I am loading data from another database and showing it on the site, list of categories and products (/keyrings for example). These things don't have the /sv or /no in the url. The result here is that even if I get /no to working along side the .no url, as soon as I click on an item in that list without the language code in the url then I will automatically be redirected to the default swedish languageroot. So I want to completely rely the N2CMS languageroot on the URL and not the /lang. I know that this is possible in the later versions of N2CMS but I am hoping there's a workaround in the older versions as well.
In this version I have a startpage and under the startpage i have languageroots. Each language root has the option to enter an URI Name, in my case i have swedish and norwegian so that's /sv and /no. An example from the site could look like this: /sv/om-oss, the norwegian way would be /no/om-oss.
In the later versions (that I use for other and newer projects) I have just the startpage and in its settings I am able to enter the hostname, this is what I want for my site (not necessarily have it changable in N2CMS, it's easier to just have it coded in).
Does anyone have any experience in this, or knowledge deeper than mine when it comes to these sort of things?
Just for record, this problem got solved http://n2cms.codeplex.com/discussions/397494
Currently, if there is ANY KIND OF ERROR in a view or route in nopcommerce MVC, I get alien unicode text, meaning it looks like you are viewing binary output via text. I had to rewrite this question because it was said to not be specific enough although this is just another way to say the exact same thing so not sure what to do.
This issue is fixed in version 2.30. Or simply apply changeset d21c5993c77f and dd416ab78db1. Let me know if it helped
I've been working on an Xtext-based Eclipse plugin for a language we use in-house. This language might have a statement of the form:
run : /some/file/path/foo.txt
... and ultimately I want to provide a custom Location provider so that pressing F3 on the filepath will open up the file in a new editor in Eclipse. I haven't had a chance yet to try this out, but does anyone see anything wrong with the following approach?
Override IHyperlinkHelper to make my filepath rule cross-referencable
Override ILocationInFileProvider to make the filepath rule do the Eclipse magic to open the file in a new editor
Any advice is appreciated, thanks
The approach sounds good to me. You could provide content assist for paths as well by customizing the proposal provider. A validation rule for the file reference may be helpful, too.
When I use: {{store url="forum"}} it results in: www.domain.com/index.php/forum. I want the url without index.php .i.e. www.domain.com/forum. What do I need to change for this to work?
this is what you need to use:
{{config path="web/unsecure/base_url"}}
i hope this was helpful
sorry about the last answer...i misunderstood your question.
there are a number of ways to accomplish what you want.
you can change the base URL by going to SYSTEM > CONFIGURATION > WEB > SECURE
and SYSTEM > CONFIGURATION > WEB > UNSECURE respectfully (this might have repercussions and must be used carefully!!!)
you can continue to use the base URL the way it is and work around it.
if you can explain what your specific problem i think i'll be able to help you.
feel free to respond
good luck
Go to System > Configuration > Web > Search Engines Optimization and ensure "Use Web Server Rewrites" is set to "Yes".