Page 1 of 1

How to upload the index.htm file with another name?

Posted: Sat 12 Mar 2011 1:58 am
by actioman
Hello,

It is possible to upload the "index.htm" file with all the other files, but with another name? For example index_cu.htm?

I intend to have two diferent webs in the same root. One with "AJAX/PHP multilingual website templates" and the other with the dafault cumulus web. Then like you know better than me I can only have one index file in the root server. So I'm wondering if it is possible or not?

The first try I have made, something strange happends. In the webfiles folder I have renamed the index file to index_cu.htm, but when cumulus do the updates it create a index.htm file with 0 Kb?

Steve or anyone can you help me please?

Thaks in advance.

PS- I am using Cumulus v1.9.1 (982).

Re: How to upload the index.htm file with another name?

Posted: Sat 12 Mar 2011 3:13 am
by beteljuice
At the moment there is no flexibility if you use the default 'include standard files'.

All standard templates xxxT.htm will be processed and uploaded to standard names. eg. index.htm

You could disable 'include standard files' (but enable pictures) and duplicate all the standard templates (xxxT_cu.htm) and have them processed and uploaded to whatever names you like (xxxx_cu.htm) (remembering to modify all the links in them).

If you run out of 'boxes' on the Cumulus ftp panel you can name additional ones using the .ini method (see wiki or search forum)

Re: How to upload the index.htm file with another name?

Posted: Sat 12 Mar 2011 1:53 pm
by gemini06720
actioman wrote:I intend to have two diferent webs in the same root. One with "AJAX/PHP multilingual website templates" and the other with the dafault cumulus web. Then like you know better than me I can only have one index file in the root server. So I'm wondering if it is possible or not?
Manuel, what is wrong with keeping the names 'index.htm' for the Cumulus-produced file (which is updated regularly) and 'wxindex.php' for the 'AJAX/PHP Multilingual Website Templates' (which does not need any updating) - then have a link pointing to either index pages.

Re: How to upload the index.htm file with another name?

Posted: Sat 12 Mar 2011 5:40 pm
by actioman
beteljuice wrote: (...)

If you run out of 'boxes' on the Cumulus ftp panel you can name additional ones using the .ini method (see wiki or search forum)
Thank you beteljuice for your great help! :D
gemini06720 wrote:Manuel, what is wrong with keeping the names 'index.htm' for the Cumulus-produced file (which is updated regularly) and 'wxindex.php' for the 'AJAX/PHP Multilingual Website Templates' (which does not need any updating) - then have a link pointing to either index pages.
Hello Ray!
Let me see if I can explain myself (sorry for my pour english :oops: ).
If you go to meteoelvas.com, you enter directly in the 'AJAX/PHP Multilingual Templates' website version, and thats is what I want. If I have the default name files we enter directly to the cumulus default website. And I have to write http://www.meteoelvas.com/wxindex to enter in the 'AJAX/PHP Multilingual Templates' website version. The server only acepts "index" name to present the default home page and if I have there two index files, the 'index.htm' and 'index.php' the priority goes for the ".htm" ones.
My objective is to put a link to the 'classic Cumulus website' in the menu of 'AJAX/PHP Multilingual Templates'. And this is only an idea I have for the people with slower and older computers.
Summarizing: The idea is have a simple domain without "/", like http://www.meteoelvas.com and thats all.

Re: How to upload the index.htm file with another name?

Posted: Mon 14 Mar 2011 12:13 am
by gemini06720
actioman wrote:...(sorry for my pour english :oops: )...
Manuel, you english is fine - and even better than the english used by too many english born/educated/speaking people... :roll:
actioman wrote:If you go to meteoelvas.com, you enter directly in the 'AJAX/PHP Multilingual Templates' website version, and thats is what I want.
OK, Manuel, you ahave a few option (one of those options mentioned below)... :)

If you want users to go directly to your 'AJAX/PHP Multilingual Templates' main page when they click on the link "http://www.meteoelvas.com/" (without specifying any file/template name) then you have to rename the original file/template from 'wxindex.php' to 'index.php'.

