code: private void writeValue(String type, CmsUUID id, int index) {
  
          Locale locale = CmsLocaleManager.getLocale("en");
          // todo: check actual locale.
          m_document.addValue(m_cms, N_DETAIL_PAGE, locale, index);
          String typePath = N_DETAIL_PAGE + "[" + (1 + index) + "]/" + N_TYPE;
          I_CmsXmlContentValue typeVal = m_document.getValue(typePath, locale);
          String pagePath = N_DETAIL_PAGE + "[" + (1 + index) + "]/" + N_PAGE;
          CmsXmlVfsFileValue pageVal = (CmsXmlVfsFileValue)m_document.getValue(pagePath, locale);
          typeVal.setStringValue(m_cms, type);
          pageVal.setIdValue(m_cms, id);
      }
docs: Writes a single item of detail page information to the XML content.<p>
  
  @param type the type which the detail page should render
  @param id the page id of the detail page
  @param index the position at which the detail page info should be added