entry id not=
Posted: 27 June 2008 01:16 PM   [ Ignore ]  
Lab Technician
RankRankRankRank
Total Posts:  1018
Joined  03-25-2005

EE vers 1.6.2
Build:  20080421

Menu code:

{exp:weblog:entries orderby="date"
sort="desc" limit="15"  entry_id="not 3" show_pages="no"
weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
<li><a >{title}</a></li>
{/exp:weblog:entries}

And there in the list with the other entries sits entry id 3.

Driving me nuts, what am I missing?Docs entry_id=

Or use “not” to exclude entries:
entry_id=“not 45|534|807”

thanks
.

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 27 June 2008 01:18 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  12376
Joined  04-29-2002

Is it sticky by any chance?

 Signature 

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

Profile
MSG
 
 
Posted: 27 June 2008 01:24 PM   [ Ignore ]   [ # 2 ]  
Lab Technician
RankRankRankRank
Total Posts:  1018
Joined  03-25-2005

I tried everything, even when I left and went for a coffee it was still there!
Never thought of that.

But no it isn’t

Mind you, I seriously think if I go for a beer it will fix itself…?

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 27 June 2008 01:30 PM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

Worth a try, of course, but I wouldn’t bet on it. Do you’ve got a link to the site?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 27 June 2008 01:45 PM   [ Ignore ]   [ # 4 ]  
Lab Technician
RankRankRankRank
Total Posts:  1018
Joined  03-25-2005

ok, just in case I deleted the entry, and posted it to a different weblog.

{exp:weblog:entries orderby="date"
sort="desc" limit="15" offset="1"
show_pages="no" entry_id="not 34"
weblog="{my_weblog}" dynamic="off" disable="pagination|custom_fields|categories|member_data|trackbacks"}
<li><a >{title}</a></li>
{/exp:weblog:entries}

entry_34 shows in menu/
The entry id is 34 tripple checked.
The site has one entry with that name.
It isn’t sticky.

It isn’t live so will have to pm, but you will see it there and the code is above…?

I found it!
show_pages=“no”
When I removed this, the entry didn’t show…weird!
.

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 27 June 2008 02:56 PM   [ Ignore ]   [ # 5 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

Hm, is entry_id 34 an entry with assigned Pages?

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 27 June 2008 03:24 PM   [ Ignore ]   [ # 6 ]  
Lab Technician
RankRankRankRank
Total Posts:  1018
Joined  03-25-2005

Nope, newly posted as a regular entry…

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 27 June 2008 03:26 PM   [ Ignore ]   [ # 7 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  15368
Joined  05-15-2004

Well, that makes it odd. Looks like you got it working for now? Still, will give a heads up to the crew.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 27 June 2008 03:51 PM   [ Ignore ]   [ # 8 ]  
Lab Technician
RankRankRankRank
Total Posts:  1018
Joined  03-25-2005

Yes;
show_pages=“no” entry_id=“not 34” - entry_id 34 shows
entry_id=“not 34” entry_id 34 - doesn’t show.

Looks like we need the raid?

thanks

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 29 June 2008 10:12 AM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

I replicate on 1.6.4- it’s the show_pages bit doing it.  I think it overrides anything else entry_id parameter wise:

/** ----------------------------------------------
        /**  Only Entries with Pages
        /** ----------------------------------------------*/
        
        
if ($TMPL->fetch_param('show_pages') !== FALSE && in_array($TMPL->fetch_param('show_pages'), array('only', 'no')) && ($pages = $PREFS->ini('site_pages')) !== FALSE)
        
{
            $entry_id
= (($TMPL->fetch_param('show_pages') == 'no') ? 'not ' : '').implode('|', array_flip($pages['uris']));
        
}


In truth, I’m not sure how to handle it- aside from giving the crew a yell.  It does seem like a bug to me- in which case, the entry_id param would need to merge ids w/the resulting list of pages. 

You ok for now- or is this one mission critical?

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 29 June 2008 10:47 AM   [ Ignore ]   [ # 10 ]  
Lab Technician
RankRankRankRank
Total Posts:  1018
Joined  03-25-2005

Thanks Rob

It doesn’t matter to me, not needing it really. Just was trying to figure out why it wasn’t working and stumbled onto the pages thing…

Also it just dawned on me that it’s redundant to limit the entry to one id and have show pages=“no” at the same time lol

 Signature 

BKDesign Solutions - Learn XHTML and use   Web Standards to build accessible websites that validate

Profile
 
 
Posted: 29 June 2008 02:01 PM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  23522
Joined  05-20-2002

Hee- yea, that would be redundant.  But I can see a situation where you’d use entry_id=“not x” and still want pages to be no.  I mean- rare.  But I can imagine it.  Will let this one linger until I hear back from the crew.  But if it’s not critical, won’t go code diving myself.  wink

 Signature 

AKA rob1

Help Request TipsPro Network

Profile
 
 
Posted: 31 July 2008 12:08 PM   [ Ignore ]   [ # 12 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  582
Joined  04-29-2008

This has been fixed for next release.

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: 64909 Total Logged-in Users: 37
Total Topics: 81853 Total Anonymous Users: 25
Total Replies: 440063 Total Guests: 243
Total Posts: 521916    
Members ( View Memberlist )