But, as you pointed out, Cumulus uploads its main page as 'index.htm' which is the first file read when someone does not specify a file/template name when connecting to a site... :(

The easiest solution is to prevent Cumulus from automatically uploading its standard HTM files - by removing the check mark in front of the 'Include Standard Files' ('Configuration' pulldown menu -> 'Internet' option -> 'Files' tab) and setting up Cumulus to upload the files while renaming them in the process. That is accomplish on the 'Files' tab ('Configuration' pulldown menu -> 'Internet' option -> 'Files' tab) by entering the path and file name of the template on your computer and the (path) file name of the file needed on your host server - all six (6) file names will need to be entered (ie: gauges, index, record, today, trends, and yesterday).

Here is what you need to do (I will use the 'indexT' -> 'index' file/template as an example):
  • - in one of the boxes under the 'Local filenames' heading, click on the 'Browse...' button and look for the template 'indexT.htm';
    - moving right on the same line, under the 'Binary?' heading, leave the box without a check mark;
    - still moving right on the same line, under the 'Remote filenames' heading, enter the name of the file as it should be used (required) on the host server;
    - this is where Cumulus can be setup to use a different name ... for example, you could enter 'cumulus.htm';
    - still moving right on the same line, under the 'Process?' heading, place a check mark in the box;
    - still moving right on the same line, under the 'Realtime?' heading, leave the box without a check mark;
    - still moving right on the same line, under the 'FTP?' heading, place a check mark in the box.
You will have to repeat the same setup procedures for the other five (5) templates (ie: 'gaugesT.htm', 'recordT.htm', 'todayT.htm', 'trendsT.htm', and 'yesterdayT.htm') while keeping the original names produced by Cumulus (ie: 'gauges.htm', 'record.htm', 'today.htm', 'trends.htm', and 'yesterday.htm').

Before the files can be used on your host server, all six (6) templates (ie: 'gaugesT.htm', 'indexT.htm', 'recordT.htm', 'todayT.htm', 'trendsT.htm', and 'yesterdayT.htm') will have to be edited - in the navigation line (near the bottom of each templates), the file name 'index.htm' will have to be replaced with whatever file name you have decided to use - in the above example/lines, I used the name 'cumulus.htm'.

If you use the above procedures, once you have the right files (with the right names) have been uploading to your host server, you will need to delete the annoying and unused 'index.htm' from your host server.

If everything goes right, the file name for the main pages should be (for example) 'cumulus.htm' for the Cumulus HTML files and 'index.php' (renamed from 'wxindex.php' to 'index.php') for the 'AJAX/PHP Multilingual Templates' PHP files.

Should you need more assistance, please contact me using my private e-mail address (link in my signature).

Re: How to upload the index.htm file with another name?

Posted: Mon 14 Mar 2011 10:56 pm
by actioman
Thank's Ray! :clap:

Great tuturial, step by step! For dummies like me :oops:

All work fine now

In the www.meteoelvas.com I have the 'AJAX/PHP Multilingual Templates' and in the www.meteoelvas.com/index_cu.htm I have the cumulus default website! :D

Re: How to upload the index.htm file with another name?

Posted: Tue 15 Mar 2011 10:35 am
by gemini06720
actioman wrote: Great tuturial, step by step! For dummies like me :oops:
Manuel, no one is a dummy unless one wants to be a dummy or one acts as/like a dummy... :D
actioman wrote: All work fine now
Manuel, you now need to place on each site a link to the other site - easy to do with the 'AJAX/PHP Multilingual Templates' PHP templates but needing a bit more work with the Cumulus templates... ;)

Re: How to upload the index.htm file with another name?

Posted: Tue 15 Mar 2011 10:42 am
by actioman
gemini06720 wrote: Manuel, you now need to place on each site a link to the other site - easy to do with the 'AJAX/PHP Multilingual Templates' PHP templates but needing a bit more work with the Cumulus templates... ;)
Yes I know, is not finish yet! ;)