+ Reply to Thread
Results 1 to 7 of 7

Thread: Site in two languages and more newbie questions

  1. #1
    Junior Member sobolev is on a distinguished road
    Join Date
    Oct 2010
    Posts
    3

    Site in two languages and more newbie questions

    Hello,
    I'm recently registered and started to set up my site. To this end, I've used the site builder, choosing the C002 template. I would be very grateful if you could answer the following questions:

    1) Assume I build my site in Spanish and that I want also an English version. How can I achieve it? I know I have to translate and add the corresponding pages, but what about the layout (menu items, website slogan)?

    2) The C002 template is simple enough for the technical site I plan. But, if later I want to change the site design, will I be able to do it? Is it possible to choose later a different layout? How?

    3) May I later add a blog? How?

    Except for question 1), I don't need now detailed answers, but knowing whether I can continue working on my site or whether it is better to change the template or something else. Any advice will be welcome.
    Many thanks.

    P.S. Site: matex.hes78.com, server: box5

  2. #2
    Junior Member sobolev is on a distinguished road
    Join Date
    Oct 2010
    Posts
    3

    Re: Site in two languages and more newbie questions

    Well, after some time looking things here and there, I've solved myself questions 1) and 2). I share the answers, since perhaps they may interest others.

    To generate the site, the web site builder wrote in the public_html directory a file called template_c002.html. When someone navigates to the site, a PHP script takes this file and inserts in it some content (one of the web pages) as well as data taken from the site config (site name, site slogan, keywords...). So, to change the site appearance, I can either download template_c002.html, edit and upload this file, or upload another template, say, template_custom.html. In the latter case, in the website builder admin panel, I choose the Config tab and then select "custom" in "Default template". It is also possible to assign a specific template to a given page while editing it in the website builder.

    Concerning question 1), I've seen that template_c002.html contains "variables" to indicate what should be placed in the pages. There is, for example, the expression {%WebsiteName%} which is replaced by the real site name when serving pages. There are also the "variables" {%menu_start=1%} and {%menu_end=1%} at the places where the first and last menu items must be located. The expression "=1" means that menu items should be taken from the first menu constructed with the website builder admin panel. So, to reach my objective, that is, to get a Spanish and an English version of the site, I have prepared two different menus with the website buider. Then I've dowloaded template_c002.html, made two copies and renamed them to template_es.html and template_en.html. I've edited the latter, changing {%menu_start=1%} and {%menu_end=1%} to {%menu_start=2%} and {%menu_end=2%}, as well as some other minors modifications. I've uploaded the templates and, as explained above, I've assigned one of these templates to every page, according with the desired language. Finally, I've added a link in the main page of a version to the other one.

    Concerning question 3), I conjecture it is related to Softaculous, which doesn't work in the box5 server. I get a blank page when clicking in the link located in the Directadmin control panel.

  3. #3
    Super Moderator Amator is on a distinguished road Amator's Avatar
    Join Date
    Sep 2010
    Location
    Kiev, Ukraine
    Posts
    1,463

    Re: Site in two languages and more newbie questions

    Hello, sorry I haven't replied to 1 and 2 questions - I had an idea to copy files, but I didn't know how Builder works - never used it. About third. I'll contact technical support about it. You can also install Wordpress without using Softaculous - just download it from official site, it's easy to install it. If you have some probelms, write them here - I'll try to help you!

  4. #4
    Moderator demlasjr will become famous soon enough demlasjr's Avatar
    Join Date
    May 2010
    Posts
    1,037

    Re: Site in two languages and more newbie questions

    For the 3) you just can use a new subdomain for your domain, and then add a link or a button to redirect to it. On that subdomain you can install a wordpress via Softaculous too.

  5. #5
    Junior Member sobolev is on a distinguished road
    Join Date
    Oct 2010
    Posts
    3

    Re: Site in two languages and more newbie questions

    Many thanks to you both. I've managed to install Wordpress and start it running. I've installed it in a subdomain, as suggested by demlasjr, by downloading it from the official site, as suggested by Amator. As you pointed out, it can be easily done without Softaculous.

  6. #6
    Super Moderator Amator is on a distinguished road Amator's Avatar
    Join Date
    Sep 2010
    Location
    Kiev, Ukraine
    Posts
    1,463

    Re: Site in two languages and more newbie questions

    Quote Originally Posted by sobolev View Post
    Many thanks to you both. I've managed to install Wordpress and start it running. I've installed it in a subdomain, as suggested by demlasjr, by downloading it from the official site, as suggested by Amator. As you pointed out, it can be easily done without Softaculous.
    Good luck!

  7. #7
    Moderator demlasjr will become famous soon enough demlasjr's Avatar
    Join Date
    May 2010
    Posts
    1,037

    Re: Site in two languages and more newbie questions

    Happy to hear that. Great job ! Also, you can post in review section, so we will have the chance to see your website and review it

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34