Page 1 of 1

Use CMSMS Menu on Seperate Non-CMSMS site

Posted: Thu May 12, 2011 8:17 pm
by jaslorax
I would like to include the dynamic menu from my main CMSMS site on another website and have it update as the main one does. I'd also like to have it affect the parent category with hi-lighting on the non-CMSMS site.

Not sure if this can happen easily. The issue for me is that the non-cmsms site is on a windows box and separate because it runs ticketing software that only works with that setup and limits access to the structure of the site; but there is a field for common html to appear on all pages . . .

I've seen this discussion: http://forum.cmsmadesimple.org/viewtopi ... ic=13379.0 but I don't think it's quite the same thing . . .

I saw that the CMSMS site does it for the blog and would love to see code/how?

From: http://www.cmsmadesimple.org/about-link ... s-website/
What about the forum?

We use phpBB for our forum because we feel it meets our needs best, and it saved us from having to write one from scratch.

A theme was written for phpBB that allows us to duplicate the menu and some of the colors from the main CMS site and implement it on phpBB.... we don't use iframes, or any other tricks.

The only creative thing done on the forum is the menus. Our theme designer wrote some creative (but simple when you look at it) code that extracts the menu structure dynamically from the CMS Made Simple website on a regular basis, so that changes made in the site structure on the website automatically appear on the forum menus too.

Re: Use CMSMS Menu on Seperate Non-CMSMS site

Posted: Mon May 16, 2011 5:38 pm
by spcherub
Assuming I understand your need....

If your Windows box has access to the database that is used by the CMS installation, you could write some custom SQL to get the information about active (CMS) pages and then use that to format your menu on the Windows server. If the SQL is written properly, this menu can be dynamic and reflect any changes made within the CMS. Basically you will be replicating some of the functionality done by the Menu Manager, so a good starting point will be to look at the code for this module.


-S

Re: Use CMSMS Menu on Seperate Non-CMSMS site

Posted: Mon May 16, 2011 7:59 pm
by jaslorax
Not quite what I'm looking for, but thanks. As I said I can't do much coding on the windows box side because of the proprietary software that we use . . .

I doubt I can use it, but what I am looking for is the code used by the CMSMS team as referenced in the original post . . .

Re: Use CMSMS Menu on Seperate Non-CMSMS site

Posted: Mon May 16, 2011 8:32 pm
by Wishbone
Make a template that only has the menu in it. Create a page with some blank content using that template. Call the page in an iframe on the other site. I do this for sites with forums. The forum isn't CMSMS, but I include the iframe call in the forum template.