• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: [module] StartExpandCollapse
PostPosted: Thu Sep 22, 2011 10:07 pm 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 800
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: StartExpandCollapse
PostPosted: Thu Sep 22, 2011 10:14 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8166
Location: Fernie British Columbia, Canada
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.
\$1:
<__script__ type="text/javascript">{literal}
$(document).ready(function){
  $('.toggle').click(function(){
     var rel = $(this).attr('rel')
     $('.area').hide();
     $('#'+rel).show();
  });
});
{/literal}</__script>


<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>

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: StartExpandCollapse
PostPosted: Thu Sep 22, 2011 10:20 pm 
Offline
Power Poster
Power Poster

Joined: Wed Aug 13, 2008 10:57 am
Posts: 800
Thank you !

Kind regards,
Jan


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: StartExpandCollapse
PostPosted: Fri Sep 23, 2011 1:33 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Jan 02, 2008 11:39 pm
Posts: 2102
Location: Lewiston-Idaho
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 :D (note: I like using the cdn)

\$1:
<__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>


so really there is alot of power for sure :D

Just thought I'd share. Have fun..
Cheers -Jeremy


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: StartExpandCollapse
PostPosted: Fri Sep 23, 2011 1:20 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Apr 23, 2008 7:53 am
Posts: 7699
Location: The Netherlands
janvl \janvl:
In 1.10 they are removed. One can expect problems with more modules I guess.
It won't break excisting websites, because during an upgrade no files are deleted!

grtz. Rolf

_________________
$1

Did my post help you solving a problem at your (customers) website and it saved you many hours of work? Great!! Consider buying me a cup of coffee in return!



Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: StartExpandCollapse
PostPosted: Fri Sep 23, 2011 2:59 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Tue Oct 19, 2004 6:44 pm
Posts: 8166
Location: Fernie British Columbia, Canada
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.

_________________
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.


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting