Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2007-10-19 21:27:52
- lowen22
- New Member
- Registered: 2007-10-19
- Posts: 5
Older articles and search not working
when i try to add an older article tag it doesent seem to show any link in the website, also i don’t know if it’s related is when i add a search form, it goes back to the index.php
any help is much appreciated
Offline
#2 2007-10-19 23:05:15
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Older articles and search not working
lowen22 wrote:
when i try to add an older article tag it doesent seem to show any link in the website,
Where and how are you using the tag?
when i add a search form, it goes back to the index.php
That is what it’s supposed to do. When you want it to display search results on another page, use the section
attribute. (txp:search_input)
Offline
#3 2007-10-20 11:44:08
- lowen22
- New Member
- Registered: 2007-10-19
- Posts: 5
Re: Older articles and search not working
Here is the context for a column on the front page:
<div class=“column span-3 “><h2>Notes<hr2></hr2></h2> <txp:article_custom allowoverride=“1” category=“Notes” form=“Main Page” limit=“5” pgonly=“0” /><txp:older>Older</txp:older> </div>you can see the format at departandarrive.com
thanks for the search problem
Offline
Re: Older articles and search not working
Pagination works only with <txp:article />
, not with <txp:article_custom />
. Also search-function requires <txp:article />
-tag to show the results. As we know <txp:article />
is content & context sensitive, but <txp:article_custom />
is not.
So like this in example:
<div class="column span-3">
<h2>Notes</h2>
<txp:article category="Notes" allowoverride="1" form="Main Page" limit="5" pgonly="0" />
<txp:older>Older</txp:older>
</div>
PS. What is that <hr2></hr2>
-element? There isn’t any that kind of element in (X)HTML.
Cheers!
Last edited by Gocom (2007-10-20 11:58:29)
Offline
#5 2007-10-20 13:00:31
- lowen22
- New Member
- Registered: 2007-10-19
- Posts: 5
Re: Older articles and search not working
that works a treat, thanks
about the hr tag, i’m using the blueprint css framework which it makes a horrizonatal rule from external css. i reccomend it!
Offline
#6 2007-10-20 13:11:54
- lowen22
- New Member
- Registered: 2007-10-19
- Posts: 5
Re: Older articles and search not working
not so fast, just noticed it can only show all category articles, even with category=”“ it shows them all.
is there a way of just showing certain cat. with an older tag?
Offline
Re: Older articles and search not working
about the hr tag, i’m using the blueprint css framework which it makes a horrizonatal rule from external css. i reccomend it!
But it should be <hr />
not a <hr2 />
.
is there a way of just showing certain cat. with an older tag?
You need to use a plugin, like jk_neighbour
Cheers!
Last edited by Gocom (2007-10-20 14:32:11)
Offline
#8 2007-10-20 23:34:48
- lowen22
- New Member
- Registered: 2007-10-19
- Posts: 5
Re: Older articles and search not working
ok i sorted it
<txp:article cat=“Notes” form=“Main Page” limit=“5”/><txp:older>More</txp:older>
i created a custom field called ‘cat’ and hey presto, the search works now too :) Thanks for the help eveyone.
Offline
Pages: 1