At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!
![]() ![]() |
Oct 13 2006, 06:30 PM
Post
#1
|
|
|
Group: Members Posts: 38 Joined: 6-November 03 From: New York Member No.: 17,429 |
Hey guys,
Just upgraded from 3.2 to 3.33. Everything thankfully went well. The only problem that we're having so far is that one sort_order tag seems not to be working. We have dynamically generated pages for our authors using smarty, and it pulls a specific image associated with the author, than the oldest post by the author (which is the bio) and than a bunch of their current entries. Everything is working great, except that the code that used to pull the oldest entry (the bio) isn't working anymore. It's showing the very last entry posted by the author instead of the first. Like I said, we were using sort_order to control this, set to ascend. This is the exact code for the portion that has stopped working: CODE <MTEntries author="`$smarty.request.author`" sort_order="ascend" lastn="1"> I've tried rearranging the order of the tags, but nothing changed. Any suggestions? To sum it up, we just need the oldest post by the author input by smarty there. -------------------- |
|
|
|
Oct 20 2006, 07:56 AM
Post
#2
|
|
|
Group: Members Posts: 38 Joined: 6-November 03 From: New York Member No.: 17,429 |
Hi, just bumping this, anyone got any suggestions?
-------------------- |
|
|
|
Oct 31 2006, 04:33 PM
Post
#3
|
|
|
Group: Members Posts: 45 Joined: 17-August 06 Member No.: 36,465 |
I'm having the same issue. I am using MT 3.31 to produce a Flash vlog; on my monthly archive pages, I only want one video displayed at a time, and I'd like it to be the oldest instead of the newest. This is my code:
CODE <MTEntries lastn="1" sort_order=”ascend”> I've switched between ascend and descend just to be sure, and it doesn't do anything. |
|
|
|
Nov 3 2006, 07:42 PM
Post
#4
|
|
|
Group: Members Posts: 541 Joined: 26-June 02 Member No.: 1,363 |
Me too! What's up with this? anyone?
|
|
|
|
Nov 3 2006, 07:54 PM
Post
#5
|
|
|
Group: Members Posts: 2,106 Joined: 19-October 03 From: Vallejo, CA Member No.: 16,834 |
The lastn attribute has a built-in 'sort_order="descend"' into it that overrides a sort_order attribute specified in the MTEntries tag. Because of this behavior, the sort_order attribute is essentially ignored if a lastn attribute is also specified.
-------------------- David Phillips (TweezerMan)
The Tweezer's Edge v3 |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 11.24.09 - 11:28 PM |