Is it possible XMLGrab could make an entry’s status ‘Draft’?
Posted: 16 June 2010 02:15 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  11
Joined  2009-08-18

Just wondering whether there could be a situation where XMLGrab would make an entry’s status ‘Draft’ rather than ‘Open’? It’s started happening to a few of my entries and I can’t work out why.

Does EE do this generally under certain circumstances? There’s no expiration date been set on the entries and I can’t see how they look any different to the Open ones, other than the status.

Profile
 
 
Posted: 16 June 2010 02:21 AM   [ Ignore ]   [ # 1 ]  
Administrator
RankRankRankRank
Total Posts:  179
Joined  2006-04-12

XMLGrab should just use the weblog’s default status (from CP Home ›  Admin ›  Weblog Administration ›  Weblog Management ›  Edit Weblog Preferences ›  Administrative Preferences)

The value should be the same for all entries.

Andrew

Profile
 
 
Posted: 16 June 2010 02:39 AM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-08-18

Default status… I reckon you may well have found my problem. Thanks Andrew!

Profile
 
 
Posted: 16 June 2010 02:41 AM   [ Ignore ]   [ # 3 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-08-18

The default status for those entries is “Draft”. That’s because they need to be because I have other admin users contributing to the same weblog. Any way of hardcoding them to ‘Open’ via XMLGrab?

Profile
 
 
Posted: 16 June 2010 02:49 AM   [ Ignore ]   [ # 4 ]  
Administrator
RankRankRankRank
Total Posts:  179
Joined  2006-04-12

Not built-in but it is easy to hack.

Look for a line in the pi.xmlgrab.php file like:

'status'            => $query->row['deft_status']

and change it to:

'status'            => 'open'

Andrew

Profile
 
 
Posted: 16 June 2010 02:52 AM   [ Ignore ]   [ # 5 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-08-18

You’re a legend! Thanks

Profile