Page 1 of 1
external access to menu
Posted: Thu Jun 07, 2007 7:47 pm
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.

Re: external access to menu
Posted: Thu Jun 07, 2007 10:41 pm
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
Re: external access to menu
Posted: Fri Jun 08, 2007 1:23 pm
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 ^^
Re: external access to menu
Posted: Thu Jan 10, 2008 5:45 pm
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
Re: external access to menu
Posted: Sat Sep 27, 2008 12:46 am
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)?
Re: external access to menu
Posted: Wed Sep 16, 2009 9:59 pm
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?