Auto-assign category parents per weblog
Posted: 29 January 2007 10:11 PM   [ Ignore ]  
Lab Assistant
Avatar
RankRank
Total Posts:  116
Joined  12-29-2004

I feel this may have been brought up before but…

I’d like to be able to assign the auto-assign category parents preference per weblog. Here’s my case:

1) I’ve been extensively using Mark Huot’s excellent Static Pages module, which requires auto-assign cat parents off, but in most what I would consider “normal” cases the exact opposite is required.

2) It would be easy, I’ve hacked it in but hate doing that, around line 3540 in cp.publish.php I’ve added the ugly:

if($weblog_id != 1)
{
    $this
->fetch_category_parents($_POST['category']);
}

but it could check for the setting instead of my hard-coded webog id.

3) It would be useful for setups other than those using the pages module, and adds a level of granularity without undue overhead (I believe).

4) A hook added there for an extension to be either created or added to the Pages module would be another alternative.

5) Paul is the best. Ever.

Thanks for your consideration.

 Signature 

imagehat studio
the forum user formerly known as lavalamp

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 10:33 AM
Total Registered Members: 62613 Total Logged-in Users: 14
Total Topics: 77113 Total Anonymous Users: 11
Total Replies: 416386 Total Guests: 133
Total Posts: 493499    
Members ( View Memberlist )