简体   繁体   English

joomla 3.1 ajax模块

[英]joomla 3.1 ajax module

ok so I have a main horizontal menu that appears on all pages, (company, products, about us) and I want another menu, (vertical accordion on the left side of the page) inside products: 好的,所以我有一个主水平菜单出现在所有页面(公司,产品,关于我们)上,我想要另一个菜单(在页面左侧的垂直手风琴)出现在产品内部:

phone 电话

--samsung galaxy s4 - 三星Galaxy S4

--iphone 4 --iphone 4

pc 个人电脑

--hp pavilion --hp展馆

--toshiba -东芝

and when I clic on any of the sections of the accordion menu the information about each product appears on the right using ajax. 当我选择手风琴菜单的任何部分时,有关每种产品的信息将使用ajax出现在右侧。 I have made the accordion menu as a custom html module and the same with the content that its supposed to appear on the right side (I used modules instead of articles). 我已经将手风琴菜单作为一个自定义html模块制作,并将其内容显示在右侧(我使用模块而不是文章)。

Now I'm thinking that its probably better to create another menu for the accordion and that the content should be articles, but I dont know how to make it look like an accordion, and I still need help using ajax to show the content of each product. 现在,我认为为手风琴创建另一个菜单可能更好,并且内容应该是文章,但是我不知道如何使它看起来像手风琴,并且我仍然需要使用ajax来显示每个内容的帮助产品。

the main thing is, I want to use ajax to replace one module for another when I clic on any section of the accordion menu. 最主要的是,当我选择手风琴菜单的任何部分时,都想使用ajax将一个模块替换为另一个模块。 is there any way to do it, all I could find in google its how to change the main article of the page, for that i have to replace jdoc:include type="component" and add an event with the url but that replaces everything and I just want to change the right module/article something like this 有没有办法做到这一点,我可以在google中找到所有如何更改页面的主要文章,为此,我必须替换jdoc:include type =“ component”并添加一个带有url的事件,但是它将替换所有内容我只想更改正确的模块/文章,像这样

I dont know if I explained myself well. 我不知道我自己解释得好不好。

I used shaper helix 2 template 我使用了shaper helix 2模板

Any help would be appreciated. 任何帮助,将不胜感激。

Check for some extensions here: http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/accordion-menus 在此处检查一些扩展: http : //extensions.joomla.org/extensions/structure-a-navigation/menu-systems/accordion-menus

An advice... you better forget ajax to load the catalog because as it used on the example the product pages are missed by search engines, as spiders and crawlers doesn't execute javascript. 一个建议...您最好不要忘记使用ajax来加载目录,因为如示例中所使用的那样,搜索引擎会遗漏产品页面,因为蜘蛛和搜寻器不会执行javascript。 Try to search for that domain... results don't have any product. 尝试搜索该域...结果没有任何产品。

Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM