Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-04-03 03:37:10

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

flv video embed and txp paths

Hello again,

Has anyone ever gotten flv playing on section pages without using a plugin?
Its is a paths problem from hell.

I want to use the basic dreamweaver automatic embed method so i have more control over the players skin.
Ive embedded flv sucessfully on the homepage but in section pages it doesnt work.

has anyone got this embed method working on section pages?

Theres a paths change for section pages that i cant figure out:

Home page example:
<script src=“Scripts/AC_RunActiveContent.js” type=“text/javascript”></script>
…..

Section example:
<script src=”../Scripts/AC_RunActiveContent.js” type=“text/javascript”></script>
<script type=“text/javascript”>

Theres about 5 other paths to change inside the object tags but its to much to post here.

Maybe it just doesnt work.. dont know

examples
I have it workin on the home page:
http://www.aras.macdesign.eu/

but cant get it working on section pages when the paths need to point up to the root level:
http://www.aras.macdesign.eu/diving/

Last edited by kvnmcwebn (2008-04-03 03:37:53)


its a bad hen that wont scratch itself.
photogallery

Offline

#2 2008-04-03 03:48:11

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: flv video embed and txp paths

Just use this all around:

<script src="<txp:site_url/>Scripts/AC_RunActiveContent.js" type="text/javascript"></script>

Some other URL-creating tags:

  • <txp:site_url/> to output http://example.com/
  • <txp:section name="foo">Some section</txp:section> to output a link based on the site URL and URL type (clean, messy)
  • <txp:permlink id="article_id">this other article</txp:permlink> for manual article links.

Use the above for your links – no need to hardcode with TXP. If you change your URL, you won’t have to change a dozen or more links.

Offline

#3 2008-04-03 04:00:33

kvnmcwebn
Member
From: Ireland
Registered: 2007-01-27
Posts: 724
Website

Re: flv video embed and txp paths

cool im gonna try that now.
thanks


its a bad hen that wont scratch itself.
photogallery

Offline

Board footer

Powered by FluxBB