Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2012-03-07 16:38:59
- surfarosa
- New Member
- Registered: 2012-03-07
- Posts: 9
How do I do something very simple
Hi,
Can anyone tell me how to simply increase the amount of articles that appear on a page? I’ve only got one front page as it were and when it gets to 5 posts the ones at the bottom get pushed into an ‘older’ link at the bottom. I want to change this so loads of articles appear in one long page. I’d appreciate enormously any help.
Thanks
Max
Offline
Re: How do I do something very simple
Look in the Page template assigned to your default section for the <txp:article />
tag. Unless you tell it otherwise, it will show you 10 articles. You can alter that with the limit
attribute:
<txp:article limit="20" />
Or 50, 100, 99999999, …. Your choice. The Tag reference is a handy place to bookmark and discover all the various tag attributes.
Hope that helps.
Last edited by Bloke (2012-03-07 16:44:34)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: How do I do something very simple
Hi!
On your templates for default page (usually the page template named “default”), look for the <txp:article />
tag and use the “limit” attribute to raise the number of posts to be displayed (if attribute is omitted, it defaults to limit="10"
).
Something like this:
<txp:article limit="999" />
should do the trick.
Check the “limit” attribute of txp:article.
Edit: Bloke is lighting fast.
Last edited by maniqui (2012-03-07 16:44:24)
Offline
#4 2012-03-07 17:05:54
- surfarosa
- New Member
- Registered: 2012-03-07
- Posts: 9
Re: How do I do something very simple
You two gentleman absolutely rock. A thousand thanks. As you can tell, I’m not a web designer. I’m working my way around Textpattern to get my writing up. I will not doubt be back with lots more questions!
Once again, many thanks
Max
Offline
#5 2012-03-07 17:09:24
- surfarosa
- New Member
- Registered: 2012-03-07
- Posts: 9
Re: How do I do something very simple
I was too quick to reply, I have another simple question. All my articles have my name tagged at the bottom of them. Like:
– My nameI don’t choose to put it there. It seems to have got the name when I signed up. It’s on every article. How can I get rid of it?
Thanks in advance
Offline
Re: How do I do something very simple
This time I’ll be faster than Bloke!
Check the default
form at “Presentation -> Forms”. That’s the one probably being used to render your articles.
There, you will find something like
– <txp:author />
Just delete that line, save, and you are done.
Offline
#7 2012-03-07 17:15:51
- surfarosa
- New Member
- Registered: 2012-03-07
- Posts: 9
Re: How do I do something very simple
Awesome! And awesome speed, man! I’ve got rid of it. However the hyphen remains. Can’t see a ‘ – ‘ in the code. But I can live with that.
Thanks man
Max
Offline
#8 2012-03-07 17:20:23
- surfarosa
- New Member
- Registered: 2012-03-07
- Posts: 9
Re: How do I do something very simple
Right, I’m a roll now. Is there a way to get text to wrap around pictures? I write in the article maker form, put in the image tag line and so on, so can I make the text wrap around the picture? Also can I have separate captions under pictures? Or does this start going into CSS territory? Thanks again
Offline
Re: How do I do something very simple
surfarosa, can you paste the text here from an article where you’re using an image that you’d like to wrap & caption?
Offline
#10 2012-03-07 17:41:39
- surfarosa
- New Member
- Registered: 2012-03-07
- Posts: 9
Re: How do I do something very simple
Hi, not really because I haven’t written an article around that plan yet. At the moment when I use pictures it goes: PICTURE – TEXT – PICTURE – TEXT etc, in a block-like form. I don’t even know how to get a picture to go to the left, right etc.
Offline
Re: How do I do something very simple
You might try installing & using yab_image (excellent guide there) since it has some nice options and supports captions.
Example of how it would be used in an article:
<txp:yab_image id="5" align="right" alt_caption='Here is a caption. This is a "Link (Link)":http://textpattern.com/ inside a caption!' />
So we tell it the image ID number, which side to align the image to, and then what to print for the caption.
You may need to create a bit of CSS depending on how the captions display when you first use it, but it shouldn’t be too bad.
Offline
#12 2012-03-07 18:45:47
- surfarosa
- New Member
- Registered: 2012-03-07
- Posts: 9
Re: How do I do something very simple
That sounds to be just the job, maruchan. Could you instruct me on how to download and install a plug-in into Textpattern? That’d be great. Thanks
Offline