Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2010-03-31 14:04:59
- osugodfan
- Member
- Registered: 2008-03-16
- Posts: 16
Display a list of Site Updates
I’ve got an area on my website designated for “Latest Additions”. This area should display a list of all the latest updates to the site, whether an article was published, a file was uploaded, or a comment was added actually, there are no comments right now, but it’d be nice to have that in the future.
Does anyone know how to achieve this? I’ve tried looking at the Simple Pie plugin, thinking, “Well, I can just display my own feed and do it that way” but the plugin caused the whole site to break. Diagnostics said that there was a clean URL error.
Any help would be GREATLY appreciated.
Offline
#2 2010-03-31 19:12:46
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Display a list of Site Updates
Do you want to display them all separately? Like this?
- Latest article:
<txp:article_custom limit="1"><txp:posted /></txp:article_custom>
- Latest file upload:
<txp:file_download_list sort="created desc" limit="1"><txp:file_download_created /></txp:file_download_list>
- Latest comment:
<txp:recent_comments sort="posted desc" limit="1"><txp:comment_time /></txp:recent_comments>
(I’m not 100% sure about the last one…)
Last edited by els (2010-03-31 19:15:45)
Offline
#3 2010-04-01 14:18:59
- osugodfan
- Member
- Registered: 2008-03-16
- Posts: 16
Re: Display a list of Site Updates
It would be awesome if I could actually merge the two together so that it would auto-update when either one of those events happened, rather than articles on top and files below that, which I assume is what’s happening here. For the moment though, I believe this will suffice. Thanks!
Offline
Re: Display a list of Site Updates
Is this anything like what you want?
If it is, here’s the front page:
<div id="box2"><b>Reports</b> <txp:swf_section_updated section="reports" offset="30" message="<font color=red size= -2>Updated</font>" /> </div>
<div id="box"> <txp:article_custom form="headline" section="Reports" limit=5 /> </div>
<!br>
<div id="box2"><b>News</b> <txp:swf_section_updated section="news" offset="30" message="<font color=red size= -2>Updated</font>" /></div>
<div id="box"><txp:article_custom form="headline" section="News" limit=5 /> </div>
<!br>
<div id="box2"><b>Articles</b> <txp:swf_section_updated section="articles" offset="30" message="<font color=red size= -2>Updated</font>" /> </div> <div id="box"><txp:article_custom form="headline" section="Articles" limit=5 /> </div>
<!br>
<div id="box2"><b>Reviews</b> <txp:swf_section_updated section="reviews" offset="30" message="<font color=red size= -2>Updated</font>" /> </div> <div id="box"><txp:article_custom form="headline" section="Reviews" limit=5 /></div>
<!br>
<div id="box2"><b>Recent Comments</b></div><div id="box"><txp:jnm_recent_comments_unique break="br" label="" showcomments="n" commclass="commenters" limit="10"/></div>
Here’s the Headline form:
<txp:permlink><txp:title /></txp:permlink> <font size="-2"> <txp:posted format="%d %b %Y"/></font> <br>
And I use the plugins swf_section_updated and jnm_recent_comments_unique.
I have swf_section_updated set up so that if there are any posts in a given section within the last 30 days from today (offset=“30”), the word “Updated” appears in red, and jnm_recent_comments_unique set to show the last ten most recent articles with comments, and the number of comments they’ve had.
Keith
Blyth, Northumberland, England
Capture The Moment
Offline
Pages: 1