Hi,
this is just a question.
I have just installed the module "comment" on 19.4.3 and saw that it uses the tags StartExpandCollapse and StopExpandCollapse.
In 1.10 they are removed. One can expect problems with more modules I guess. Is there already an alternative and/or workaround?
I know it is not core but with beta 3 one can start thinking about things like that.
Kind regards,
Jan
[module] StartExpandCollapse
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: StartExpandCollapse
With jQuery being shipped with CMSMS there is no need to include tags for expandCollapse..
it's as trivial as (something like:)
{cms_jquery} {* in the header *}
EDIT: I fixed a problem I saw in my typing but still haven't tested this.
<div class="toggle" rel="box1">expand a</div>
<div class="area" id="box1">abcdefg</div>
<div class="toggle" rel="box2">expand b</div>
<div class="area" id="box2">foo bar</div>
it's as trivial as (something like:)
{cms_jquery} {* in the header *}
EDIT: I fixed a problem I saw in my typing but still haven't tested this.
Code: Select all
<__script__ type="text/javascript">{literal}
$(document).ready(function){
$('.toggle').click(function(){
var rel = $(this).attr('rel')
$('.area').hide();
$('#'+rel).show();
});
});
{/literal}</__script>
<div class="area" id="box1">abcdefg</div>
<div class="toggle" rel="box2">expand b</div>
<div class="area" id="box2">foo bar</div>
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.
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.
Re: StartExpandCollapse
Thank you !
Kind regards,
Jan
Kind regards,
Jan
Re: StartExpandCollapse
Passing by and I wanted to point out two things here, first there is .slideToggle() in jquery which can be used, but there is a bouns with the new {cmsms_jquery}. You load the the jQuery UI lib with the default tag, so this is all you need (note: I like using the cdn)
so really there is alot of power for sure
Just thought I'd share. Have fun..
Cheers -Jeremy
Code: Select all
<__html><head>
{cms_jquery cdn=true} {* in the header *}
<__script__ type="text/javascript">{literal}
$(function() {
$( "#accordion" ).accordion({
collapsible: true
});
});
{/literal}</__script>
</head></__body>
<div id="accordion">
<h3><a href="#">First header</a></h3>
<div>First content</div>
<h3><a href="#">Second header</a></h3>
<div>Second content</div>
</div>
<__body></__html>
Just thought I'd share. Have fun..
Cheers -Jeremy
Re: StartExpandCollapse
It won't break excisting websites, because during an upgrade no files are deleted!janvl wrote:In 1.10 they are removed. One can expect problems with more modules I guess.
grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: StartExpandCollapse
Your best bet is to contact the author to make sure that he makes the appropriate changes.
I would expect it's as simple as a template change anyways.
I would expect it's as simple as a template change anyways.
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.
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.