I'm to setup a Drupal (version 7) website with multilingual support. Being very new to Drupal, I can't seem to fix this simple issue: The default home page won't allow me to change the language (admin > configuration > system > informations), as you can see on this image:
http://imageshack.us/photo/my-images/824/screenshot20111122at101.png
I could suppose this has to do with the configuration of a module, but can't find which one. I'd love the result to be for instant http://localhost/?q=home instead of including a language tag.
enable the path module
set the same URL alias (eg: "home") for every node you want to be set as homepage, for every language.
Eg: let's say that you have node/1 for english and node/2 for french as homepages. you should set the same alias for node/1 and node/2, something like "home" or "homepage" etc
go to admin > configuration > system > informations and set your homepage to that alias you set earlier.
Related
As the title says, I want to remove the /presta from my URL.
I can access it now with domain.com/presta but if I change from Preferences > SEO & URL > Base URL as "/", I can't access the site and if I connect to admin panel it's without GUI, just text.
Seems a little bit confusing.
Thanks in advance, sorry for any newbie mistake I've been working on this the whole day and it's my first try on presta.
i think all Prestashop files are inside a folder named "presta" instead of (for example) the httpdocs folder. Change shop domain and ssl domain to your domain name. Set base uri as / and press save. Now move all Prestashop files from the presta folder to the httpdocs folder. The presta folder should be empty, so you can remove it.
Current situation:
You prestashop files are stored in YOURSTORE/presta/
Request situation:
removing the subfolder /presta/ so people can enter the url YOURSTORE/ to acces your prestashop webshop.
What you must do:
copy all your files inside YOURSTORE/presta/ to YOURSTORE.
remove .htaccess (located here (after step 1): YOURSTORE).
Update your prestashop database: go to table ps_shop_url and change value:
physical_uri -> /presta/
To
physical_uri -> /
You should be able to enter your store now by visiting YOURSTORE.com instead of YOURSTORE.com/presta/
I want to use chapters and chapter-menu as a e.g. image gallery, reference module or other collections in Typo3 Neos.
As there are multiple domains with different content in my installation i have a problem with the NodeTypes.yaml:
All my site packages are based on NeosDemoTypo3Org. Because i don't want to have multiple entries "chapter", "chapter menu", "youtube" and so on, i deleted the NodeTypes.yaml in my copies of NeosDemoTypo3Org (which is still installed).
When i add a page with content element "chapter menu" to a package and put some chapters in it, the chapter overview is only displayed, if am putting the NodeTypes.yaml back into my package configuration. But then again i have multiple entries of the same thing.
How/where can i configure this to fit my needs?
That should be no problem. Just having the Chapter etc. in one NodeTypes.yaml is enough for now (until we implemented separation per Site which we want to have at some point). But I guess you adapted all occurances of "TYPO3.NeosDemoTypo3Org" in your TypoScript to match the new package name? You need to of course change that back for everything that is related to those NodeTypes. The TypoScript must point to the correct name for this NodeType. And you have to declare the TypoScript in each package because TypoScript is NOT shared in contrast to the NodeTypes.
What you could do is create a "base package" that contains the NodeTypes and TypoScript (and Tempaltes for those) and include the TypoScript in each of your Site packages.
I have to build a multilingual website where you have to select your continent.
So you can choose America while your are in English but also America in Spanish. Europe in French, but also in English etc.
I have set language detection with path prefix on drupal 7. So my urls are like that domain.com/en/path-alias.
Some contents on my website will be hide for some continent but a lot of content will be the same so I dont want to do a multisite.
I wish to have urls like that domain.com/america/en/path-alias, domain.com/america/es/path-alias or domain.com/europe/fr/path-alias.
I don't find any solution to do that.
The module domain access looks cool but is not exactly what i want cause it works with subdomains while i want path prefix.
EDIT :
Ok i have found the solution of my problem in the drupal API.
This two hooks are exactly what i was looking for hook_url_inbound_alter, hook_url_outbound_alter
You should use this 2 hooks because in hook_url_inbound_alter(&$path, $original_path, $path_language) you tell Drupal what path should it display, and determine from received path that comes in $original_path (ex: region/lang/path) path that Drupal understands as a valid path (ex: lang/path) and override $path with it.
Next we need links from our pages to contain our custom path format, so we'll use hook_url_outbound_alter(&$path, &$options, $original_path) to convert all system paths or aliases generated with url() in your custom path format (generated path for url('lang/path')) will be region/lang/path. In $options array we can modify path prefix, or path language.
This worked for me but path alias dose not working now. This http://localhost/en/australia/node/376 should be http://localhost/en/australia/hotels-resorts
function mymodule_url_inbound_alter(&$path, $original_path, $path_language){
$cluster = 'australia';
$path = str_replace($cluster.'/','',$path);
}
function mymodule_url_outbound_alter(&$path, &$options, $original_path){
$cluster = 'australia';
$path = $cluster.'/'.($path);
$options['alias'] = true;
}
I have a question regarding "adding a new language" properties-file in Grails.
I tried to add a new file containing a language that wasn't put in by default - in this case I just took a language - no norwegian - and added a file named messages_no.properties to the i18n-folder but it won't show when I change my computer's language.
For example, Swedish se is in by default and it just works.
Am I missing anything?
I am trying out TYPO3's introduction package. For that I am using Xampp on my computer.
I have installed it in a subdirectory, but since it uses "real-url", I need to modify the generated links, so that instead of http://localhost/about-typo3/ I get http://localhost/subfolder/about-typo3/
I believe it must be done via "typo-script", and from what I have read on the Internet, this line should do the job :
config.baseURL = http://localhost/subfolder/
But I don't know where I should put it. I have tried different locations, but with no apparent effect.
So what I would like to know is : am I on the good path for what I need to do, and if yes, what should I try now ?
This is a bug in the 4.6 Introduction Package. 4.7 will ship with a correct version, so you might just want to go ahead and try the Introduction Package from 4.7RC2 (Preview Releases).
For now, just choose Template in the module menu on the left. Then use the dropdown to select Constant Editor. Now choose the page HOME in the pagetree on the middle.
Now use the second dropdown to select CONFIG. There modify the topmost setting Absolute URI prefix. Input your full domain without the last slash (/). That means copy your current URL from the browser and strip /typo3/backend.php. Now save with the little save icon in the top toolbar.
This will also invalidate all caches for you (because you changed the topmost template). No need to install extra extensions or to do this manually.
Alternative you can fix the actual bug. Go to template module and select the folder TypoScript Templates / page_configuration. Now select Info/Modify instead of Constant Editor and directly above the table page.config. The click the pencil left of Setup. Find the line absRefPrefix = {$config.absRefPrefix}/. This should be around line 62 (4.7RC2). Remove the last slash (/) from that line and save. Because you are not on the topmost template, you need to clear the cache. On the topright of your screen, you can find the yellow flash icon. Click it and select Clear all caches (red flash). Now go to you website again.
A general note about (config.)baseURL. This is more a hack, because it just tells the browser to behave as if the website would be at another place. The correct way is to create correct links in first place. You should use (config.)absRefPrefix instead. To make this work in auto mode, it must be completely empty (config.absRefPrefix =).
Do not use baseURL any more. The next Introduction Package will not have this setting.
Yet another note: If you use the config.absRefPrefix, you have to include the last slash (/). The only reason why you do not have to do so above (in the constants), is because it is hardcoded in the template and thus also preventing the automatic detection to work.
If you are using different hosts, you can use typoscript conditions in your root template:
# Default:
config.baseURL = http://www.example.com/
[globalString = ENV:HTTP_HOST=sub1.example.com]
config.baseURL = http://sub1.example.com/
[global]
[globalString = ENV:HTTP_HOST=sub2.example.com]
config.baseURL = http://sub2.example.com/
[global]
if you are using introduction package. there is Constant for set the base url
Go to 'Template' and 'Constant Editor.. you can find 'Domain name for Base URL [config.domain]' .. for setting base url
also you can put the
config.baseURL = http://localhost/subfolder/
on 'Info Modify' Setup field
hope will help you .. sorry for my bad english