Hey All, I hope I am in the right place.
I have stalked the forum for this, but have not found anything that seemed to fit what I am doing. Could do with me being clueless.
I am trying to setup a logic that will change up the template of any visiting phone. Normal PC hits the site and they see the site, a mobile hits the site, and they are presented with a new template, not just the css.
I like Goran's site setup, but want to know if I can further extend to call a new template, not just change up the CSS.
http://www.i-do-this.com/blog/14/Make-y ... bile-ready
I don't have a site ready for this, but hope to start building the basics of it shortly.
Has anyone done this already? On the Forum?
Any and all help or direction would be appreciated.
Thank you.
{SOLVED} Mobile ON the Fly template changer upper
{SOLVED} Mobile ON the Fly template changer upper
Last edited by dmagill on Sun Apr 22, 2012 10:40 pm, edited 1 time in total.
Re: Mobile ON the Fly template changer upper
Nothing? Someone else must have run into a boss that wanted 4000 tools and modules installed that will not let your template be retooled by different css...
Anyone? Or am I just missing something?
Anyone? Or am I just missing something?
Re: Mobile ON the Fly template changer upper
Did you actually read my post? Read it again, it doesn't do Template switching but you can switch any part of your template based on device not only css.
Re: Mobile ON the Fly template changer upper
Thanks uniqu3,
I did read your entire post. It seems logical and straight forward.
I have a number of plugins in play. CG image editor for one. The client can select an image and the editor will auto resize. The bottom menu will have a large ugly arrow show people where they already know they are. There are a number of content_image calls on each page. This is possibly the most heavily modified template I have ever built.
There are a tonne of little things that I can not trust the client to do. So for me, the best solution is to change up the template on the the client. Hopefully I can reuse the same content that is already there.
I will even post my template and CSS if it helps to clarify my issue.I need something that the client doesn't have to think about. They can edit the usual site, maybe add to a Mobile block and the site works.
If you know of a better way, I am more then willing to listen.
As always my intent is not to offend.
Thank you.
I did read your entire post. It seems logical and straight forward.
I have a number of plugins in play. CG image editor for one. The client can select an image and the editor will auto resize. The bottom menu will have a large ugly arrow show people where they already know they are. There are a number of content_image calls on each page. This is possibly the most heavily modified template I have ever built.
There are a tonne of little things that I can not trust the client to do. So for me, the best solution is to change up the template on the the client. Hopefully I can reuse the same content that is already there.
I will even post my template and CSS if it helps to clarify my issue.I need something that the client doesn't have to think about. They can edit the usual site, maybe add to a Mobile block and the site works.
If you know of a better way, I am more then willing to listen.
As always my intent is not to offend.
Thank you.
Re: Mobile ON the Fly template changer upper
Logistically, is what I am asking that hard?
I am asking because I don't know. I am trying not to be the client that asks for the moon and then uses MS Word as their example.
Am I just being more dense then usual?
I can see a huge benefit to this. Offer a template switching tool that is simple to implement would expand your user base. The mobile market is growing faster than any other market in regards to web usage. These are not stats I have to pander to the developers, they probably know them better then me
I would love to offer my clients a CMS/Mobile ready product. Eventually with the ability to switch out templates from different clients, regions and product request.
I know I could be just talking out of my a**.
As always, I am not trying to pick a fight, just get my boss off my back. Thank you to everyone that makes CMSMS happen.
D
I am asking because I don't know. I am trying not to be the client that asks for the moon and then uses MS Word as their example.
Am I just being more dense then usual?
I can see a huge benefit to this. Offer a template switching tool that is simple to implement would expand your user base. The mobile market is growing faster than any other market in regards to web usage. These are not stats I have to pander to the developers, they probably know them better then me
I would love to offer my clients a CMS/Mobile ready product. Eventually with the ability to switch out templates from different clients, regions and product request.
I know I could be just talking out of my a**.
As always, I am not trying to pick a fight, just get my boss off my back. Thank you to everyone that makes CMSMS happen.
D
Re: Mobile ON the Fly template changer upper
I think I got it figured out.
Added this plugin:
http://dev.cmsmadesimple.org/projects/contentdump
I created a section header called 'Mobile'.
I created child pages that only the mobile site will need. Then in each of the pages I added this:
{content_dump this_only=15} {foreach from=$dump item=dump} {$dump->content->data}<br /> {/foreach}
For example my Main page home is ID:15. And that code calls all the content in that page. Perfectly.
Now I just have to add the phone logic to the main page of my site and phones will be redirected to the correct pages. Then I will lock the men down and it will be awesome.
The template thing would be a great deal more elegent, but I am happy with this at the moment. I am certain I will be back to bug you guys.
Thank you everyone for this. Sometimes I have to figure out what I am looking for before I can find it.
D
Added this plugin:
http://dev.cmsmadesimple.org/projects/contentdump
I created a section header called 'Mobile'.
I created child pages that only the mobile site will need. Then in each of the pages I added this:
{content_dump this_only=15} {foreach from=$dump item=dump} {$dump->content->data}<br /> {/foreach}
For example my Main page home is ID:15. And that code calls all the content in that page. Perfectly.
Now I just have to add the phone logic to the main page of my site and phones will be redirected to the correct pages. Then I will lock the men down and it will be awesome.
The template thing would be a great deal more elegent, but I am happy with this at the moment. I am certain I will be back to bug you guys.
Thank you everyone for this. Sometimes I have to figure out what I am looking for before I can find it.
D
-
- Power Poster
- Posts: 265
- Joined: Mon Mar 14, 2011 1:16 am
Re: Mobile ON the Fly template changer upper
I agree with you. I think the best solution would be to offer a second section within each page template which is for mobile devices. This way you can create a page template which has both 'general' and mobile device sections in the one spot, without needing any complex coding or extra modules. The only other addition to the core would be some kind of built-in switch to detect which template subtype to use.dmagill wrote:I can see a huge benefit to this. Offer a template switching tool that is simple to implement would expand your user base. The mobile market is growing faster than any other market in regards to web usage.
Re: {SOLVED} Mobile ON the Fly template changer upper
Hey gocreative
Thanks for adding!
Have a good one.
Thanks for adding!
Have a good one.