Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: spf_js - JavaScript management - create, edit, delete, export to file
New version 0.3 fixes delete issues with dots in filenames (thanks Yiannis).
(Yiannis: if you re-save your jquery.cycle script – and then try and delete it – it should work.)
Simon
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
That was very fast. The new version fixes the problem. Thanks!
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
Version 0.4 released – now with Minify support.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
#@spf_js
#@language it-it
spf_javascript => JavaScript
spf_js_dir => JavaScript directory
spf_script_name => Nome dello script
spf_edit_script => Stai modificando lo script
spf_copy_script => …o copia lo script con nome
spf_all_scripts => Tutti gli script
spf_create_new_script => Crea nuovo script
spf_script_created => Script <strong>{name}</strong> creato.
spf_script_exists => Lo script <strong>{name}</strong> esiste già.
spf_script_name_required => Per favore inserisci un nome per lo script
spf_script_updated => Script <strong>{name}</strong> aggiornato.
spf_script_deleted => Script <strong>{name}</strong> cancellato.
spf_cannot_delete_default_script => Lo script <strong>default</strong> non può essere cancellato.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
MarcoK wrote:
#@language it-it
Thanks Marco – Italian Textpack added.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
spiffin a écrit:
Dragondz wrote:
Is the plugin parsed (can we include txp tag inside javascript file) ?
Hi Rabah
The simple answer is no. Textpattern tags (along with PHP) are server-side – and JavaScript is client-side.
This post might help.
Simon
Hi Simon
Ok then the only way to use txp tag inside javascript is to embed the code directly into the page or form, but not on javascript tab.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
Hi Rabah
I’m wondering if rah_external and spf_javascript could work together for your needs.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
Hi Yiannis
I make a test: create an spf_js:
var toto = <txp:category />
and create a rah_externat_output named css:
<txp:spf_js />
and then embed it using:
<txp:rah_external_output name=“css”/>
that not worked, the code inserted.
But if using rah_external_output alone and putting a snippet:
<script>
var toto = <txp:category name=“produits”/>
</script>
that works, but the js is embedded in html!
I dont think we can parse txp:tags inside spf_js because it stores the js in a flat file to improve speed load, i think i must continue putting thos kind of code directly inside html.
Cheers
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
Hi Simon
I am trying to install this plugin in a subdomain on txp4.5 but it just does not recognise the js directory.
After installation, I visit the advanced preferences where the existing js directory is not detected.
When I enable the plugin I get a modal window stating internal error "Table 'my_db.prefixspf_js' doesn't exist"
and after clicking OK I get I’m sorry. I’m afraid I can’t do that. I think spf_js is no safe operation at this time.
I checked the db and spf_js
table is not created.
This is the first time I am installing this plugin in a subdomain. Should you need a login to the site to check what is happening please let me know.
Last edited by colak (2012-09-09 15:26:04)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
Hello Yiannis
I’ve just installed a clean copy of Textpattern 4.5.1 on a local subdomain and installed spf_js with no problems whatsoever.
I’m assuming your site is on a Unix server with PHP 5?
I suggest you check your file privileges, database privileges and check your logs (PHP and MySQL error logs).
Simon
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
hi Simon
It seems that the problem is fixed now. I did not mention that the installation was not only in a subdomain but also in a “prefixed” db. I reinstalled txp without the prefix and your plugin worked just fine.
Having said that, there is a display problem in the remora theme, mentioned here
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: spf_js - JavaScript management - create, edit, delete, export to file
Thanks – I’m aware of the styling issues and an update will be coming soon.
I’m away from home until next week so it’ll be a week or two.
Offline