Filtering Records To Be Displayed With PHP Include

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

By info@yogamerge.com - May 11, 2016

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

By ross - May 12, 2016

Hi Kent

Whether this is going to work will depend on how your subdomain is setup.

Do you already have CMS Builder loading content on your mobile site? 

-----------------------------------------------------------
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/

By info@yogamerge.com - May 12, 2016

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 info@yogamerge.com - May 18, 2016

Hi Ross,

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

Thanks much!