Expandcontract_XH

Ein CMSimple Support Forum für deutsch sprechende Nutzer und Entwickler
svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Expandcontract_XH

Post by svasti » Mon Mar 24, 2014 3:51 pm

Expandcontract_XH 0.4 ist da.

Dieses kleine Plugin erzeugt Links, die bei Anklicken den Inhalt versteckter Seiten unterhalb des Links öffnen, ohne auf die verlinkte Seite zu gehen. Bei ausgeschaltetem Javascript wirken die Links wie normale Links.

Ein Aufruf ohne Parameter erzeugt eine Linkliste aller versteckten Unterseiten der aufrufenden Seite.

Mit Angabe eines 1. Parameter wird zur angegebenen Seite verlinkt, der 2. Parameter ist der Linktext.
Derartige Links können in eine Textzeile geschrieben werden und sehen wie normale Links aus. Die Höhe des nach Klick erscheinenden Inhalts kann begrenzt werden, bei mehr Inhalt erscheint ein vertikaler Scrollbalken.
Demo und Download

Der Zwerch
Posts: 608
Joined: Sat Jul 28, 2012 11:38 am
Location: Perle der Grafschaft > 127.0.0.1

[Fehler] betr. Updatecheck !

Post by Der Zwerch » Wed Mar 26, 2014 7:15 am

Moin moin,

Ich habe das Update erfolgreich installiert. Leider sagt mir dann ein Updatecheck folgendes:>>>klick<<<.
Ich habe dann das komplette Plugin entfernt und neu hochgeladen. Ergebnis: >>>klick<<<.

Woran könnte das liegen?

Grüße
Frank

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Expandcontract_XH

Post by Tata » Wed Mar 26, 2014 11:12 am

Right now I am testing this nicew plugin and have found that there seems to be an mistake in th ehelp file:

Code: Select all

{{{expand('page name'.'link text');}}}
doesn't work. No linked text is shown.

Code: Select all

{{{expand('page name','link text');}}}
shows the linked word and it opens the expanded container with "Close" button the opened hidden subpage is empty.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Expandcontract_XH

Post by svasti » Wed Mar 26, 2014 11:25 am

Hallo Namensvetter,
Der Zwerch wrote:Leider sagt mir dann ein Updatecheck folgendes:>>>klick<<< . . .
Woran könnte das liegen?
Das lag daran, dass ich vergessen hatte, die aktuelle expandcontract_version.nfo auf meinen Server hochzuladen. Da stand noch die alte mit 0.3 als Version. Vielen Dank, dass du das gemeldet hast. Ist jetzt behoben.

svasti (aka Frank... wollte aber als Nick lieber etwas unverwechselbareres)

Der Zwerch
Posts: 608
Joined: Sat Jul 28, 2012 11:38 am
Location: Perle der Grafschaft > 127.0.0.1

Re: Expandcontract_XH

Post by Der Zwerch » Wed Mar 26, 2014 11:30 am

Hallo,
Thx :P . Läuft nu' :mrgreen:

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Expandcontract_XH

Post by svasti » Wed Mar 26, 2014 3:08 pm

Hi Tata,
Tata wrote:this nicew plugin
due to your suggestion!
Tata wrote:and have found that there seems to be an mistake in th ehelp file:

Code: Select all

{{{expand('page name'.'link text');}}}
Yes, ist must be a comma. I am sorry I made a mistake in the help files. Argh, the font is too small on my screen!
Tata wrote:shows the linked word and it opens the expanded container with "Close" button the opened hidden subpage is empty.
??strange?? Something must be in the wrong place, as everything works on my site, as you can see there. What is your exact function call and URL?

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Expandcontract_XH

Post by Tata » Wed Mar 26, 2014 6:14 pm

svasti wrote:What is your exact function call and URL?
Right now I am testing only locally and the function call is

Code: Select all

Congratulations on your new installation of CMSimple_XH. You can login now with the default {{{expand('Important_Advice','password');}}}, which you will find in the readme.txt of the download. Delete the readme.txt on your webserver, if you have uploaded it.

The login link can be found at the bottom of the page in the footer.
There is only the standard content used on the page, where the important advice is made as a separate hidden subpage "Important Advice".
The Main page the says:

Welcome to CMSimple_XH

Congratulations on your new installation of CMSimple_XH. You can login now with the default password

, which you will find in the readme.txt of the download. Delete the readme.txt on your webserver, if you have
uploaded it.

The login link can be found at the bottom of the page in the footer.


The space after "password" seems also to be some problem, even with the coma on the line beginning.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Tata
Posts: 3586
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: Expandcontract_XH

Post by Tata » Wed Mar 26, 2014 6:19 pm

svasti wrote:What is your exact function call and URL?
Right now I am testing only locally and the function call is

Code: Select all

Congratulations on your new installation of CMSimple_XH. You can login now with the default {{{expand('Important_Advice','password');}}}, which you will find in the readme.txt of the download. Delete the readme.txt on your webserver, if you have uploaded it.

The login link can be found at the bottom of the page in the footer.
There is only the standard content used on the page, where the important advice is made as a separate hidden subpage "Important Advice".
The Main page the says:

Welcome to CMSimple_XH

Congratulations on your new installation of CMSimple_XH. You can login now with the default password

, which you will find in the readme.txt of the download. Delete the readme.txt on your webserver, if you have
uploaded it.

The login link can be found at the bottom of the page in the footer.


The space after "password" seems also to be some problem, even with the coma on the line beginning.

Using the link "password" this is the result:
[ external image ]
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Expandcontract_XH

Post by cmb » Wed Mar 26, 2014 7:25 pm

Did you have a look at the generated HTML source code? Perhaps the plugin inserts the content of the page, but somewhat erroneous, so the browser does not display it.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Expandcontract_XH

Post by svasti » Wed Mar 26, 2014 7:37 pm

Tata wrote:{{{expand('Important_Advice','password');}}}
Tata wrote:separate hidden subpage "Important Advice".
The problem is the _
You are not supposed to enter an encoded page name, but the normal pagename.
Expandcontract compares the 1st parameter with all unchanged headings. So enter the heading without changing anything.

Fortunately the plugin is very simple.
Tata wrote:The space after "password" seems also to be some problem
I checked on my localhost, no problems here, even with space before and after and inside the 2nd parameter. It's a standard call with parameters which are entered the way parameters are usually entered.

Post Reply