listing blogs in sidebar
Posted: 22 August 2005 11:31 AM   [ Ignore ]  
Summer Student
Total Posts:  20
Joined  03-02-2005

so i can easily list out the categories from a blog into a sidebar and have them link the the story. but my conundrum is that i have multiple blogs setup and i want to create a sidebar that list all the blogs in my EE site and link to them. i know i can do a query from the query module, but i just feel like i’m missing some kind of easier way of doing this.

Profile
 
 
Posted: 23 August 2005 09:38 AM   [ Ignore ]   [ # 1 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2505
Joined  12-06-2002

I’d just create a template with the list of links, styled as necessary.  Then include that template in other templates where appropriate.

You’d have to manually maintain the list, but it’s only in one spot.  I often have weblogs that I wouldn’t want included in the navigation anyway, so creating the list dynamically would be more trouble than it’s worth.

 Signature 

Sign up for Southern Fried ExpressionEngine - a 4-day EE class in San Antonio, TX starting on January 20th.

Profile
 
 
Posted: 23 August 2005 10:35 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  20
Joined  03-02-2005

i guess that would work. but i’m using EE more in a content management way instead as a true blog. so i’m guessing that from your answer the answer is no. there isnt any way to list out the blogs dynamically. at least that you know. your way will be my plan c. i guess i’m off to plan b. which is to use the query module. has any one out there done this yet?

Profile
 
 
Posted: 23 August 2005 12:55 PM   [ Ignore ]   [ # 3 ]  
Sr. Research Associate
Avatar
RankRankRankRankRank
Total Posts:  2505
Joined  12-06-2002

No…looking through the tag library I don’t see a built in tag that returns all the weblog titles.

While I’ve actually used EE more as a CMS than a blog tool, I’ve yet to build a site where the blog list (IE Main Navigation) would be changing often enough to justify making it dynamic or spending the time to do so.

And (as mentioned) I often use seperate blogs to hold things like company addresses, hours, etc - “sidebar” content that doesn’t change often but it’s still nice to be setup such that the site owner can still maintain it.  Those blogs I wouldn’t want to show up in nav, as they don’t get presented as a group of content anywhere, I’m just pulling specific entries in different spots.

Be sure to post your solution, though, as I’m sure once I say I don’t need it I’ll run into a place where it makes sense…;)

 Signature 

Sign up for Southern Fried ExpressionEngine - a 4-day EE class in San Antonio, TX starting on January 20th.

Profile
 
 
Posted: 23 August 2005 01:00 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  33276
Joined  05-14-2004

I can’t find the post right now, but people have posted queries that iterate through all the weblogs.  I think they were pretty simple queries (nb: all queries look like nightmares to me, but as things go…).  There is nothing built in to EE to do this, though.

 Signature 
Profile
MSG
 
 
Posted: 23 August 2005 01:12 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23751
Joined  05-20-2002

As LJ says, it’s an easy query- something like:

{exp:query sql="SELECT weblog_id, blog_name blog_title, blog_url FROM exp_weblogs WHERE weblog_id != '100' ORDER BY blog_title"}
<li><a href="{blog_url}">{blog_title}</a></li>
{/exp:query}

Just stuck the != ‘100’ bit in there as an example- in case you wanted to exclude a particular blog from the automatic generation.  And you might not be using the blog_url, so might need to change that bit.  But anyway, the query to grab the weblog info is a simple one.

 Signature 

AKA rob1

Help Request TipsPro Network

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: 66459 Total Logged-in Users: 68
Total Topics: 84845 Total Anonymous Users: 22
Total Replies: 455288 Total Guests: 184
Total Posts: 540133    
Members ( View Memberlist )
Newest Members:  stephenhfoxysaxAtosheviboyjbcobbsOut_ThereChrisClowerstevelovePhoenix Firstgoyoq