Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Multiple list and detail viewers to a single section

 

 


ennisoft
User

Dec 1, 2011, 2:54 AM

Post #1 of 9 (611 views)
Shortcut
Multiple list and detail viewers to a single section Can't Post

Hi,

I want to set up a mobile device version of my CMSB site to operate in a subdomain (or just a subfolder) of my existing site; in order to display the same records as on my main (desktop viewed) site, but in a different format, I need to be able to define a second set of viewers.

How do I get around this?

I know I could configure the entire site to work at both 1000px and 180px wide, but I want to retain the existing layout for the main site.

Any help appreciated.


(This post was edited by ennisoft on Dec 1, 2011, 8:13 AM)


InHouse
User

Dec 1, 2011, 9:29 AM

Post #2 of 9 (570 views)
Shortcut
Re: [ennisoft] Multiple list and detail viewers to a single section [In reply to] Can't Post

Hi ennisoft,

If I understand your situation correctly, this problem is now best handled using Media Queries which detect the size of the screen being used. You can instruct a set of CSS rules to be applied to your basic page layout which completely restructure your page for that size of device. Best of all, you don't have to write a second set of pages - just adjust your page elements to flow differently in a narrow screen.

Some good info on this is available at:
http://www.adobe.com/devnet/dreamweaver/articles/introducing-media-queries.html
and there's respond.js to backfill media querie functions in older browsers:
https://github.com/scottjehl/Respond#readme

Hope this helps!
J.


ennisoft
User

Dec 2, 2011, 4:25 AM

Post #3 of 9 (558 views)
Shortcut
Re: [InHouse] Multiple list and detail viewers to a single section [In reply to] Can't Post

Hi InHouse, thanks for the reply, but I actually want to structure the content differently for mobile presentation, hence redirecting mobile users to a mobile subdomain.

CSS is great for repositioning / hiding / resizing content, but I think that rebuilding the whole site using media queries would be unmanageable in the long term.

My original issue remains; how do I link a second set of viewers to a section?

Coincidentally, your reply is of use to another thread just posted in the forum, which is a very similar query!


(This post was edited by ennisoft on Dec 2, 2011, 4:26 AM)


InHouse
User

Dec 2, 2011, 7:27 AM

Post #4 of 9 (552 views)
Shortcut
Re: [ennisoft] Multiple list and detail viewers to a single section [In reply to] Can't Post

Hi again,

In that case, I could see two options:

1 - Redirect mobile users to a sub-folder with an entirely mobile-friendly version of the site. Then you'd just use all the same queries and the only thing you'd have to look out for would be to avoid using the automatic _link and build your own anchors. Plus, make sure you make all your page updates in both locations. You'd effectively be running two sites like in the very old days when we sometimes built printer-friendly versions of sites like this.

2 - In the main site pages, detect for the mobile subdomain and put conditionals on which query to load and possibly (again) whether to use or ignore the auto _link values.

The former seems more straightforward to me, though I have to say that media queries seem both simpler and better than both options - but I don't have a full grasp of your site requirements.

Cheers!


ennisoft
User

Dec 2, 2011, 8:19 AM

Post #5 of 9 (550 views)
Shortcut
Re: [InHouse] Multiple list and detail viewers to a single section [In reply to] Can't Post

Hi,

Thanks again, the first approach is what I was going for - I didn't have the information about replacing _link with a hard coded link to the detail viewer.

The only remaining piece of the puzzle as far as I can see is this: the back link from the detail viewer to the list viewer takes into account if the user had navigated through pages of lists - I guess I'll have to use the "onclick=history.back()" script for this.


InHouse
User

Dec 2, 2011, 8:25 AM

Post #6 of 9 (551 views)
Shortcut
Re: [ennisoft] Multiple list and detail viewers to a single section [In reply to] Can't Post

Yes, that might be the case. Or you could do what we did in the old days and just park a hard-coded "Back to List" button in strategic locations.

But you will want to remove that automatic link to be sure. I often find that we need to build our own links anyway due to the conditions of the project, so not using the automatic link isn't a huge hardship.

J.


ross
Staff / Moderator


Dec 2, 2011, 11:38 AM

Post #7 of 9 (546 views)
Shortcut
Re: [InHouse] Multiple list and detail viewers to a single section [In reply to] Can't Post

Hi inHouse

Thanks for helping out. Sounds like you got ennisoft sorted out on this one :).

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



ross
Staff / Moderator


Dec 2, 2011, 11:39 AM

Post #8 of 9 (545 views)
Shortcut
Re: [ennisoft] Multiple list and detail viewers to a single section [In reply to] Can't Post

Hi ennisoft

Wanted to post again as a reply to you so you get the notification. Basically, it sounds to me like inHouse has you going now. Keep us up to date with how you are making out.

Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



InHouse
User

Dec 2, 2011, 1:39 PM

Post #9 of 9 (523 views)
Shortcut
Re: [ross] Multiple list and detail viewers to a single section [In reply to] Can't Post

Just trying to pay back a fraction of the help I've received here over the years.

Nice to have confirmation from the pros though!

J.