newest entry from a bunch of weblogs?
Posted: 19 September 2004 01:32 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  193
Joined  01-21-2004

Hi all!

I want to show the 3 newest entries from a BUNCH of weblogs (I’ll have about 40 when I’m done).

{exp:weblog:entries weblog_id="1 2 3 4" orderby="date" sort="desc" limit="3"}

This would show the 3 newest entries from weblogs 1 2 3 and 4…but is there a way do it like this?

{exp:weblog:entries weblog_id="all" orderby="date" sort="desc" limit="3"}

TIA,

Bill

 Signature 

http://www.mackenty.org
—————————————————————
Text-based gaming is alive and well!
http://community.pennmush.org

Profile
 
 
Posted: 19 September 2004 01:43 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

I haven’t tried it, but have you tried just leaving off weblog=”**”?

Your code above is a bit off, btw, it’d be weblog=“1|2|3|4” etc.  Just for clarification. =)

 Signature 
Profile
MSG
 
 
Posted: 19 September 2004 01:45 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

as a clarification, I haven’t tried that - so it may not work; I can’t really try it in my setup so. =)

 Signature 
Profile
MSG
 
 
Posted: 19 September 2004 10:59 PM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

If you don’t specify the “weblog=” parameter at all then EE will automatically pull entries from all of your weblogs.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 20 September 2004 05:14 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  193
Joined  01-21-2004

hmmm….

for some reason this doesn’t seem to be working.  As a test, I just tried this:

{exp:weblog:entries}

{title}

{
/exp:weblog:entries}

But only 1 title entry from 1 weblog is displayed…the url to the test is here .

You can poke around other parts of the site, and see that all other entries seem to be available and working…

...any suggestions? grin

 Signature 

http://www.mackenty.org
—————————————————————
Text-based gaming is alive and well!
http://community.pennmush.org

Profile
 
 
Posted: 20 September 2004 10:30 AM   [ Ignore ]   [ # 5 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

That test URL looks like it’s indicating a specific Entry ID in the URL.  Therefore, you’ll only get that single entry returned, which is what should happen (just like if you were looking at a comment page).

To test your Template correctly, you need to view it without any Entry ID or URL Title information in the URL.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 21 September 2004 02:52 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
RankRankRank
Total Posts:  761
Joined  06-01-2004

@bmackenty

{exp:weblog:entries weblog_id=“1 2 3 4” orderby=“date” sort=“desc” limit=“3”}

Try using just using just weblog as the parameter. That might also help.

 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 21 September 2004 01:22 PM   [ Ignore ]   [ # 7 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

That syntax is incorrect, MF.  If you want to specify multiple weblogs, then you need to separate each Weblog ID with a pipe character:

weblog="1|5|13|147"

You are correct, however, that the parameter is “weblog” and not “weblog_id”.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 21 September 2004 01:23 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32861
Joined  05-14-2004

I swear I said that in the second message in this thread…. *sighs desolately*

 Signature 
Profile
MSG
 
 
Posted: 21 September 2004 01:54 PM   [ Ignore ]   [ # 9 ]  
Research Assistant
RankRankRank
Total Posts:  761
Joined  06-01-2004

Sorry

 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 22 September 2004 06:50 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  193
Joined  01-21-2004

ok…

...I’m still unable to figure this out.  grin 

As a matter of course, the template name was 1, so I’m not sure it was directly referencing a single entry.  I’ve renamed it (you can see it here ).

I’m still using the same code:

{exp:weblog:entries}


{title}


{
/exp:weblog:entries}

 Signature 

http://www.mackenty.org
—————————————————————
Text-based gaming is alive and well!
http://community.pennmush.org

Profile
 
 
Posted: 22 September 2004 07:04 AM   [ Ignore ]   [ # 11 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  193
Joined  01-21-2004

well…

...wierd.

When I use the template name test, it doesn’t work…but when I use another template name (test2) it works the way I want it to.  You can see the (ugly) results of this here.

Thank you for your help!

Warmly,

Bill

 Signature 

http://www.mackenty.org
—————————————————————
Text-based gaming is alive and well!
http://community.pennmush.org

Profile
 
 
Posted: 22 September 2004 07:11 AM   [ Ignore ]   [ # 12 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  193
Joined  01-21-2004

*Bill looks incredibly embarassed*

I had an entry with a title of “test”.  when I tried to use a template named test it called the entry, not the template.  *sigh*

Sorry for taking your time with this….

-Bill

 Signature 

http://www.mackenty.org
—————————————————————
Text-based gaming is alive and well!
http://community.pennmush.org

Profile
 
 
Posted: 22 September 2004 12:05 PM   [ Ignore ]   [ # 13 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  520
Joined  05-14-2004

Not a problem. It’s the simple mistakes that are the hardest to figure out. Trust me, we’ve all been there.

 Signature 

“I was gratified to be able to answer promptly, and I did. I said I didn’t know.” - Mark Twain, Life on the Mississippi

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64939 Total Logged-in Users: 66
Total Topics: 81911 Total Anonymous Users: 47
Total Replies: 440328 Total Guests: 276
Total Posts: 522239    
Members ( View Memberlist )