Viewing separating my mobile and full sites into two different projects ?

separating my mobile and full sites into two different projects ?



User: spyboynola 8 years ago
I am thinking of separating my mobile and full sites into two different projects and creating a third site than redirects when user is on a computer.
My questions is can I duplicate the projects and then delete the unneeded files from one site and then rename?
I.E. take mobile files out of one project and then pull full size files out of the other duplicate project file. ending up with two different project files one mobile and one full size.
Now projects have mixed files - both mobile and full size.
I realize I am going to have to pay special attention to file names for redirects.
Are there any benefits/pitfalls to separate mobile and full size projects.
spyboy4u.com

Last edit 8 years ago
User: James G. 8 years ago
Good timing spyboy. Roddy just posted this a day or two ago. It should answer your questions and set you off on doing what you want
User: spyboynola 8 years ago
Yes I am a big fan of Roddys work, I was just wondering if my method was going to work or if there was a better way for some reason I might not have thought of! This has been the case before. It is Roddy's new touch widgets that got me started thinking if it was time to separate the mobile from the full size getting ready to make a computer only version of full size. Guess there is no harm in testing, worried about ability to properly link sites after separation.
User: Roddy 8 years ago
There's instructions on how to create and use the redirect code on the TriSite example website.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: spyboynola 8 years ago
so I should combine sites separating them with subdirectories with a redirect page.?
I split the sites back in the day when EW had a harder time with large sites.
spyboy4u

Last edit 8 years ago
User: spyboynola 8 years ago
or keep them the same and divide into subdirectories with a redirect page on each project!
User: Roddy 8 years ago
With a large site like your I would create each version on a separate project file - fullsite, tablet and phone.

Upload these three folders to the root folder on the server.

Create an index.html file and upload this to the root folder. The index.html file is basically a blank HTML doc with the redirect code.

When a visitor enters your domain-name.com into the browser, it will read the code in the index.html and direct them to the appropriate site depending on the device they are using.

The index.html file can be created in TextEdit.app using plain text mode...

<!DOCTYPE HTML>
<html>
<head>
<title>Website Name</title>
<meta http-equiv="content-Type" content="text/html; charset=utf-8">
<script type="text/java script">
if (screen.width >= 1061) {
document.location = "fullsite/index.html";
}
if (screen.width <= 1061) {
document.location = "tablet/index.html";
}
if (screen.width <= 601) {
document.location = "phone/index.html";
}
</script>
</head><body></body></html>

Change "fullsite", "tablet" and "phone" to the actual folder names.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: spyboynola 8 years ago
cool Thanks Roddy, you started me on the road of html5 and thanks again for this suggestion. I know your a musician if your ever in New Orleans you should holler at me. Buying touch widget package later today Thanks again.
User: spyboynola 8 years ago
so instead of publishing to sub directories, publish files to main site only?
User: Roddy 8 years ago
Each version of the site is in its own folder so you are basically publishing three sub sites and no main one.

Upload these folders to the root folder on the server. Place the index.html file with the redirect code in the root folder too and it will open the appropriate folder depending on which device the visitor is using.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: Maria F. 8 years ago
Roddy, there are so many different navigation buttons options. Can you recommend the simplest one that would work for me? My website-in-progress is made with mobile redirect pages, and I want to use drop down links that are user-friendly on phones. Thank you.
User: spyboynola 8 years ago
Upload these three folders to the root folder on the server.

Are these Folders the project files?
Is the root folder the folder on server that EW publishes to?

Create an index.html file and upload this to the root folder. The index.html file is basically a blank HTML doc with the redirect code.

A blank page with html snippet with redirect code placed in the first page position upon publishing?
User: Roddy 8 years ago
These folders are sub sites so they should be published as sub folders.

The root folder is the top level one with the index.html file

The redirect code can go in the header code box in the Page inspector no need for a snippet.



-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.
User: spyboynola 8 years ago
so I should place sub site pages in a directory folder before publishing to the main site? What about the pages in main site should they be placed in folder also then published to main site??
User: Roddy 8 years ago
Yes, the main site can be in a folder too.

-------------------------------
Roddy

Website: http://everwebwidgets.com
Contact: http://everwebwidgets.com/ewWidgets-home/contact.html
NOTE: I am an EverWeb user and NOT affiliated with EverWeb! Any opinions expressed in this forum are my own.


Post Reply
You must login or signup to post.