Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-07-16 11:14:21

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,482
Bitbucket GitHub

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

#2 2010-07-18 03:43:28

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,376
Website GitHub Mastodon

Re: Integrating ZeroClipboard with TXP 4.2.0

None.

Offline

#3 2010-09-19 15:51:17

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,482
Bitbucket GitHub

Re: Integrating ZeroClipboard with TXP 4.2.0

Thanks, wet. And sorry for the tardiness in responding :)

Offline

Board footer

Powered by FluxBB