Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-12-08 10:47:36
- Konijn
- Member
- Registered: 2005-06-18
- Posts: 33
Permlink to Article problem
Hey,
I have this website created with TP http://www.infekt.be/new/
But on the default page I have this code
<code>
<txp:article_custom limit=“1000” form=“work_print” category=“work” sortby=“Posted” sortdir=“desc” listform=“work_print” />
</code>
Module “work_print”
<code><li><txp:permlink><txp:zem_article_image /></txp:permlink></li></code>
On the default page I also have this code:
<code><txp:article form=“default” limit=“1” category=“work” sortby=“Posted” sortdir=“desc” listform=“default” /></code>
When you click on an item I want to see the article linked to it.
But I always get an 404.
How should I do that?
Offline
Re: Permlink to Article problem
Your URL links are malformed. There is a double slash “//” in them. That is probably why you get a 404.
Also you cannot use the category attribute with the article tag and the tag will automatically call the default form and will be sorted by “Posted” so there is no need for any of the attributes you are using other than “limit”.
As far as the first problem is concerned I suspect that in “Preferences” you have added the end slash “/” to your site URL. If you have then remove it.
Last edited by thebombsite (2005-12-08 11:02:22)
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#3 2005-12-08 11:04:15
- Konijn
- Member
- Registered: 2005-06-18
- Posts: 33
Re: Permlink to Article problem
Where can I change the malformated urls?
These are dynamicly generated by TP.
Offline
Re: Permlink to Article problem
Check my last paragraph.
Stuart
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
#5 2005-12-08 15:44:50
- Konijn
- Member
- Registered: 2005-06-18
- Posts: 33
Re: Permlink to Article problem
My preferences are good.
Dont know why I have the “//”.
Offline
Re: Permlink to Article problem
http://textpattern.com/faq/66/404-error-when-linking-to-article-pages
If you need further advice, please post your diagnostics.
Offline
Re: Permlink to Article problem
I see you’re using my txp nl localisation:
So go to: ‘Site voorkeuren’ and were it says ‘Site URL’ put there exactly this: www.infekt.be/new
This is also explained when you click on the little help questionmark
Site url
Dit is het top-level domein voor de server waar uw site op draait.
Voorbeelden:
www.textpattern.com
textdrive.com/plans
N.B. vermeld het domein zonder http:// of afsluitende slash.
Offline
#8 2005-12-09 09:21:47
- Konijn
- Member
- Registered: 2005-06-18
- Posts: 33
Re: Permlink to Article problem
There stands www.infekt.be/new but the problem is still there.
Offline
Re: Permlink to Article problem
> Konijn wrote:
> There stands www.infekt.be/new but the problem is still there.
Maybe you should indeed post you diagnostics then.
Offline
#10 2005-12-09 14:18:02
- Konijn
- Member
- Registered: 2005-06-18
- Posts: 33
Re: Permlink to Article problem
<code>
Textpattern versie: 4.0.2 (r1076)
last_update: 2005-12-03 13:31:25/2005-12-03 13:27:52
Document root: /var/www/html
$path_to_site: /var/www/html/new
Pad naar textpattern: /var/www/html/new/textpattern
Permanente link modus: section_id_title
Tijdelijke bestanden map: /var/www/html/new/textpattern/tmp
Site URL: www.infekt.be/new
PHP versie: 4.3.2
Register globals: 1
server_time: 2005-12-09 15:17:09
MySQL: 3.23.58
Lokaal: nl_NL.UTF-8
Server: Apache 2.0
Pre-flight controle:
————————————
De PHP versie die U gebruikt kan een veiligheids risico veroorzaken. Zet register_globals uit of gebruik een nieuwere versie van PHP.
————————————
inhoud .htaccess bestand:
————————————
#DirectoryIndex index.php index.html
#Options +FollowSymLinks
#RewriteBase /relative/web/path/
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php </IfModule>#php_value register_globals 1
php_flag register_globals off
————————————
Charset (default/config): latin1/latin1
character_set: latin1
character_sets: latin1 big5 cp1251 cp1257 croat czech danish dec8 dos estonia euc_kr gb2312 gbk german1 greek hebrew hp8 hungarian koi8_ru koi8_ukr latin2 latin5 swe7 usa7 win1250 win1251 win1251ukr ujis sjis tis620
18 Tables: OK
PHP uitbreidingen: yp, xml, wddx, tokenizer/0.1, sysvshm, sysvsem, standard/4.3.2, sockets, shmop, session, pspell, posix, pcre, pcntl, overload, openssl, ncurses, mbstring, iconv, gmp, gettext, gd, ftp, exif/1.4 $Id: exif.c,v 1.118.2.19 2003/04/16 18:25:35 helly Exp $, domxml/20020815, dio/0.1, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib/1.1, imap, ldap, mysql, pgsql
/include/txp_category.php: r901 (ced49a43561099e1652fccb7880b8f66)
/include/txp_plugin.php: r902 (20ba701396c318619a4e00681af8b228)
/include/txp_auth.php: r928 (4cfa9ec7960f80308c9392cec5722616)
/include/txp_form.php: r947 (c0e4393328985742bd81cda61d10d5ed)
/include/txp_section.php: r904 (3575f34afd7bf1400ecb7926483fcbd2)
/include/txp_tag.php: r982 (c4f3b1cd5aa07a45f6218ec2a6befe0f)
/include/txp_list.php: r1042 (e85d2de1c63b41f0e5bdcf268e3c487b)
/include/txp_page.php: r876 (e22dc37b465b87757722732a225b25f3)
/include/txp_discuss.php: r1056 (1e6c25bf973a445a9e6ff710064f01f9)
/include/txp_prefs.php: r1026 (6c0696f2147c45276380a7438dbd1575)
/include/txp_log.php: r906 (68c4f32b70ce41a349f197b6bba6c200)
/include/txp_preview.php: r628 (a16f84b6610fc66db0bce51e25b7af34)
/include/txp_image.php: r1042 (d9c8518ac976a9f21af59c9012818546)
/include/txp_article.php: r1049 (7dfdffb58a90570e8ad90debc1017b0c)
/include/txp_css.php: r922 (0c596d9968052b89581d1ca65a77c5de)
/include/txp_admin.php: r1074 (7e87ff0e29101593fb170b1a2de9fd59)
/include/txp_link.php: r1042 (f4e99d4b37e5c80f3c9fb2f1b1c08e3d)
/include/txp_diag.php: r1075 (d4b97f820b0ea9abe593cb74bf3891c2)
/lib/admin_config.php: r877 (9aea12193cc76eea1964eb0383ec6513)
/lib/txplib_misc.php: r1064 (c4b8079db64c3fbe57ea961181d88512)
/lib/taglib.php: r628 (493878f922262157601c26a999a1c478)
/lib/txplib_head.php: r1055 (a8e03ea3e927ddde5fc25434a506dfb7)
/lib/classTextile.php: r1072 (52c3c2efdde23f52efdd0d7728c6986f)
/lib/txplib_html.php: r1002 (e8f4c2552170d92d5d353dae725c8bba)
/lib/txplib_db.php: r1064 (7dc8e32e097645d4340de2f809896521)
/lib/IXRClass.php: r765 (2efb0fb05b55c634072b0bae9af38bdd)
/lib/txplib_forms.php: r950 (74da2c67abe4786c353ea416c13656eb)
/publish/taghandlers.php: r1067 (1e9624108bdd485003629ae239619414)
/publish/atom.php: r1037 (30aea53e1c1fce877a10d2d9fa3ce90c)
/publish/log.php: r864 (c3d16d3dfe375819a19fcd62398e4b86)
/publish/comment.php: r1057 (7db181efda097083988e47eb00960915)
/publish/search.php: r884 (80f942f1dc301857c2fa9dcb16aa1246)
/publish/rss.php: r1037 (6848c34e120c99b6889b7f19c421b076)
/publish.php: r1073 (700374ed1a9cb57b5afc355ac977daad)
/index.php: r1076 (482a2e752575c2b7b620a86520b99303)
/css.php: r944 (df1c754417bdfb4e97a2c83ae5b454ee)
</code>
Offline
Pages: 1