set file name - Post ID 178746

User 2334842 Photo


Guest
3 posts

How do I set the name of the file that is uploaded to my site. I made my first page called MyWebsite and set the ftp to load to the right directory. The saved file is called index.html. I really want it to be saved as something else. Do I just save the vnu file as something else and the name will be instantly transfered to the html version?

Also, I was hoping to use this thing in addition to my normal site that runs on zend/php so that other people who can't code can put up web pages. instead of saving html files, can I specify the extension and save without a header. I really just want to include it into my views.
User 122279 Photo


Senior Advisor
14,610 posts
Online Now

The 'home' page of a website is usually called index.html. Then visitors to the site don't have to include the file name in the address (www.yourdomain.com instead of www.yourdomain.com/filename.html). It's easier to remember if you don't include a file name.

But if you really want a different name, navigate with FTP to the site and rename the file to something else. But you have to be aware that VSD will overwrite any changes you make outside the programme. So if you have changed the file name to somethingelse.html, VSD will still upload the index.html, so you will have them both there, and the index.html will be the newest version if you have made changes.

Changing the name of the vnu file won't help you. VSD always calls the first html file of a site index.html.

I'm not qualified to say anything about zend...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2334842 Photo


Guest
3 posts

If that's the answer, it's really dehabilitating. My file is actually index.php, because I bootstrap a lot of php libraries etc. etc. I was hoping to include the coffee thingy as a part of a view. Maybe I'll put all the coffee stuff as a subdomain and rewrite it in .htaccess.

Does coffee accomodate headers. NOT <head> tags, I mean a banner on top and a thing on the left so that all pages have a consistent navigation
User 122279 Photo


Senior Advisor
14,610 posts
Online Now

You can indeed have the first page named index.php (I didn't realise it was the file extension you wanted to change), but that will have to be renamed after you have uploaded it, if you are using the internal FTP in VSD. If you are uploading with a standalone FTP client, you can rename the file before upload.

But if you are working with php files, you shouldn't really be using VSD, as it can't save anything as php. It would mean that you would have to rename every time you upload some change.

The header and the 'thing on the left' (navigation?) can be created on one page and copied to all the rest in VSD. If you want to use a code based web builder, you create the bits that go on all pages once, then chop them out into separate files and include them as php includes. That's what I would do anyways.

My guess is that the CC html Editor would be a better tool for you. It can handle html, css and php. If you have a web server installed, and save the files to the web server's www folder, you can preview locally in a browser. If not, you'll have to upload between every preview.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2334842 Photo


Guest
3 posts

Yeah, this vsd is too easy. It's lack of any power means it can't handle any automation just as having a menubar on every page that is the same. It's nice to have that in a separate file because changing one file means changing the menu bar on every file. Well, I figured it out. I"m going ot have the non technical people post into a subdomain like calendar.mysite.com and redirect at the .htaccess level. Then I"m going to have my real site on the main site.
User 122279 Photo


Senior Advisor
14,610 posts
Online Now

VSD was made for people who have no coding knowledge, and at that it is actually very good. It has its limits of course, one being the use of php, another being html5.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.