Changeset 6715


Ignore:
Timestamp:
07/27/10 14:49:29 (9 years ago)
Author:
plg
Message:

buf 1785 fixed: the number of related tags is no longer hard coded

Location:
branches/2.1/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.1/include/config_default.inc.php

    r6511 r6715  
    632632$conf['menubar_tag_cloud_items_number'] = 100; 
    633633 
    634 // content_tag_cloud_items_number: number of tags to show in the tag 
    635 // cloud on the content page. Only the most represented tags will be shown 
     634// content_tag_cloud_items_number: number of related tags to show in the tag 
     635// cloud on the content page, when the current section is not a set of 
     636// tags. Only the most represented tags will be shown 
    636637$conf['content_tag_cloud_items_number'] = 12; 
    637638 
  • branches/2.1/include/menubar.inc.php

    r6364 r6715  
    144144    { 
    145145      $selection = array_slice( $page['items'], $page['start'], $page['nb_image_page'] ); 
    146       $tags = add_level_to_tags( get_common_tags($selection, 12) ); 
     146      $tags = add_level_to_tags( get_common_tags($selection, $conf['content_tag_cloud_items_number']) ); 
    147147      foreach ($tags as $tag) 
    148148      { 
Note: See TracChangeset for help on using the changeset viewer.