Use CMSMS Menu on Seperate Non-CMSMS site

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
User avatar
jaslorax
Forum Members
Forum Members
Posts: 25
Joined: Thu Jan 14, 2010 12:34 am

Use CMSMS Menu on Seperate Non-CMSMS site

Post 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.
spcherub
Power Poster
Power Poster
Posts: 402
Joined: Fri Jun 06, 2008 5:54 pm

Re: Use CMSMS Menu on Seperate Non-CMSMS site

Post 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
User avatar
jaslorax
Forum Members
Forum Members
Posts: 25
Joined: Thu Jan 14, 2010 12:34 am

Re: Use CMSMS Menu on Seperate Non-CMSMS site

Post 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 . . .
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Use CMSMS Menu on Seperate Non-CMSMS site

Post 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.
Post Reply

Return to “CMSMS Core”