Fa_XH

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

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

Re: Fa_XH

Post by cmb » Mon Jun 19, 2017 1:37 pm

aceaccis wrote:My Path is /private_root/webseite/plugins/tinymce/inits so I changed all from %CMSIMPLE_ROOT% to /private_root/webseite/ ,
is this right ?
Hmm, how do you access the site in a browser? Is it http://example.com/private_root/webseite/? I guess it is rather http://example.com/webseite/, in which case you'd have to replace %CMSIMPLE_ROOT% with /webseite/.
Tata wrote:Have you set the Fa plugin to Require/Auto?
Good catch – that is important.
Christoph M. Becker – Plugins for CMSimple_XH

aceaccis
Posts: 71
Joined: Tue May 30, 2017 7:09 am

Re: Fa_XH

Post by aceaccis » Tue Jun 20, 2017 6:01 pm

Hi,

sorry for the late answer yes it is set to auto.
auto.PNG
No it is usualy just the domain http://domain.go

Greetings Chris
You do not have the required permissions to view the files attached to this post.
Chris S. aus B
Hoster: df.eu
Domains: 25 an der Zahl
CMS: CMSimple_XH, jeweils 1.6.10 und nun 1.7.0

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

Re: Fa_XH

Post by cmb » Tue Jun 20, 2017 6:21 pm

aceaccis wrote:No it is usualy just the domain http://domain.go
Then you have to replace %CMSIMPLE_ROOT% with a single slash (/).
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Fa_XH

Post by Tata » Tue Jun 20, 2017 10:05 pm

Na, un da kann ich den Fa_XH mit TinyMCE4 plötzlich am Localhost auch nicht zum Laufen bringen.
System Info
Installed CMSimple Version
CMSimple_XH 1.6.10 Released: 2017-06-18
Installed Plugins
Fa 1.0rc2
Filebrowser for CMSimple_XH 1.6.10
Hi_updatecheck 1.4
Jquery 1.6.2
Meta_tags for CMSimple_XH 1.6.10
Pagemanager 2.0.6
Page_params for CMSimple_XH 1.6.10
Tinymce for CMSimple_XH 1.6.10
Tinymce4 1.2.7 - 2017-02-13
Utf8 0.5.5
Webserver
Apache/2.4.23 (Win32) PHP/7.0.10
PHP-Version
7.0.10

/plugins/tinymce4/inits/init_fontawesome.js

Code: Select all

    "fontawesome": "/plugins/fa/editors/tinymce4/fontawesome/plugin.min.js"
  },
 ....
   content_css: "%STYLESHEET%,/plugins/fa/css/font-awesome.min.css",
 ....
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: Fa_XH

Post by cmb » Tue Jun 20, 2017 10:10 pm

Tata wrote:Na, un da kann ich den Fa_XH mit TinyMCE4 plötzlich am Localhost auch nicht zum Laufen bringen.
Irgendwelche Fehlermeldungen (evtl. in der Browserkonsole)?

Und wie lautet der Eintrag von external_plugins in Deiner init_fontawesome.js?

PS:
cmb wrote:Und wie lautet der Eintrag von external_plugins in Deiner init_fontawesome.js?
Da war er ja schon, und sollte eigentlich stimmen! :oops:

Also bitte mal in der Browserkonsole nachschauen.
Last edited by cmb on Tue Jun 20, 2017 10:25 pm, edited 1 time in total.
Reason: PS hinzugefügt
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Fa_XH

Post by Tata » Tue Jun 20, 2017 10:29 pm

Die Console sagt nur
JQMIGRATE: Migrate is installed, version 1.4.1
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: Fa_XH

Post by Tata » Tue Jun 20, 2017 10:37 pm

Mit CKEditor kein Problem.
Mein Localhost ist unter D:/localhost und die Installazion ist dann unter D:/localhost/cmsimplexh1610/
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: Fa_XH

Post by cmb » Wed Jun 21, 2017 12:35 am

Tata wrote:Mein Localhost ist unter D:/localhost und die Installazion ist dann unter D:/localhost/cmsimplexh1610/
Dann müsste es wohl so sein:

Code: Select all

"fontawesome": "/cmsimplexh1610/plugins/fa/editors/tinymce4/fontawesome/plugin.min.js"
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: Fa_XH

Post by Tata » Wed Jun 21, 2017 6:20 am

Schon klar, wenn wenig schläft, wergisst wichtiges.
1. %CMSIMPLE_ROOT% zu "/" ersetzen ist absolut genug
2. In Fa_Plugin: Require > Auto = "true" - unbedingt nötig
3. In Tinymce4: Init > Init = full - unbedingt nötig
Das (3) habe ich übersehen, weill ich den Editor mit "full" toolbar haben wollte und habe die nachfolgende Möglichkeiten nicht angeschaut.
Ich würde die 3 Schritte in der helpDatei rot und auf einer Stelle zusammen stellen.
Und noch etwas.
Am localhost (falls da mehrere Projektengibt) muss es so lauten:

Code: Select all

    "fontawesome": "/projekt/plugins/fa/editors/tinymce4/fontawesome/plugin.min.js"
    ...
      content_css: "%STYLESHEET%,/projekt/plugins/fa/css/font-awesome.min.css",
am Server (obwohl ich es testweise unter "root/_sub/projekt/" installier habe):

Code: Select all

    "fontawesome": "/plugins/fa/editors/tinymce4/fontawesome/plugin.min.js"
    ...
      content_css: "%STYLESHEET%,/plugins/fa/css/font-awesome.min.css",
genügt.
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: Fa_XH

Post by cmb » Wed Jun 21, 2017 11:02 pm

Tata wrote:Ich würde die 3 Schritte in der helpDatei rot und auf einer Stelle zusammen stellen.
Ich nicht. :) Ich finde die jetztige Struktur eigentlich recht sinnvoll: zunächst wird erklärt, dass zur Verwendung von Font Awesome auf einer Seite eben RequireAuto aktiviert werden muss. Dann wird erklärt was für TinyMCE bzw. CKEditor noch zusätzlich gemacht werden muss.
Tata wrote:Am localhost (falls da mehrere Projektengibt) muss es so lauten:

Code: Select all

    "fontawesome": "/projekt/plugins/fa/editors/tinymce4/fontawesome/plugin.min.js"
    ...
      content_css: "%STYLESHEET%,/projekt/plugins/fa/css/font-awesome.min.css",
am Server (obwohl ich es testweise unter "root/_sub/projekt/" installier habe):

Code: Select all

    "fontawesome": "/plugins/fa/editors/tinymce4/fontawesome/plugin.min.js"
    ...
      content_css: "%STYLESHEET%,/plugins/fa/css/font-awesome.min.css",
genügt.
Ah, da muss die Dokumentation nachgebessert werden. Mit "dem absoluten Pfad des CMSimple_XH Installationsordners" ist nicht etwa der Dateisystem-Pfad gemeint, sondern der URL-Pfad, da es sich beim Wert für external_plugins.fontawesome eben um eine URL handelt.

Und ich frage mich, ob es nicht am besten ist, init_fontawesome.js mit den korrekten Einstellungen für die Standard-Installation (also direkt im Root der Domain bzw. Subdomain) auszuliefern, und in der Dokumentation zu beschreiben wie init_fontawesome.js für Installationen in Unterordner angepasst werden muss. Die meisten Anwender installieren vermutlich im Root, und diejenigen, die das nicht tun, sind wohl eher erfahrenere Admins, denen man die Bearbeitung von init_fontawesome.js eher zumuten kann.
Christoph M. Becker – Plugins for CMSimple_XH

Post Reply