Problem with entry titles repeating inside weblog:categories with category groups
Posted: 26 June 2008 04:03 AM   [ Ignore ]  
Summer Student
Total Posts:  7
Joined  02-26-2007

Hi all,

I have the following code which is meant to show all the entry titles for the parents only of a particular category group. Unfortunately the same entry titles keep repeating even though they aren’t in the category shown.

{exp:weblog:categories weblog="{my_weblog}" category_group="2" style="linear" parent_only="yes"}
<h2>{category_name}</h2>
{if category_description}<p>{category_description}</p>{/if}

<ul>
{exp:weblog:entries orderby="date" category_id="{category_id}" weblog="{my_weblog}" disable="member_data|trackbacks"}

<li>{title}</li>

{/exp:weblog:entries}
</ul>

{/exp:weblog:categories}

Produces the following:

Northumberland

  * Quantity Surveyor
  * Scaffolder
  * Contracts Supervisor

Co Durham

  * Quantity Surveyor
  * Scaffolder
  * Contracts Supervisor

Cleveland

  * Quantity Surveyor
  * Scaffolder
  * Contracts Supervisor

Tyne and Wear

  * Quantity Surveyor
  * Scaffolder
  * Contracts Supervisor

It’s probably something really stupid but I can’t figure this one out!

 Signature 

Stuart Whitman

Web Developer - Newcastle upon Tyne. UK.

Profile
 
 
Posted: 26 June 2008 07:00 AM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23521
Joined  05-20-2002

Hee- took me a minute to spot it- I think it’s the fact that category_id isn’t a parameter for the weblog tag- it’s just category.  Does it work if you change that?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 27 June 2008 12:10 AM   [ Ignore ]   [ # 2 ]  
Summer Student
Total Posts:  7
Joined  02-26-2007

Aah.. Fixed that problem and created another!

The titles are in the right categories now but I’m only getting 1 entry per category group when I know there are other entries.

This is the latest output

Northumberland

  * Quantity Surveyor

Co Durham

Cleveland

  * Scaffolder

Tyne and Wear

  * Contracts Supervisor


but I should have an entry under Tyne and Wear for Site Manager.

 Signature 

Stuart Whitman

Web Developer - Newcastle upon Tyne. UK.

Profile
 
 
Posted: 01 July 2008 09:32 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23521
Joined  05-20-2002

Sorry I missed the reply there.  Let’s reduction test a bit- pull out the weblog tag- put it all by itself and hard code the correct category_id- do multiple entries show up then?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 05 July 2008 08:00 AM   [ Ignore ]   [ # 4 ]  
Summer Student
Total Posts:  7
Joined  02-26-2007

Hi Robin,

The brain fade had kicked in again…solved it now. The weblog has a custom status of “hot” and these entries were the ones that didn’t appear. Soon sorted by putting status=“not closed” in the parameters.

I won’t forget that one next time!

Thanks for your help anyway.

 Signature 

Stuart Whitman

Web Developer - Newcastle upon Tyne. UK.

Profile
 
 
Posted: 05 July 2008 10:30 AM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12372
Joined  04-29-2002

Glad things are working again.. closing the thread.

 Signature 

Quick Reference - EE Trial Options - EE Wiki - Docs for updating a build

Profile
MSG
 
 
   
 
 
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: 64886 Total Logged-in Users: 69
Total Topics: 81811 Total Anonymous Users: 25
Total Replies: 439832 Total Guests: 269
Total Posts: 521643    
Members ( View Memberlist )
Newest Members:  Ax the Bkikibalkhulaidi19Hotcards.comShrike67Dynamic1justingpticketjendicottdxrsm