external access to menu

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
piXelshooter
Forum Members
Forum Members
Posts: 14
Joined: Sun Jun 03, 2007 10:42 am

external access to menu

Post by piXelshooter »

Hi,
My problem:
I have got a cmsms installation on my webspace, and in a subdir a phpBB installation. I want to show the cmsms menu at the top of the page. Atm, I copy the final html code into the phpBB template when I change something. Because this isn't a very good solution (in my eyes...), I want to place a menu call in the phpBB template.

Because I have not much deep experience, I'd be happy if someone posted some codes or tips which can be understood by a newb like me.  ;)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: external access to menu

Post by calguy1000 »

it's possible to do via an xmlhttp request to a module action.

I use this url to get the menu on my site: 

Code: Select all

http://svr.techcom.dyndns.org/cms_test/svn/index.php?mact=MenuManager,cntnt01,default,0&cntnt01showtemplate=false
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
piXelshooter
Forum Members
Forum Members
Posts: 14
Joined: Sun Jun 03, 2007 10:42 am

Re: external access to menu

Post by piXelshooter »

thanks, that's exactly what I searched for!

EDIT

well, now I only have to include this result into my phpBB3 forum template.
Because more of cmsms users know about phpBB than phpBB users about cmsms  ;) :
The problem is including the menu, because the cmsms index.php redefines variables defined by phpBB previously.
I also tried to let another third php file include the cms index.php with (how expected...) the same result.
Now, I use an or , but if someone knows a better solutiion, pleaes tell me ^^
Last edited by piXelshooter on Fri Jun 08, 2007 2:36 pm, edited 1 time in total.
jlbach
New Member
New Member
Posts: 8
Joined: Thu Dec 20, 2007 4:39 pm

Re: external access to menu

Post by jlbach »

calguy1000 wrote: it's possible to do via an xmlhttp request to a module action.

I use this url to get the menu on my site: 

Code: Select all

http://svr.techcom.dyndns.org/cms_test/svn/index.php?mact=MenuManager,cntnt01,default,0&cntnt01showtemplate=false
I don't know how to do it via an xmlhttp request, but using a php include in a template of the external application, the menu tree is showed. Is it also correct to use this method.. ?

Anyway, the problem I have is that the code showed does not cointains any reference to id and css classes of the original site. I mean, instead of:

Code: Select all

<ul id="primary-nav">
	<li class="menuactive"><a class="menuactive" href="http://mysiste.com/" ><dfn>1: </dfn>Home</a></li>
	<li class="menuparent"><a class="menuparent" href="http://mysite.com/index.php?page=page2" ><dfn>2: </dfn>Title page 2</a>
I obtain:

Code: Select all

<ul>
<li class="currentpage"><h3><dfn>Current page is 1: </dfn>Home</h3></li>
<li><a href="http://mysite.com/index.php?page=page2"><dfn>2: </dfn>Title page 2<</a>
Can I do something to obtain css references ('primary-nav',' menuactive', 'menuparent'...)  in the code generated?

Thanks for your help.

Jaume
point4design
Forum Members
Forum Members
Posts: 68
Joined: Wed Aug 15, 2007 8:11 pm

Re: external access to menu

Post by point4design »

I know this is old, but I need the same help as the previous poster. I can access the menu, but it doesn't have any of the CSS classes. Anybody have any ideas how to use a menu on an external app (store, forum, etc)?
benchfrooser
Forum Members
Forum Members
Posts: 28
Joined: Thu Jan 08, 2009 1:28 pm

Re: external access to menu

Post by benchfrooser »

calguy1000 wrote: it's possible to do via an xmlhttp request to a module action.

I use this url to get the menu on my site:  

Code: Select all

http://svr.techcom.dyndns.org/cms_test/svn/index.php?mact=MenuManager,cntnt01,default,0&cntnt01showtemplate=false
Could you explain the syntax?
How do I call the menu with my custom template?
Post Reply

Return to “CMSMS Core”