Running two websites from the same umbraco database
Hi,
one customer had this request:
creating a mobile version of the website (mobile.customer.com), with a different layout, other sizes of images etc., but exactly the same content.
First I experimeted with the altTemplate parameter and some url rewriting. I did not manage to get this running.
Then I created a copy of the website, that is connected to the same umbraco database. I modified the templates (different layout, different CSS included etc.) and some XSLT-files (mainly to use the images from the "main" website, and also other dimesions for the images, that are displayed with imagegen). This works very well, except that when content is changed or added, this is not reflected on the mobile version.
Also I thought it should be possible to get the same result 1) by touching web.config, OR 2) recycling ApplicationPool Or 3) deleting /App_data/umbraco.config
None of the above worked.
I am awhere, that this approach has some drawbacks, like update process must be done for two sites, modifications in XSLT or dlls must be done twice, so if there is better approach, please let me know.
Websites are running with umbraco v 4.11.4 (Assembly version: 1.0.4780.19111)
I would like to know how I could get the mobile version to reflect changes of the main website automatically.
Did you consider using a responsive framework like Twitter Bootstrap or Zurb Foundation? It's simpler than maintaining two versions, more flexible and supports not only desktop/mobile phones but tablets and other devices
Running two websites from the same umbraco database
Hi,
one customer had this request:
creating a mobile version of the website (mobile.customer.com), with a different layout, other sizes of images etc., but exactly the same content.
First I experimeted with the altTemplate parameter and some url rewriting. I did not manage to get this running.
Then I created a copy of the website, that is connected to the same umbraco database. I modified the templates (different layout, different CSS included etc.) and some XSLT-files (mainly to use the images from the "main" website, and also other dimesions for the images, that are displayed with imagegen). This works very well, except that when content is changed or added, this is not reflected on the mobile version.
I can force to push the changes with http://mobile.domain.com/umbraco/dialogs/republish.aspx?xml=true , but I am looking for a way to reflect the changes automatically.
Also I thought it should be possible to get the same result
1) by touching web.config, OR
2) recycling ApplicationPool Or
3) deleting /App_data/umbraco.config
None of the above worked.
I am awhere, that this approach has some drawbacks, like update process must be done for two sites, modifications in XSLT or dlls must be done twice, so if there is better approach, please let me know.
Websites are running with umbraco v 4.11.4 (Assembly version: 1.0.4780.19111)
I would like to know how I could get the mobile version to reflect changes of the main website automatically.
Any ideas?
Thanks
Christian
Hi Christian,
Did you consider using a responsive framework like Twitter Bootstrap or Zurb Foundation? It's simpler than maintaining two versions, more flexible and supports not only desktop/mobile phones but tablets and other devices
Zakhar
Hi Zakhar,
yes, I did consider that, but the customer did not want to have anything changed on the main site.
Also the mobile version must be availaible on a different (sub-)domain.
Christian
is working on a reply...