Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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.
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
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 outputhttp://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
Re: flv video embed and txp paths
cool im gonna try that now.
thanks
its a bad hen that wont scratch itself.
photogallery
Offline
Pages: 1