close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

two languages powercms

Thread began 5/23/2012 9:05 am by Stuward | Last modified 2/03/2014 3:15 am by Jonas | 816 views | 10 replies |

Stuward

two languages powercms

I have read this forum but still have a question.

For the client I have a regular website in two languages. It contains a news-section database with powercms. I have read that making two seprate my_sql databases works for the best and that you can host them to a different (sub)domain.

But I like to keep both languages on one the same domain and ftp. Now I thought about using just two different folders (one per language) and both homepages in the hom directory

../ENG
../CH

How can i accomplish this?

i have bought the Supersuite

Regards, Stuward

Sign in to reply to this post

Jason ByrnesWebAssist

you will need to create 2 separate dreamweaver sites, one that works on the /ENG section of the site. and the other to work on the /CH.

this will allow you to create 2 separate CMS Systems on for each language.

Sign in to reply to this post

Stuward

Thanks Jason, I will explore this way of working...

Sign in to reply to this post

Stuward

Jason, one question:

i created both databases and seprate dreamwaever sites and they work ok. But how do I manage to trigger the right database per language?

Sign in to reply to this post

CraigRBeta Tester

are multiple sites really necessary ?

I am currently working on a site in 3 languages with the text content maintained using powercms builder

I do not have separate sites, i have the language set using a session variable and a PHP case statement which inserts the appropriate language content based on the session variable. All of the content is managed within a single instance of power cms for example for the home page, i have sections called content-english, content-dutch and content-greek. Seems to work well.

If you are interested i can post some code

Sign in to reply to this post

Stuward

Hi Graig,

Yes I am interested in your solution. The most important is that it works appropriately.
It would be great if you shared your code if you like!

Stuward

Sign in to reply to this post

CraigRBeta Tester

Basically, I have a form at the top of each page, with flag icons, which, when submitted, set a session value to the chosen language.

Then I have a block of php code to set the menu and content accordingly.

eg Menu

<div id="topNavigation">
<?php switch ($_SESSION['language']) {
case 'english': //use the english
require_once("CSSMenuWriter/cssmw0/menu.php");
break;
case 'greek': //use the greek
require_once("CSSMenuWriter/cssmw0/greek/menu.php");
break;
case 'dutch': //use the dutch
require_once("CSSMenuWriter/cssmw0/dutch/menu.php");
break;
default: //use the english
require_once("CSSMenuWriter/cssmw0/menu.php");
}
?>
</div>



then something similar for the content areas..

<div id="content">
<?php switch ($_SESSION['language']) {
case 'english': //use the english
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'content_english');
break;
case 'greek': //use the greek
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'content_greek');
break;
case 'dutch': //use the dutch
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'content_dutch');
break;
default: //use the english
echo WA_getCMSContent($database_PowerCMSConnection, $PowerCMSConnection, 'Home Page', 'content_english');
}
?>
</div>



All content is managed by a single CMS.

Don;t know if this approach suits your needs but it works well here.

The site is still very much under development, but here s a link to the home page...

eleanamansion.forthwebsolutions.com

Sign in to reply to this post

Stuward

Thanks Graig, this is a great and very simple solution. I will use it!

Since I am a dutchman, just one remark with your translation at the menu of eleanamansion.forthwebsolutions.com


Lokaliteit > "Locatie"
Rond Lesvos > "Omgeving Lesbos"
Contacteer Ons > "Neem contact op" (or just: "Contact")

Thank you very much!

Stuward

Sign in to reply to this post

CraigRBeta Tester

Ok, thanks for that, the original translations were done by a Greek man and passed to me, so I have updated accordingly.

Sign in to reply to this post

Stuward

Ok Graig, I have send a PM to you...

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...