Show
Ignore:
Timestamp:
04/18/08 08:00:45 (20 months ago)
Author:
fumiakiy
Message:

Create required files and directories for dynamic publishing according to the selected publishing profile.

Also "rebuild" the necessary files to rename those files and append .static to the file name. BugId:79364

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-35/lib/MT/CMS/Common.pm

    r1823 r1980  
    329329    } 
    330330    elsif ( my $cfg_screen = $q->param('cfg_screen') ) { 
     331        if ( $cfg_screen eq 'cfg_publish_profile' ) { 
     332            my $dcty = $obj->custom_dynamic_templates || 'none'; 
     333            if ( ( $dcty eq 'all' ) || ( $dcty eq 'archives' ) ) { 
     334                require MT::CMS::Blog; 
     335                my %param = (); 
     336                MT::CMS::Blog::_create_build_order( $app, $obj, \%param ); 
     337                $q->param( 'single_template', 1 ); # to show tmpl full-screen 
     338                if ( $dcty eq 'all' ) { 
     339                    $q->param( 'type', $param{build_order} ); 
     340                } 
     341                elsif ( $dcty eq 'archives' ) { 
     342                    my @ats = map { $_->{archive_type} } @{ $param{archive_type_loop} }; 
     343                    $q->param( 'type', join( ',', @ats ) ); 
     344                } 
     345                return MT::CMS::Blog::start_rebuild_pages($app); 
     346            } 
     347        } 
    331348        if ( $cfg_screen eq 'cfg_templatemaps' ) { 
    332349            $cfg_screen = 'cfg_archives';