Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-11-03 08:46:03

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

... list articles by author with unique formatting?

in 4.0.2 release notes, “made articles by author work properly” …

how do you list articles by author using something other than the default page template?

(is there an equivalent to glx_if_category_list plugin? or other technique?)

Offline

#2 2005-11-03 13:45:51

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,330
Website Mastodon

Re: ... list articles by author with unique formatting?

What about a template combining this

bc..<txp:article_custom author=“joe” form=“byauthor” />
<txp:article_custom author=“mary” form=“byauthor” />

with a form (byauthor) which embraces each author’s article with her own class

bc..<div class=``by-<txp:author />`` >
<txp:body />
[…]
</div>

and some css entries styling those author-specific articles

.by-joe { color: red; }
.by-mary { color: green; }

Anyway, I’m not quite sure what you wanted to achieve…

Last edited by wet (2005-11-03 17:47:09)

Offline

#3 2005-11-03 14:29:00

mgbales
Member
From: Iowa
Registered: 2005-10-02
Posts: 22
Website

Re: ... list articles by author with unique formatting?

What wet suggests is essentially what we do in the 3 columns at bottom. The difference is that each column DIV is styled rather than each author—and we don’t call any special forms for it (a mark more of my own unfamiliarity with txp when I wrote the site). Regardless, each column could easily have its own very unique styling…

Offline

#4 2005-11-03 22:08:03

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: ... list articles by author with unique formatting?

yep, not well explained… but thanks for those helpful replies … rephrased pre-vodka fashion:

when you have a URL like “domain.com/author/shane-warne” … that uses the default page template, right?

now my default page template uses glx_if_ conditionals to isolate the tag chunks that generate the home page and category lists … but my author lists seem to be using the home page formatting (that should be hidden by glx_if_frontpage)

another way: is there a conditional to present if_author_list … ?

will dig deeper later, but if there’s anyone presenting lists of posts by author dynamically and stumble across this, how do you do it?

and what exactly was the change in 4.0.2? aah

Last edited by nardo (2005-11-03 22:46:50)

Offline

Board footer

Powered by FluxBB