code: public List<CmsDetailPageInfo> getDetailPagesForType(String type) {
  
          List<CmsDetailPageInfo> result = new ArrayList<CmsDetailPageInfo>();
          CmsResourceTypeConfig typeConfig = getResourceType(type);
          if (type.startsWith(CmsDetailPageInfo.FUNCTION_PREFIX)
              || ((typeConfig != null) && !typeConfig.isDetailPagesDisabled())) {
  
              CmsDetailPageInfo defaultPage = null;
              for (CmsDetailPageInfo detailpage : getAllDetailPages(true)) {
                  if (detailpage.getType().equals(type)) {
                      result.add(detailpage);
                  } else if ((defaultPage == null)
                      && CmsADEManager.DEFAULT_DETAILPAGE_TYPE.equals(detailpage.getType())) {
                      defaultPage = detailpage;
                  }
              }
              if (defaultPage != null) {
                  // add default detail page last
                  result.add(defaultPage);
              }
          }
          return result;
      }
docs: Gets the detail pages for a specific type.<p>
  
  @param type the type name
  
  @return the list of detail pages for that type