start/stop ExpandCollapse doesn't work as it must do

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
rtlinfo
Forum Members
Forum Members
Posts: 90
Joined: Sat Jun 03, 2006 11:16 am

start/stop ExpandCollapse doesn't work as it must do

Post by rtlinfo »

Hello
In first, excuse me ; my english is poor (i am french)

In second, congratulations for all people who make CMSMS. it's a very simple but powerfull CMS ; i like it a lot


I use last version 0.13 "canary" of CMSMS and i have a problem with ExpandCollapse

Here is the code of this tag, inserted in my page.

Code: Select all

(startExpandCollapse id="nom" title="Cliquez ici").
Ici du texte s'affiche en mode détracté. Cliquez à nouveau sur Cliquez ici pour masquer/contracter le texte
(stopExpandCollapse)
for this topic, i replace in the code the left and right delim by "(" and ")" because i don't do that, the code seems to not be displayed correctly.

when i load this page on my browser, i can see that :

Code: Select all

<hr class="tags">
<div class="tagtitle">    {startExpandCollapse} {stopExpandCollapse} </div>
<div class="left">    <em>Syntaxe</em><br><br><br>    <em>Affiche</em><br>    <em>Exemple</em> </div>
<div class="right"> <code>{startExpandCollapse id="nom" title="Cliquez ici"}</code><br>Texte ici<br> <code>{stopExpandCollapse id="nom" title="Cliquez ici"}</code><br> Permet que le texte soit détractable ou contractable.<br> <__script__ type="text/javascript" language="javascript" src="lib/helparea.js"></__script><a href="#nom" onclick="expandcontent('nom')" style="cursor: pointer;">Cliquez ici</a><br>

	<div style="display: none;" id="nom" class="expand">. Ici du texte s'affiche en mode détracté. Cliquez à nouveau sur Cliquez ici pour masquer/contracter le texte</div>  </div>
when i click on the collapse link "click here", i see the text but a few seconds after, the home page of my website is displayed and i the url address displayed by my browser is : http://mysite/#nom

i have this problem with I.E. or Firefox.

Somebody did have this problem ? how can i resolve it ?

Thanks for all
Last edited by rtlinfo on Sat Jun 10, 2006 9:21 am, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: start/stop ExpandCollapse doesn't work as it must do

Post by tsw »

There is a new version in svn, could you please test if it works for you
rtlinfo
Forum Members
Forum Members
Posts: 90
Joined: Sat Jun 03, 2006 11:16 am

Re: start/stop ExpandCollapse doesn't work as it must do

Post by rtlinfo »

tsw wrote: There is a new version in svn, could you please test if it works for you
thanks for your answer ;

i am newbie on cms website ; can you give me where i can download the new svn version of collapse ?
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: start/stop ExpandCollapse doesn't work as it must do

Post by tsw »

It wont be in nightly snapshot for few more hours, but you can get it from svn browser

http://viewsvn.cmsmadesimple.org/viewsv ... 0&view=log

use download link for revision 2900

reminder: if you get files from svn some things may be broken, some files wont be compatible with stable releases, diff packages might not work as expected

this file however should be compatible with 0.13 :)
rtlinfo
Forum Members
Forum Members
Posts: 90
Joined: Sat Jun 03, 2006 11:16 am

Re: start/stop ExpandCollapse doesn't work as it must do

Post by rtlinfo »

Thanks tsw ; that work's fine now with the new function.

As i read in the link you gave to me, it seem's that old collapse did not work because i use pretty urls ; now, i don't know where i set this parameter in my cmsms but i am going to search that.

Excuse me if i have use too much your time but i will have others questions :
1/ i would want to have documentations about content types, especially of other content than "page" ; i would want to know more about link  content type ; i try it by creating a new link content type and in url field, i put "cms" that is a name and title of a top level page ; but it doesn't work ; that links goes to mysite/cms/ and the good link has to be mysite/index.php/cms ; it seems to be not very "cool" to have to add index.php/ in all my links content type ; and doing that if i decide to not use pretty urls, i think that this kind of links will not work


One more time, thanks for your help and all you do for this marvelous cms named "CMS made simple".

PS : i also don't know how can i put "resolved" on my/this topic ; lots of work to do, lots of things to learn ; but i just begin and i enjoy using cmsmadesimple.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: start/stop ExpandCollapse doesn't work as it must do

Post by tsw »

rtlinfo wrote: Thanks tsw ; that work's fine now with the new function.
Great
rtlinfo wrote: As i read in the link you gave to me, it seem's that old collapse did not work because i use pretty urls ; now, i don't know where i set this parameter in my cmsms but i am going to search that.
Yes, thats why it broke on 0.13.. 0.13 has pretty urls on by default (you can change it in config.php)
rtlinfo wrote: Excuse me if i have use too much your time but i will have others questions :
1/ i would want to have documentations about content types, especially of other content than "page" ; i would want to know more about link  content type ; i try it by creating a new link content type and in url field, i put "cms" that is a name and title of a top level page ; but it doesn't work ; that links goes to mysite/cms/ and the good link has to be mysite/index.php/cms ; it seems to be not very "cool" to have to add index.php/ in all my links content type ; and doing that if i decide to not use pretty urls, i think that this kind of links will not work
Documentation is still under development, everything we have you can read from wiki (http://wiki.cmsmadesimple.org) there's also a search function.

as for the link content type, that is how its supposed to work. you can use link type to link out from your cmsms installation. if you use something like http://google.fi you can have a link to google in your menu. so if you want to have link to page named "testpage" you can use few different forms.

a) use index.php?page=testpage
this is the standard way.

b) use index.php/testpage
this uses internal pretty urls

c) or just testpage
this will use apache modrewrite to change this to a form so that server knows what to do with it. when using this form you need to copy doc/htaccess.txt to .htaccess in your cmsms installation directory and change config.php to use modrewrite.

you should decide what form you use before doing too much content. that way you dont have any problems with it. If you need to change the style after everything is done you will need to change everylink.
rtlinfo wrote: PS : i also don't know how can i put "resolved" on my/this topic ; lots of work to do, lots of things to learn ; but i just begin and i enjoy using cmsmadesimple.
I dont think there is any way to do it.


Hope this helps
rtlinfo
Forum Members
Forum Members
Posts: 90
Joined: Sat Jun 03, 2006 11:16 am

Re: start/stop ExpandCollapse doesn't work as it must do

Post by rtlinfo »

in 4 simply words "thanks you very much". ;)

I hope that in a small future, i can make modules or others things for cmsms. at office, i make web applications but using java (linux O.S, tomcat servlet server and JSF technologies)

But at home, i spend most of my free time (when my son as now, playing football) , i make website for friends and family. so i know php, mysql  but not smarty (which seems to be a very powefull and easy template system) ; before i used struts which is a great but complexly "mvc java framework"

here is my own web site : http://www.rtlinfo.com ; not very good (and too many photos) ; i made all on it "with my ten fingers"  ;Dand create many php functions that i cannot modify because php code and html are mixed  :-[;

Of course a new project will be to make it (one more time) with cmsms and add a page about cms systems in general and marvelous cmsms in particulary.

have a nice day
Post Reply

Return to “Modules/Add-Ons”