• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: {SOLVED} Mobile ON the Fly template changer upper
PostPosted: Thu Apr 19, 2012 5:16 pm 
Offline
Forum Members
Forum Members

Joined: Thu Nov 15, 2007 6:55 pm
Posts: 152
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.


Last edited by dmagill on Sun Apr 22, 2012 10:40 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Mobile ON the Fly template changer upper
PostPosted: Fri Apr 20, 2012 9:32 pm 
Offline
Forum Members
Forum Members

Joined: Thu Nov 15, 2007 6:55 pm
Posts: 152
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?


Top
 Profile  
 
 Post subject: Re: Mobile ON the Fly template changer upper
PostPosted: Sat Apr 21, 2012 10:42 am 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Aug 12, 2008 9:30 pm
Posts: 1984
Location: Feldkirchen in Kärnten, Austria
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.

_________________
CMSMS Blog - I do this!
Forge profile
Github profile
Twitter
=============================================
Support CMSMS


Top
 Profile  
 
 Post subject: Re: Mobile ON the Fly template changer upper
PostPosted: Sat Apr 21, 2012 4:49 pm 
Offline
Forum Members
Forum Members

Joined: Thu Nov 15, 2007 6:55 pm
Posts: 152
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.


Top
 Profile  
 
 Post subject: Re: Mobile ON the Fly template changer upper
PostPosted: Sun Apr 22, 2012 6:20 pm 
Offline
Forum Members
Forum Members

Joined: Thu Nov 15, 2007 6:55 pm
Posts: 152
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


Top
 Profile  
 
 Post subject: Re: Mobile ON the Fly template changer upper
PostPosted: Sun Apr 22, 2012 10:37 pm 
Offline
Forum Members
Forum Members

Joined: Thu Nov 15, 2007 6:55 pm
Posts: 152
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-&gt;content-&gt;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


Top
 Profile  
 
 Post subject: Re: Mobile ON the Fly template changer upper
PostPosted: Mon Apr 23, 2012 3:07 am 
Offline
Forum Members
Forum Members

Joined: Mon Mar 14, 2011 1:16 am
Posts: 182
Location: Brisbane, Australia
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.

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.


Top
 Profile  
 
 Post subject: Re: {SOLVED} Mobile ON the Fly template changer upper
PostPosted: Mon Apr 23, 2012 1:39 pm 
Offline
Forum Members
Forum Members

Joined: Thu Nov 15, 2007 6:55 pm
Posts: 152
Hey gocreative

Thanks for adding!

Have a good one.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Arvixe - A CMSMS Partner