category problem—need to show “x” and not show “y”
Posted: 20 June 2006 03:03 PM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  461
Joined  04-04-2006

hello smile

i cannot figure the syntax out re this problem…

on a weblog page, basically i have two categories, x and y.  in the “recently added” column, i want to list all the Ys (the “recently addeds”).  the featured post on this page is also category Y, but is +also+ category X (“featured”).  how do i get the “recently added” items to display all those entries assigned +only+ to category Y?

i thought something like this, but it’s not working…

category="y not X"

any help would be appreciated.

thanks and cheers smile

Profile
 
 
Posted: 20 June 2006 03:15 PM   [ Ignore ]   [ # 1 ]  
Research Assistant
RankRankRank
Total Posts:  461
Joined  04-04-2006

i tried this…but got +really+ kooky results…

<div class="shopFeaturedcontainer">
<
div id="recentVic">
{exp:weblog:entries weblog="shop" orderby="date" limit="1" sort="desc" dynamic="off" category="24"}
{categories show
="not 13"}<div class="shopFeaturedcaption"><a href="{path=shop/victorian}">{90x160thumb}<br />{title}</a></div>{/categories}
{
/exp:weblog:entries}
</div><!--end recentVic-->


cheers—

Profile
 
 
Posted: 20 June 2006 03:34 PM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  461
Joined  04-04-2006

i bagged that approach and have tried using a custom status, but the custom status i created is not showing up either in editable entries, or in new entries.

what is going on?

cheers smile

Profile
 
 
Posted: 20 June 2006 03:54 PM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  461
Joined  04-04-2006

i +think+ i figured statuses out.  at least the page (i think) is working the way it should.

cheers—

Profile
 
 
Posted: 20 June 2006 03:58 PM   [ Ignore ]   [ # 4 ]  
Administrator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15826
Joined  06-03-2002

Your category=”” parameter usage in the weblog entries tag is correct, to only display entries from a particular category.  So if the category “Y” is number 7, then you would use:

{exp:weblog:entries category="7"}

The {categories} variable pair is intended to display the category information associated with a specific entry, not to constrain entry output to a particular category.

For your separate issue of statuses not showing up, did you assign that custom status group with your new statuses to the weblog in question?  Personally, statuses is the way I would choose to create “featured” posts, so I would continue along the line you are now pursuing.

 Signature 
Profile
MSG
 
 
Posted: 20 June 2006 04:03 PM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  461
Joined  04-04-2006

derek hi smile

yes, i did assign the new status group to the entry…what i wasn’t getting (at first) was that i needed to create a whole, ‘nother group—at first i had tried to add a sub-status to the default “open/closed” status group…but that apparently didn’t fly.  that was what wasn’t displaying when i went to edit and publish.  when i created a whole new status group, and assigned the entry to the group, then i was able to see the selection, and select it.

(my mind is now in the midst of wrapping my mind around the possibilities of statuses.)

derek, many thanks and cheers smile

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: 64905 Total Logged-in Users: 55
Total Topics: 81838 Total Anonymous Users: 37
Total Replies: 440018 Total Guests: 248
Total Posts: 521856    
Members ( View Memberlist )