Query about exp:weblog:categories
Posted: 04 June 2008 12:48 PM   [ Ignore ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

I have this snippet of code running on my site:

{exp:weblog:categories weblog="blog" show_empty="no" style="linear"}
    
<li><a href="{path=blog/}">{category_name}</a></li>
{/exp:weblog:categories}

I have currently 2 weblogs sharing a single category group, called blog and links. I have 2 weblog entries, one in blog and one in links.

Because I have the above set to weblog=“blog”, I wouldn’t expect it to show the category I used for my links entry in the list…yet it is.

Is this what should be happening?

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 05 June 2008 02:04 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

Anyone have any ideas on this? I think I have another way of doing it, but I’m rather hoping this way can be made to work.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 05 June 2008 03:36 AM   [ Ignore ]   [ # 2 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

I think it is, you should have a look at the {categories} tag inside a weblog:entries tag, i guess that should do what you’re looking for.

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 05 June 2008 03:41 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

Cheers, that’s the way I was going to do it (or similar). I was kinda hoping that someone could explain why the code I used in the first place doesn’t work - I don’t get why you can pass in a weblog if it’s going to ignore it in the results.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 05 June 2008 03:45 AM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  246
Joined  04-12-2008

You’re right, it’s indeed strange as by my understanding, it should restrict the categories to that weblog:

The name (short name) of the weblog that the categories are assigned to. This variable is required unless you only have a single weblog.

doc

 Signature 

Designchuchi | Twitter

URL Field Extension
Required Category Extension
DC FreeForm GeoIP Extension

Profile
 
 
Posted: 05 June 2008 06:46 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

Do I need to request that this moves to tech support in order to try and get an official response?

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

Profile
 
 
Posted: 05 June 2008 09:59 AM   [ Ignore ]   [ # 6 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

Greetings!

This is expected behavior, but there is an existing feature request open that you could chime in on. Also, I believe they have a few examples of how to get what you would like to output.

Let us know if you have any questions.

Profile
 
 
Posted: 05 June 2008 10:03 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  881
Joined  02-15-2008

Thanks for the reply Justin, I’ll do just that.

 Signature 

Andy Harris | Pepper Digital | Malvern, UK | Twitter | New to ExpressionEngine? Start here!
Remember - If at first you don’t succeed, you’re not Chuck Norris

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: 64907 Total Logged-in Users: 38
Total Topics: 81851 Total Anonymous Users: 33
Total Replies: 440054 Total Guests: 223
Total Posts: 521905    
Members ( View Memberlist )