Menu
Feedback
Start here
Tutorials


Creating a development environment for mobile version

Tutorial valid only for Legacy CMS Stores.

We start this article with a reminder of the fact that the tendency and good practice is for a single (responsive) version to be used for both desktop and mobile.

The creation of a separate mobile version was a practice adopted when the CSS resources made it hard to adapt a desktop version for mobile use. Today, with the resources that the CSS offers, it has become standard practice to create a responsive version.

To read more about this, check the article Responsive vs. Mobile Version.

The purpose of this article is to illustrate how to prepare a development environment for a mobile version, without affecting the production version.

There are a number of ways of developing a mobile version without impacting the desktop version an without this development being public in mobile browsing. We will deal with the primary method in this article.

Developing a mobile version

To develop a mobile version for a new website, you must proceed as follows:

  1. Set up a new (temporary) store in the Account Settings. This should be done by the person responsible for the store (environment). In the Admin, go to Account Settings > Accounts. Select the desired account and click Configure This Store.
  2. Create a new website (or clone the main one) on the CMS Layout:

Storefront > Layout > CMS folder > Sites and Channels > New Website

{"base64":"","img":{"width":281,"height":311,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":11272,"url":"//images.ctfassets.net/alneenqid6w5/62XyLdvzwsQaESok6EmUG8/e8a4597bed1e50d5ce24f350d46be96b/New_website.png"}}

  1. Create a folder structure for the Mobile website: at this stage, you will have to create the default system folders to be used in the mobile version (search, department, category, brand, product etc.)

Developing a Mobile version

To view the mobile version, access the site via myvtex.com through a host set up in the Account Settings. Don’t forget the following parameters: ?uam=true&mobile={mobile\_version)

Example: http://(storename).myvtex.com?uam=true&mobile=4

Posting a mobile version

When the development is complete, proceed as follows to post the mobile version:

  1. Define the mobile version of the Principal Website. On the Principal Website, set up the Website-Mobile field, pointing to the Mobile Website.
  2. Define Parent Website for the Mobile version. On the Mobile Website, configure the Parent Website field, pointing to the Principal Website
  3. Exclude the Website Binding of the Mobile version. On the Mobile website, exclude the binding created. NB: Mobile versions do not need a binding because they inherit this configuration from the parent website.
  4. Delete the (temporary) mobile store created in the Account Settings. This store was created purely to serve as an environment for developing the mobile version. Since the mobile version will inherit the hosts of the Principal website, this store will not be used again and can be deleted.
Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
How to identify a page template
« Previous
Setting up marketplace for multistores
Next »
Contributors
3
Photo of the contributor
Photo of the contributor
Photo of the contributor
+ 3 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback