Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
excerpt in article list - link to full article not working
hi,
I have no experience with textpattern, but I was able to set up excerpts in the article list (http://www.supervision-hubmann.at/index.php). Unfortunately the “Mehr lesen” link doesn´t work and I dont know why.
Here is the code I used:
On the site:
<txp:article allowoverride=“0” form=“artikel” limit=“30” listform=“artikel” pgonly=“0” searchall=“0” searchsticky=“0” sort=“Posted desc” status=“4” />
The form (called “artikel”):
<h1><txp:title /></h1>
<p><txp:posted /> · von <a href=“mailto:erich.hubmann@supervision-hubmann.at”>Erich Hubmann</a></p>
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<p><txp:permlink>Weiter lesen…</txp:permlink></p>
<txp:else />
<txp:body />
</txp:if_excerpt>
<txp:else />
<txp:body />
</txp:if_article_list>
thanks in advance for your help!!
Andreas
Last edited by Mistaj5 (2006-12-04 15:28:22)
Offline
#2 2006-12-04 15:37:19
- marios
- Archived Plugin Author
- Registered: 2005-03-12
- Posts: 1,253
Re: excerpt in article list - link to full article not working
I can see, that when I follow the link, that it returns to:
http://supervision-hubmann.at/kolumnen/8/weitere-tests-im-kommen
Instead of:
http://www.supervision-hubmann.at/kolumnen/8/weitere-tests-im-kommen
As you have on the Front page.
regards, marios
Last edited by marios (2006-12-04 15:44:05)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: excerpt in article list - link to full article not working
Thanks for the advice!
I changed it but unfortunately it´s still not workung? Any other suggestions?
Thanks again!
Offline
Re: excerpt in article list - link to full article not working
Hi Mistaj5
Does your hosting support clean URLs?
Offline
Re: excerpt in article list - link to full article not working
hi maniqui,
I am with one of the major webhosting companies 1und1.de. I think they should support it. Ill check. but if they don´t, is there another possibility to make textpattern work?
Is the above code ok? the site is displaying the full article if I don´t use the “excerpt in article list” code.
Maybe textpattern isn´t the right solution for me. I mean, all I need is a cms solution to update the news and the kolumne section of the site (it should be easy to handle because my father isn´t a programmer). If you now anything that might suit better for these purposes please let me know!
thanks mate!
Last edited by Mistaj5 (2006-12-04 17:13:02)
Offline
#6 2006-12-04 17:11:18
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: excerpt in article list - link to full article not working
Hi Mistaj5,
what did you set in the .htaccess-file?
I think there are some issues with 1und 1 there.
I have the same provider, but I got it to work.
Offline
Re: excerpt in article list - link to full article not working
saccade wrote:
Hi Mistaj5,
what did you set in the .htaccess-file?
I think there are some issues with 1und 1 there.
I have the same provider, but I got it to work.
I havn´t made any changes to the htaccess-file. all i did was uploading the whole textpattern folder and starting the installation from the included php file. I added all the necessary information (database etc).
thats it…..or maybe not :-)
maybe the best solution would be to reinstall the whole thing…
andreas
Last edited by Mistaj5 (2006-12-04 17:41:02)
Offline
#8 2006-12-04 17:53:55
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: excerpt in article list - link to full article not working
ok, i think (and hope) this is it.
With my txp-installations at schlund&partner (=1und1) I have two different ways of working, which both work, but differ from the .htaccess out of the package:
It depends on the combination of RewriteBase and RewriteRule for the index.php
1)
Leave RewriteBase outcommented, but add “/” to RewriteRule:
# RewriteBase /relative/web/path/
…
RewriteRule ^(.*) /index.php
or
2)
activate RewriteBase and set it to the root and leave RewriteRule as it is:
RewriteBase /
…
RewriteRule ^(.*) index.php
Additional information which you perhaps will need sometime:
3)
If you installed txp in a subdirectory (meaning: in a subdirectory within your URL-root, e.g. www.supervision-hubmann.at/separate-txp-site[/index.php]
, subdirectory always counted down from the (sub)directory the URL ponts to) you have to define it in the RewriteBase-Line, leave the RewriteRule untouched, eg.:
RewriteBase /subdirectory/
…
RewriteRule ^(.*) index.php
hope this helps
best regards
Michael
Last edited by saccade (2006-12-04 18:00:09)
Offline
Re: excerpt in article list - link to full article not working
thanks a lot saccade!
I´ll try!
update:
it´s working now, again – thanks a lot, mate!!!!!!!!!
the best to you,
Andreas
Last edited by Mistaj5 (2006-12-04 18:12:34)
Offline
#10 2006-12-04 18:16:52
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: excerpt in article list - link to full article not working
you’re welcome, glad to help :-)
Offline
Re: excerpt in article list - link to full article not working
hi saccade,
I installed textpattern in a subfolder called kolumnen. the .htaccess file is within this folder. i changed the content to RewriteBase /subdirectory/ but its still not working. i tried changing it to /kolumnen/ as well in combination with /index.php and so on. But unfortunately – nothing.
Do you have any other suggestion or were I doing something wrong?
thanks in advance for your help again!
andreas
Offline
#12 2006-12-05 11:42:16
- saccade
- Plugin Author
- From: Neubeuern, Germany
- Registered: 2004-11-05
- Posts: 521
Re: excerpt in article list - link to full article not working
hi andreas,
Maybe that was unclearly expressed: “subdirectory” needs to be replaced by your subdirectory name, e.g. “kolumnen”.
And: If you use a RewriteBase-Rule (as needed for a subdirectory-installation) you have to leave the RewriteRule for index.php without a change.
So you should have now:
RewriteBase /kolumnen/
…
RewriteRule ^(.*) index.php
(btw. to make it quite clear: the three dots contain, what is located in the original htaccess between the two lines. I didn’t want to quote the whole file.)
This should work fine, if not, ask again.
Offline