Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-06-10 18:36:55

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

[textile] Somewhat Off Topic

I have the first line of code that needs to be entered in an article but ends up being posted as the second line of code below. I have determined this to be the issue for my video to not show up on the page. I understand the ascii characters and such but is there a way around this? Thank you.

<script language="JavaScript">flowplayer("player", "scripts/flowplayer-3.1.1.swf");</script>
<script language="JavaScript">flowplayer(&#8220;player&#8221;, &#8220;scripts/flowplayer-3.1.1.swf&#8221;);</script>

Added bc. to display the code at it is. -Gocom

Last edited by Gocom (2009-06-10 19:45:06)

Offline

#2 2009-06-10 19:42:07

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: [textile] Somewhat Off Topic

See Textile. You need to escape the code, or it gets formated with Textile markup.

For example, inline escape:

Some text ==<script language="JavaScript">flowplayer("player", "scripts/flowplayer-3.1.1.swf");</script>== and some after.

If it is on it’s own paragraph/ line (blockversion):

notextile. <script language="JavaScript">flowplayer("player", "scripts/flowplayer-3.1.1.swf");</script>

Or just a space (" ") before the code:

Some text

 <script language="JavaScript">flowplayer("player", "scripts/flowplayer-3.1.1.swf");</script>

Some text more

Last edited by Gocom (2009-06-10 19:46:49)

Offline

#3 2009-06-10 19:43:54

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

Re: [textile] Somewhat Off Topic

Enter ==<script language="JavaScript">flowplayer("player", "scripts/flowplayer-3.1.1.swf");</script>==. The double equal sign pause Textile processing for the enclosed text.

Offline

#4 2009-06-11 15:00:42

Gulfcoast
Member
Registered: 2009-04-12
Posts: 76

Re: [textile] Somewhat Off Topic

That got it guys. Thank you very much.

Offline

Board footer

Powered by FluxBB