Filtering Records To Be Displayed With PHP Include

25 posts by 4 authors in: Forums > CMS Builder
Last Post: May 18, 2016   (RSS)

Hey guys,

I had one other quick question on this topic.

I would also like to filter records on my mobile site just as we have done on the desktop page that we worked on in this topic.

I think though the issue is that my yoga class mobile pages are on a sub-domain like this:

m.yogamerge.com/mobile-pages/classpages/nikkanadia/restorative-flow-test.php

My include file is here:

yogamerge.com/includes/mobile-instructor-records.php

So what would the below code need to look like on restorative-flow-test.php in order to display and filter the records using the above located include?

<?php
  $category = "Nikka-Nadia"; // name of category to load
  include('../../includes/mobile-instructor-records.php');
?>

Or is it not possible to do this if the mobile page is within a sub-domain?

Is it possible to display records from cms on a sub-domain (m.yogamerge.com) of your main domain (yogamerge.com)?

Thanks as always,

Kent

Hi Ross,

Well, the mobile site is a bit weird at the moment, I do use it, but the main catalog on the mobile site is not on the sub-domain, it's yogamerge.com/mobile.php

However, the home page is m.yogamerge.com and the class pages are m.yogamerge.com/mobile-pages/classpages/nikkanadia/

I set it up this way after installing cms, because I knew that I could make cms work in that manner on the mobile site, as I was also unsure then about using cms on a sub domain.

By ross - May 16, 2016

I don't have a clear picture of your setup.

I recommend starting with is a simple detail page or simple list page on your subdomain just so we can make sure it's actually going to work.

And by simple, I mean just copy all the code from the code generator and put it into a file called "subdomainTest.php" and see if you can get that to display on your sub domain.

Does that make sense?

See if you can get that setup and then let me know.

Thanks!

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@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/

Hi Ross,

I figured this out, I won't bore you with the details. :)

Thanks much!