Setting Up a Mobile Theme By Weblog admin
An admin can set up a default weblog theme( Desktop theme.) in current weblog creation page.So one additional step with defining a default mobile theme from the available mobile themes collections.(There will be at least one default as i am going to add a HTML5 mobile Theme for sure.)
So in theme.xml we will be having an additional entry to indicate that the theme is a mobile theme.(Still it is not finalized with the community and will decide soon on the entry.)
How Rendering will pick up the theme.(Changes in the core)
After the recognition of the request coming from a mobile device, in the PageServlet we need to switch from desktop them to the defined mobile theme for the identified weblog.So in the weblog we will be having a "defaultMobileTheme" attribute which will be set by the weblog admin at the weblog creation.
So we will assign mobile theme using setEditorTheme( ) at the time it looks for the template to render in PageServlet. (So roller will continue same process afterwards , But having a mobile theme is assigned for its editor theme.)
In coming discussions i will be post on the velocity macros we are going to add to Roller to enhance capabilities in Roller mobile themes.
I would like to thank all the users and developers who gave their valuable feedback in Roller dev mailing list and expect further assistance in future.:)
An admin can set up a default weblog theme( Desktop theme.) in current weblog creation page.So one additional step with defining a default mobile theme from the available mobile themes collections.(There will be at least one default as i am going to add a HTML5 mobile Theme for sure.)
So in theme.xml we will be having an additional entry to indicate that the theme is a mobile theme.(Still it is not finalized with the community and will decide soon on the entry.)
How Rendering will pick up the theme.(Changes in the core)
After the recognition of the request coming from a mobile device, in the PageServlet we need to switch from desktop them to the defined mobile theme for the identified weblog.So in the weblog we will be having a "defaultMobileTheme" attribute which will be set by the weblog admin at the weblog creation.
So we will assign mobile theme using setEditorTheme( ) at the time it looks for the template to render in PageServlet. (So roller will continue same process afterwards , But having a mobile theme is assigned for its editor theme.)
In coming discussions i will be post on the velocity macros we are going to add to Roller to enhance capabilities in Roller mobile themes.
I would like to thank all the users and developers who gave their valuable feedback in Roller dev mailing list and expect further assistance in future.:)