Re: [xwiki-users] Problem creating a link to a page with custom css. NEWBEE
2009/12/17 AlonsoIR alons...@gmail.com: Hi Mr Mortagne, thx for reply. There is several issues in your content: * all you put in your page content will ends up inside a div unless you are specifically using ?xpage=plain so you cant use body here Ok, body tags wipe out! * by default {{html}} is supposed to contains valid html, li never closed is not valid, if you want to start li in an html block and close it in another html block you have to use {{html clean=false}} (i guess that's your main issue here) If i put this into the code, dont work, now it renders like plain text instead of a link. By default {{html}} macros does not allow wiki syntax since it's supposed to be used for very specific html content. If you want to enable wiki syntax parsing use wiki=true Did you looked at http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro ? [CODE] {{velocity}} $xwiki.ssfx.use(/portal/site/css/estilo.css) {{/velocity}} {{html}} !--inicio menu-- div id=menu ul li {{html clean=false}} [[IntroduccionMain.Introduccion]] {{/html}} Why are you putting an {{html}} macro inside another {{html}} macro ? As i explained to you the goal of clean=false is to do things like {{html clean=false}} ulli start list here {{/html}} some non html wiki content {{html clean=false}} end here/liul {{/html}} /li li # Guía Rápida /li li # Objetivos /li li # Descripción /li li # Noticias /li li # RSS /li /ul /div div id=contenido div id=columleft div id=imgport h2MADES (Marco de Desarrollo y Mantenimiento de Aplicaciones)/h2 pes una referencia para los actores implicados en el desarrollo de aplicaciones software en el ámbito de la Consejería de Sanidad y Dependencia de la Junta de Extremadura. Ofrece un punto de partida para el uso de tecnologías probadas bajo directrices que marcan criterios de calidad y homogeneización en los desarrollos y proponiendo un marco metodológico en la operativa de los proyectos./p p class=right # leer más /p /div div id=accesosport div class=cajaacceso1 h3Arquitectura MADES/h3 h4Marco Tecnológico/h4 ul li # Infraestructura /li li # Librerías /li li # Área de entrega /li li # Criterios de Desarrollo /li /ul /div div class=cajaacceso2 h3Políticas y procedimientos/h3 h4Marco Metodológico/h4 ul li # Metodología /li li # Plantillas de documentación /li li # Material de referencia /li /ul /div /div /div div id=columright div id=zonadescarga h3Zona de descargas/h3 ul li class=vin1 # Entorno de Desarrollo /li li class=vin1 # Plantillas de Documentación /li li class=vin1 # Manuales /li li class=vin1 # Ejemplos /li li class=vin1 # Guía rápida a MADES /li li class=vin2 # Proyecto Piloto ulli # Repositorio de Código Fuente /li/ul /li li class=vin1 # Bibliografía /li li class=vin1 # Herramienta de Verificación /li li class=vin1 # Actualización de reglas /li /ul /div div id=gestionproyecto h3Gestión de Proyectos/h3 div class=centrar div class=formulario form method=post action=#br / label for=usuario title=usuarioUsuario/label input id=usuario value=usuario size=12 br/ label for=login title=loginLogin/label input id=login value=login size=12 input type=submit name=Enviar id=Enviar value=Enviar class=boton alt=Enviar title= Enviar br / /form /div /div /div /div /div !--INICIO PIE PÁGINA-- div id=piep(c) Junta de Extremadura 2009/p/div {{/html}} [/CODE] Why don't you use wiki syntax instead of html ? It would be much easier IMO The main reason is that i m part of the team, design team has make the html and css files, so i have to integrate it into xwiki. Could you help me a bit more? regards -- View this message in context: http://n2.nabble.com/Problem-creating-a-link-to-a-page-with-custom-css-NEWBEE-tp4174746p4180066.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem creating a link to a page with custom css. NEWBEE
AlonsoIR wrote: Hi Mr Mortagne, thx for reply. There is several issues in your content: * all you put in your page content will ends up inside a div unless you are specifically using ?xpage=plain so you cant use body here Ok, body tags wipe out! * by default {{html}} is supposed to contains valid html, li never closed is not valid, if you want to start li in an html block and close it in another html block you have to use {{html clean=false}} (i guess that's your main issue here) If i put this into the code, dont work, now it renders like plain text instead of a link. See http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro . [CODE] {{velocity}} $xwiki.ssfx.use(/portal/site/css/estilo.css) {{/velocity}} {{html}} change this to {{html wiki=true}} !--inicio menu-- div id=menu ul li {{html clean=false}} drop this [[IntroduccionMain.Introduccion]] {{/html}} drop this too. and make sure you escape any XWiki 2.0 special symbols that you don't want to be interpreted. See http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HEscapes Hope this helps, Marius /li li # Guía Rápida /li li # Objetivos /li li # Descripción /li li # Noticias /li li # RSS /li /ul /div div id=contenido div id=columleft div id=imgport h2MADES (Marco de Desarrollo y Mantenimiento de Aplicaciones)/h2 pes una referencia para los actores implicados en el desarrollo de aplicaciones software en el ámbito de la Consejería de Sanidad y Dependencia de la Junta de Extremadura. Ofrece un punto de partida para el uso de tecnologías probadas bajo directrices que marcan criterios de calidad y homogeneización en los desarrollos y proponiendo un marco metodológico en la operativa de los proyectos./p p class=right # leer más /p /div div id=accesosport div class=cajaacceso1 h3Arquitectura MADES/h3 h4Marco Tecnológico/h4 ul li # Infraestructura /li li # Librerías /li li # Área de entrega /li li # Criterios de Desarrollo /li /ul /div div class=cajaacceso2 h3Políticas y procedimientos/h3 h4Marco Metodológico/h4 ul li # Metodología /li li # Plantillas de documentación /li li # Material de referencia /li /ul /div /div /div div id=columright div id=zonadescarga h3Zona de descargas/h3 ul li class=vin1 # Entorno de Desarrollo /li li class=vin1 # Plantillas de Documentación /li li class=vin1 # Manuales /li li class=vin1 # Ejemplos /li li class=vin1 # Guía rápida a MADES /li li class=vin2 # Proyecto Piloto ulli # Repositorio de Código Fuente /li/ul /li li class=vin1 # Bibliografía /li li class=vin1 # Herramienta de Verificación /li li class=vin1 # Actualización de reglas /li /ul /div div id=gestionproyecto h3Gestión de Proyectos/h3 div class=centrar div class=formulario form method=post action=#br / label for=usuario title=usuarioUsuario/label input id=usuario value=usuario size=12 br/ label for=login title=loginLogin/label input id=login value=login size=12 input type=submit name=Enviar id=Enviar value=Enviar class=boton alt=Enviar title= Enviar br / /form /div /div /div /div /div !--INICIO PIE PÁGINA-- div id=piep(c) Junta de Extremadura 2009/p/div {{/html}} [/CODE] Why don't you use wiki syntax instead of html ? It would be much easier IMO The main reason is that i m part of the team, design team has make the html and css files, so i have to integrate it into xwiki. Could you help me a bit more? regards ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem creating a link to a page with custom css. NEWBEE
Thx for your help, i really appreciate it! Marius Dumitru Florea wrote: AlonsoIR wrote: Hi Mr Mortagne, thx for reply. There is several issues in your content: * all you put in your page content will ends up inside a div unless you are specifically using ?xpage=plain so you cant use body here Ok, body tags wipe out! * by default {{html}} is supposed to contains valid html, li never closed is not valid, if you want to start li in an html block and close it in another html block you have to use {{html clean=false}} (i guess that's your main issue here) If i put this into the code, dont work, now it renders like plain text instead of a link. See http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro . [CODE] {{velocity}} $xwiki.ssfx.use(/portal/site/css/estilo.css) {{/velocity}} {{html}} change this to {{html wiki=true}} !--inicio menu-- div id=menu ul li {{html clean=false}} drop this [[IntroduccionMain.Introduccion]] {{/html}} drop this too. and make sure you escape any XWiki 2.0 special symbols that you don't want to be interpreted. See http://platform.xwiki.org/xwiki/bin/view/Main/XWikiSyntax#HEscapes Hope this helps, Marius /li li # Guía Rápida /li li # Objetivos /li li # Descripción /li li # Noticias /li li # RSS /li /ul /div div id=contenido div id=columleft div id=imgport h2MADES (Marco de Desarrollo y Mantenimiento de Aplicaciones)/h2 pes una referencia para los actores implicados en el desarrollo de aplicaciones software en el ámbito de la Consejería de Sanidad y Dependencia de la Junta de Extremadura. Ofrece un punto de partida para el uso de tecnologías probadas bajo directrices que marcan criterios de calidad y homogeneización en los desarrollos y proponiendo un marco metodológico en la operativa de los proyectos./p p class=right # leer más /p /div div id=accesosport div class=cajaacceso1 h3Arquitectura MADES/h3 h4Marco Tecnológico/h4 ul li # Infraestructura /li li # Librerías /li li # Área de entrega /li li # Criterios de Desarrollo /li /ul /div div class=cajaacceso2 h3Políticas y procedimientos/h3 h4Marco Metodológico/h4 ul li # Metodología /li li # Plantillas de documentación /li li # Material de referencia /li /ul /div /div /div div id=columright div id=zonadescarga h3Zona de descargas/h3 ul li class=vin1 # Entorno de Desarrollo /li li class=vin1 # Plantillas de Documentación /li li class=vin1 # Manuales /li li class=vin1 # Ejemplos /li li class=vin1 # Guía rápida a MADES /li li class=vin2 # Proyecto Piloto ulli # Repositorio de Código Fuente /li/ul /li li class=vin1 # Bibliografía /li li class=vin1 # Herramienta de Verificación /li li class=vin1 # Actualización de reglas /li /ul /div div id=gestionproyecto h3Gestión de Proyectos/h3 div class=centrar div class=formulario form method=post action=#br / label for=usuario title=usuarioUsuario/label input id=usuario value=usuario size=12 br/ label for=login title=loginLogin/label input id=login value=login size=12 input type=submit name=Enviar id=Enviar value=Enviar class=boton alt=Enviar title= Enviar br / /form /div /div /div /div /div !--INICIO PIE PÁGINA-- div id=piep(c) Junta de Extremadura 2009/p/div {{/html}} [/CODE] Why don't you use wiki syntax instead of html ? It would be much easier IMO The main reason is that i m part of the team, design team has make the html and css files, so i have to integrate it into xwiki. Could you help me a bit more? regards ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- View this message in context: http://n2.nabble.com/Problem-creating-a-link-to-a-page-with-custom-css-NEWBEE-tp4174746p4180243.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem creating a link to a page with custom css. NEWBEE
On 12/17/2009 08:46 AM, AlonsoIR wrote: * by default {{html}} is supposed to contains valid html,li never closed is not valid, if you want to startli in an html block and close it in another html block you have to use {{html clean=false}} (i guess that's your main issue here) If i put this into the code, dont work, now it renders like plain text instead of a link. [CODE] {{velocity}} $xwiki.ssfx.use(/portal/site/css/estilo.css) {{/velocity}} {{html}} !--inicio menu-- div id=menu ul li {{html clean=false}} [[IntroduccionMain.Introduccion]] {{/html}} The idea was to replace the {{html}} from the start with {{html clean=false}}, not to add another {{html macro inside the document. And it will still fail because by default the {{html}} macro doesn't further parse the wiki syntax, you would have to use {{html wiki=true}}. So, combining the two parameters, you'd need something like this: {{velocity}} $xwiki.ssfx.use(/portal/site/css/estilo.css) {{/velocity}} {{html wiki=true clean=false}} !--inicio menu-- div id=menu ul li [[IntroduccionMain.Introduccion]] ... -- Sergiu Dumitriu http://purl.org/net/sergiu/ ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem creating a link to a page with custom css. NEWBEE
There is several issues in your content: * all you put in your page content will ends up inside a div unless you are specifically using ?xpage=plain so you cant use body here * by default {{html}} is supposed to contains valid html, li never closed is not valid, if you want to start li in an html block and close it in another html block you have to use {{html clean=false}} (i guess that's your main issue here) Why don't you use wiki syntax instead of html ? It would be much easier IMO 2009/12/16 AlonsoIR alons...@gmail.com: hi everybody, i have a problem creating links to an internal page in a page created with html and css. this is the code of the page: {{velocity}} $xwiki.ssfx.use(/portal/site/css/estilo.css) {{/velocity}} {{html}} body !--inicio menu-- div id=menu ul li {{/html}} IF I DO THIS, THE layout GONE HELL [[IntroduccionMain.Introduccion]] {{html}} # Introducción /li li # Guía Rápida /li li # Objetivos /li li # Descripción /li li # Noticias /li li # RSS /li /ul /div div id=contenido div id=columleft div id=imgport h2MADES (Marco de Desarrollo y Mantenimiento de Aplicaciones)/h2 pes una referencia para los actores implicados en el desarrollo de aplicaciones software en el ámbito de la Consejería de Sanidad y Dependencia de la Junta de Extremadura. Ofrece un punto de partida para el uso de tecnologías probadas bajo directrices que marcan criterios de calidad y homogeneización en los desarrollos y proponiendo un marco metodológico en la operativa de los proyectos./p p class=right # leer más /p /div div id=accesosport div class=cajaacceso1 h3Arquitectura MADES/h3 h4Marco Tecnológico/h4 ul li # Infraestructura /li li # Librerías /li li # Área de entrega /li li # Criterios de Desarrollo /li /ul /div div class=cajaacceso2 h3Políticas y procedimientos/h3 h4Marco Metodológico/h4 ul li # Metodología /li li # Plantillas de documentación /li li # Material de referencia /li /ul /div /div /div div id=columright div id=zonadescarga h3Zona de descargas/h3 ul li class=vin1 # Entorno de Desarrollo /li li class=vin1 # Plantillas de Documentación /li li class=vin1 # Manuales /li li class=vin1 # Ejemplos /li li class=vin1 # Guía rápida a MADES /li li class=vin2 # Proyecto Piloto ulli # Repositorio de Código Fuente /li/ul /li li class=vin1 # Bibliografía /li li class=vin1 # Herramienta de Verificación /li li class=vin1 # Actualización de reglas /li /ul /div div id=gestionproyecto h3Gestión de Proyectos/h3 div class=centrar div class=formulario form method=post action=#br / label for=usuario title=usuarioUsuario/label input id=usuario value=usuario size=12 br/ label for=login title=loginLogin/label input id=login value=login size=12 input type=submit name=Enviar id=Enviar value=Enviar class=boton alt=Enviar title= Enviar br / /form /div /div /div /div /div !--INICIO PIE PÁGINA-- div id=piep(c) Junta de Extremadura 2009/p/div /body {{/html}} -- View this message in context: http://n2.nabble.com/Problem-creating-a-link-to-a-page-with-custom-css-NEWBEE-tp4174746p4174746.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users -- Thomas Mortagne ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Re: [xwiki-users] Problem creating a link to a page with custom css. NEWBEE
Hi Mr Mortagne, thx for reply. There is several issues in your content: * all you put in your page content will ends up inside a div unless you are specifically using ?xpage=plain so you cant use body here Ok, body tags wipe out! * by default {{html}} is supposed to contains valid html, li never closed is not valid, if you want to start li in an html block and close it in another html block you have to use {{html clean=false}} (i guess that's your main issue here) If i put this into the code, dont work, now it renders like plain text instead of a link. [CODE] {{velocity}} $xwiki.ssfx.use(/portal/site/css/estilo.css) {{/velocity}} {{html}} !--inicio menu-- div id=menu ul li {{html clean=false}} [[IntroduccionMain.Introduccion]] {{/html}} /li li # Guía Rápida /li li # Objetivos /li li # Descripción /li li # Noticias /li li # RSS /li /ul /div div id=contenido div id=columleft div id=imgport h2MADES (Marco de Desarrollo y Mantenimiento de Aplicaciones)/h2 pes una referencia para los actores implicados en el desarrollo de aplicaciones software en el ámbito de la Consejería de Sanidad y Dependencia de la Junta de Extremadura. Ofrece un punto de partida para el uso de tecnologías probadas bajo directrices que marcan criterios de calidad y homogeneización en los desarrollos y proponiendo un marco metodológico en la operativa de los proyectos./p p class=right # leer más /p /div div id=accesosport div class=cajaacceso1 h3Arquitectura MADES/h3 h4Marco Tecnológico/h4 ul li # Infraestructura /li li # Librerías /li li # Área de entrega /li li # Criterios de Desarrollo /li /ul /div div class=cajaacceso2 h3Políticas y procedimientos/h3 h4Marco Metodológico/h4 ul li # Metodología /li li # Plantillas de documentación /li li # Material de referencia /li /ul /div /div /div div id=columright div id=zonadescarga h3Zona de descargas/h3 ul li class=vin1 # Entorno de Desarrollo /li li class=vin1 # Plantillas de Documentación /li li class=vin1 # Manuales /li li class=vin1 # Ejemplos /li li class=vin1 # Guía rápida a MADES /li li class=vin2 # Proyecto Piloto ulli # Repositorio de Código Fuente /li/ul /li li class=vin1 # Bibliografía /li li class=vin1 # Herramienta de Verificación /li li class=vin1 # Actualización de reglas /li /ul /div div id=gestionproyecto h3Gestión de Proyectos/h3 div class=centrar div class=formulario form method=post action=#br / label for=usuario title=usuarioUsuario/label input id=usuario value=usuario size=12 br/ label for=login title=loginLogin/label input id=login value=login size=12 input type=submit name=Enviar id=Enviar value=Enviar class=boton alt=Enviar title= Enviar br / /form /div /div /div /div /div !--INICIO PIE PÁGINA-- div id=piep(c) Junta de Extremadura 2009/p/div {{/html}} [/CODE] Why don't you use wiki syntax instead of html ? It would be much easier IMO The main reason is that i m part of the team, design team has make the html and css files, so i have to integrate it into xwiki. Could you help me a bit more? regards -- View this message in context: http://n2.nabble.com/Problem-creating-a-link-to-a-page-with-custom-css-NEWBEE-tp4174746p4180066.html Sent from the XWiki- Users mailing list archive at Nabble.com. ___ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users