Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Integrating ZeroClipboard with TXP 4.2.0
Hi.
I’ve set myself a rather daunting task of integrating ZeroClipboard into my TXP 4.2.0 setup. Example code follows – taken from here
<html>
<body>
<script type="text/javascript" src="ZeroClipboard.js"></script>
<div id="d_clip_button" style="border:1px solid black; padding:20px;">Copy To Clipboard</div>
<script language="JavaScript">
var clip = new ZeroClipboard.Client();
clip.setText( 'Copy me!' );
clip.glue( 'd_clip_button' );
</script>
</body>
</html>
It’s very early days right now, but at a simple level I’m trying to use <txp:title /> in an article form to populate the ‘Copy me!’ text for a bunch of articles, to be displayed in a table context.
What restrictions exist regarding using <script>
tags within an article (body or excerpt) and custom fields, if any?
Thanks in advance for any input.
Pete
Offline
Re: Integrating ZeroClipboard with TXP 4.2.0
None.
Offline
Re: Integrating ZeroClipboard with TXP 4.2.0
Thanks, wet. And sorry for the tardiness in responding :)
Offline