Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
A laundrylist of questions, all about archives
So, just read TextPattern Solutions and I’m ready to dive into my first 2 sites. One is my personal blog/links/work/about-site, the other one is the site of my company, with a blog, press releases, job application, faq’s, partners and a product tour.
I’m going to ask all the things I need for my personal site, from there, the other site shouldn’t be to difficult.
So, let me introduce to you the static pages of my site: maxvoltar.com
9 out of 10 of the links should work (as in: link to another static page).
All problems are around the same subject, being archives.
The first: the blog archive
I need an article-list grouped by month, and by year. I know how to make lists according to their month of publishing, but don’t want to edit the archive page each new month…
I took a look at some plug-ins, but can’t really find one satisfying my needs.
The second: the link archive
This is a bit of a strange one… I need a different page per month, and the current month should be displayed on the index page of the links. And also the list of months should be generated automagically, if possible…
Again: no idea which plug-in could help me…
I’d like to thank you all in advance. TextPattern is the first CMS I really feel comfortable with (as in: no php involved for me, the stupid designer)
– Tim
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
#2 2007-08-16 16:16:06
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: A laundrylist of questions, all about archives
Have a look at txp:if_different.
I suppose you can also use it for links using txp:link_date instead of txp:posted.
Offline
Re: A laundrylist of questions, all about archives
Els wrote:
Have a look at txp:if_different.
I suppose you can also use it for links using txp:link_date instead of txp:posted.
I’m not entirely sure what you’re saying here…
I get the fact that you can display a date in a different way, but I’m looking for a trick to automatically create archive-pages for me.
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
Re: A laundrylist of questions, all about archives
Hi superhero,
did you read this FAQ: http://textpattern.com/faq/134/how-do-i-make-an-archive-page?
Offline
Re: A laundrylist of questions, all about archives
maxvoltar wrote:
I need an article-list grouped by month, and by year. I know how to make lists according to their month of publishing, but don’t want to edit the archive page each new month…
Els wrote:
Have a look at txp:if_different.
I suppose you can also use it for links using txp:link_date instead of txp:posted.
maxvoltar wrote:
I’m not entirely sure what you’re saying here…
I get the fact that you can display a date in a different way, but I’m looking for a trick to automatically create archive-pages for me.
Maybe this might be of help to you
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: A laundrylist of questions, all about archives
With your code, from your template, dier maxvoltar.
Put to pagetemplate to output archieve-list:
<txp:if_section name="archive">
<txp:article_custom limit="9999" section="blog" form="archive-list" />
</txp:if_section>
Create article form called archive-list:
<txp:if_first_article>
<div style="display:none">
<ul>
<li></li>
</txp:if_first_article>
<txp:if_different>
</ul>
</div>
<div class="simplearticlelist">
<small class="label"><txp:posted format="%B %Y" /></small>
<ul>
<txp:else />
<li>
<txp:if_comments><a class="comments" href="<txp:permlink />#replies"><txp:comments_count /> replies</a></txp:if_comments>
<a href="<txp:permlink />">
<span class="postdate"><txp:posted format="since" /></span>
<span class="title"><txp:title /></span>
</a>
</li>
</txp:if_different>
<txp:if_last_article>
</ul>
</div>
</txp:if_last_article>
Edit. Add comments count if has comments
Cheers!
Last edited by Gocom (2007-08-16 17:36:56)
Offline
Re: A laundrylist of questions, all about archives
@Moderator & Moderator: I’m deeply sorry for not digging deeper. That’s what you get when you learn someting out of a book… The book only mentioned plug-ins to solve problems, while the FAQ’s are much more logical to look at…
@Gocom: You are way to kind! You’re making me one lazy designer :-)
One problem still remains: having an archive spraid over multiple pages. From what I’ve read in the links provided by Moderator & Moderator, I understood that it’s not an easy trick, no?
May I say: I love these forums, there’s a huge positive vibe hanging over here, helping noobs with questions asked probable already a dozen of times.
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
Re: A laundrylist of questions, all about archives
Check:
- rss_suparchive (for archive pagination, replace
<txp:article_custom />
) - bas_links_per_article
Cheers!
Last edited by Gocom (2007-08-16 19:14:38)
Offline
Re: A laundrylist of questions, all about archives
Thanks Yukka!
That’s a lot to try out, I’ll keep you guys updated!
Thanks a bunch for the fast and kind replies!
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
Re: A laundrylist of questions, all about archives
Ok, another question. This time it’s a small thingie:
How can I call the excerpt of an article without the default p-wraptag?
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline
#11 2007-08-17 13:08:04
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: A laundrylist of questions, all about archives
You can turn off Textile for the excerpt in the Write screen (under Advanced options, Excerpt markup).
Offline
Re: A laundrylist of questions, all about archives
Again, thanks!
*EDIT: isn’t there a possibility to put them off by default?
Last edited by maxvoltar (2007-08-17 13:13:02)
Textpattern projects: Maxvoltar, Made by Elephant, Twunch
Offline