As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<#list space.children as child> <#if child.isDocument && (child.mimetype = "application/pdf")> <a href="/alfresco${child.url}" target="new"><embed src="/alfresco${child.url}"width="500" height="700"></embed> <a href="/alfresco${child.url}" target="new">${child.properties.name}</a> </#if> </#list>
<table> <tr> <td> <#list space.children as child> <#if child.isDocument && (child.mimetype = "application/pdf")> <a href="/alfresco${child.url}" target="new"><embed src="/alfresco${child.url}"width="500" height="700"></embed> </#if> </#list> </td> <td> <table> <form name="miFormulario" onSubmit="return valida(this);"> <tr> <#list space.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child> <td>Fecha de emision:</td><td> <input type="text" name="fecha" value=${child.properties["custom:fecha"]?datetime}></td> </tr> <tr> <td>CIF de la empresa emisora:</td><td><input type="text" name="CIF" value=${child.properties["custom:CIF"]}> </td> </tr> <tr> <td>Numero de factura: </td><td><input type="text" name="num_factura" value= ${child.properties["custom:numfactura"]}></td> </tr> <tr> <td>Precio Base: </td><td><input type="text" name="Base" value= ${child.properties["custom:base"]}></td> </tr> <tr> <td>Iva: </td><td><input type="text" name="nombre" value= ${child.properties["custom:iva"]}></td> </tr> <tr> <td>Precio Total:</td><td><input type="text" name="nombre" value=${child.properties["custom:total"]}></td> </tr> </#list> <tr> <td><input type=submit value="Rechazar"> </td><td><input type=submit value="Aprobar"></td> </tr> </table> </form> </td> </tr> </table>
Así que opté por hacerlo con una vista personalizada, y logro que se muestre el documento pdf con sus correspondientes metadatos, pero todos juntos, y mi intención es que muestre uno por pantalla, y no pase al siguiente hasta que se lo diga(boton aceptar, siguiente,o algo asi) alguna opción para que pudiera paginarlos?