Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-08-16 15:56:34

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

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

#3 2007-08-16 16:28:17

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

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

#4 2007-08-16 16:40:14

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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?


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#5 2007-08-16 16:44:03

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,012
Website GitHub Mastodon Twitter

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

#6 2007-08-16 17:31:14

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

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

#7 2007-08-16 18:48:49

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

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

#8 2007-08-16 19:13:54

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: A laundrylist of questions, all about archives

Check:

  1. rss_suparchive (for archive pagination, replace <txp:article_custom />)
  2. bas_links_per_article

Cheers!

Last edited by Gocom (2007-08-16 19:14:38)

Offline

#9 2007-08-16 21:50:37

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

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

#10 2007-08-17 11:34:20

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

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

#12 2007-08-17 13:09:37

maxvoltar
Member
From: Machelen, Belgium
Registered: 2007-08-16
Posts: 76
Website

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

Board footer

Powered by FluxBB