Extensión External preview
La funcionalidad External Preview le ayuda a previsualizar documentos a partir de una petición a una URL externa.
Configuración
Sección titulada «Configuración»| Campo / Propiedad | Tipo | Descripción |
|---|---|---|
| extension.external.preview | List | Cada fila, con un par de valores, es una declaración de contenido de vista previa; el formato es: mime-type;url application/illustrator;http://localhost:8180/OpenKM/test.jsp application/epub+zip;http://localhost:8180/OpenKM/epub\_previewer.jsp application/x-mspublisher;http://localhost:8180/OpenKM/mspreviewer\_previewer.jsp |
Ejemplo
Sección titulada «Ejemplo»Configuración
Sección titulada «Configuración»Cree un archivo llamado test.jsp y cópielo en la carpeta $TOMCAT_HOME/webapps/OpenKM.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>External URL request example</title></head><body> Request parameters <br /> <br /> <b>uuid:</b><%=request.getParameter("uuid")%><br /> <br /> <b>dowloadUrl:</b><%=request.getParameter("dowloadUrl")%><br /></body></html>