Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#161 2020-02-14 11:41:16
- phiw13
- Plugin Author
- From: Japan
- Registered: 2004-02-27
- Posts: 2,233
- Website
Re: Dev news
Is there some documentation or some explanation of this <txp:pages />
tag noted above ? I’m trying to understand what is happening in the above posts, but it is a bit hard to follow.
philwareham wrote #321558:
The new tag stuff make my head spin a bit at times (in a good way) […]
We should do a small series of blog posts […]
Yes, a good idea. As I said above, this new navigation stuff in particular is still quite mysterious. Some other tags too, I don’t fully grog their scoop, yet.
Where is that emoji for a solar powered submarine when you need it ?
Offline
#162 2020-02-24 12:15:28
- singaz
- Member
- From: Kyiv
- Registered: 2017-03-12
- Posts: 145
Re: Dev news
I do not know in which section to ask this question, I write here
Textpattern 4.8.0 beta.3
I use in Advanced options:
[js]
mediatype="application/javascript"
title="JavaScript"
[xml]
mediatype="application/xml"
title="XML page"
and so wrote:
[js]
mediatype="text/javascript"
title="JavaScript"
[xml]
mediatype="application/xml"
title="XML page"
I write on the site this:
<script type='text/javascript' src="<txp:page_url type="theme_path" />/js/slimbox.js"></script>
and this:
<script src="<txp:page_url type="theme_path" />/js/slimbox.js"></script>
and this:
<script type='text/javascript' src='<txp:page_url type="theme_path" />/js/navigation.min.js'></script>
and this on demo site:
<script type='text/javascript' src='<txp:page_url type="theme_path" />/js/navigationmin.js'></script>
The XML sitemap is working correctly.
With java script I get an error, not found.
hosting one:
<title>404 Not Found</title>
<h1>Not Found</h1>
<p>The requested URL /themes/default/js/slimbox.js was not found on this server.</p>
second hosting:
<title> 404 Not Found</title></head>
<h1 style="margin:0; font-size:150px; line-height:150px; font-weight:bold;">404</h1>
<h2 style="margin-top:20px;font-size: 30px;">Not Found</h2>
<p>The resource requested could not be found on this server!</p>
and demo site:
<script type='text/javascript' src='https://beta-demo.textpattern.co/themes/four-point-eight/js/navigationmin.js'></script>
Where is my mistake?
I missed something and I do not know what.
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline
#163 2020-02-24 12:47:53
- colak
- Admin
- From: Cyprus
- Registered: 2004-11-20
- Posts: 8,469
- Website
Re: Dev news
If you saved your script in the disk, you can use
<txp:output_form form="slimbox.js" format="flat.script" />
>Edited to add that the name of your js in the form should be slimbox.js
, with the extension! Also, the form type should be js (Application/javascript)
, again selected from the pull-down in the form.
Yiannis
——————————
neme.org | hblack.net | State Machines | NeMe @ github
I do my best editing after I click on the submit button.
Offline
#164 2020-02-24 13:14:30
- singaz
- Member
- From: Kyiv
- Registered: 2017-03-12
- Posts: 145
Re: Dev news
<txp:output_form form="slimbox.js" format="flat.script" />
This is working correctly. Many thanks!
Sorry my horror English. I’m learning textpattern, I’m learning English
Offline
#165 2020-07-31 08:45:25
- gaekwad
- Admin
- From: People's Republic of Cornwall
- Registered: 2005-11-19
- Posts: 3,350
Re: Dev news
I’ve spun up a thread specifically for 4.9.0 upcoming changes here
Offline