engines/adva_cms/app/controllers/articles_controller.rb
# adjusts the action from :index to :show when the current section is in single-article mode ...
adjusts the action from :index to :show when the current section is in single-article mode
adjusts the action from : index to : show when the current section is in single - article mode
def adjust_action
      if params[:action] == 'index' and @section.try(:single_article_mode)
        unless @section.articles.blank? || (@section.articles.first.draft? && !has_permission?('update', 'section'))
          @action_name = @_params[:action] = request.parameters['action'] = 'show'
        end
      end
    end
def adjust_action if params [ :action ] == 'index' and @section . try ( :single_article_mode ) unless @section . articles . blank? || ( @section . articles . first . draft? && ! has_permission? ( 'update' , 'section' ) ) @action_name = @_params [ :action ] = request . parameters [ 'action' ] = 'show' end end end
adjusts the action from :index to :show when the current section is in single-article mode ...
adjusts the action from : index to : show when the current section is in single - article mode ...
# ... but only if there is one published article