<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>iuttu &#187; ezpublish</title> <atom:link href="http://www.iuttu.com/tag/ezpublish/feed/" rel="self" type="application/rss+xml" /><link>http://www.iuttu.com</link> <description>Desarrollo web</description> <lastBuildDate>Mon, 23 Jan 2012 16:52:04 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Crear tu template en EZPublish</title><link>http://www.iuttu.com/2009/02/empezar-tu-template-en-ezpublish/</link> <comments>http://www.iuttu.com/2009/02/empezar-tu-template-en-ezpublish/#comments</comments> <pubDate>Thu, 26 Feb 2009 20:56:58 +0000</pubDate> <dc:creator>iuttu</dc:creator> <category><![CDATA[Programación]]></category> <category><![CDATA[ezpublish]]></category> <category><![CDATA[templates]]></category> <guid
isPermaLink="false">http://iuttu.com.mialias.net/blog/?p=144</guid> <description><![CDATA[EZ Publish es un CMS muy potente que permite la creación de todo tipos de sites. Después de un par de intentos de jugar con él, de leer cientos de páginas de documentación, hemos conseguido comenzar a trabajar con los templates, creando uno propio para sobreescribir el que viene por defecto. Para conseguirlo hay que [...]]]></description> <content:encoded><![CDATA[<p><a
style="text-decoration: none;" href="http://en.wikipedia.org/wiki/EZ_Publish" target="_blank"><strong>EZ Publish</strong></a> es un <a
title="CMS" href="http://en.wikipedia.org/wiki/Content_management_system">CMS</a> muy potente que permite la creación de todo tipos de sites. Después de un par de intentos de jugar con él, de leer cientos de páginas de documentación, hemos conseguido comenzar a trabajar con los templates, creando uno propio para sobreescribir el que viene por defecto. Para conseguirlo hay que seguir los siguientes pasos:</p><p>- Crear una carpeta con el nombre del template que quieras dentro de la carpeta <span
style="color: #ff0000;"><strong>/design</strong></span>, en nuestro caso la hemos llamado <span
style="color: #3366ff;"><strong>iuttu</strong></span> (je je), dentro de esta carpeta hay que crear una carpeta <span
style="color: #ff6600;"><strong>templates</strong></span> y dentro poner la plantilla que queramos sobreescribir (lo ideal es empezar con <strong>pagelayout.tpl</strong>). La estructura de carpetas nos ha quedado así:</p><pre style="display: block; margin: 10px 0px; clear: both">- <strong><span style="color: #ff0000;">design</span></strong>
  - admin
  - base
  - <strong><span style="color: #3366ff;">iuttu</span></strong>
    - <strong><span style="color: #ff6600;">templates</span></strong>
      - <strong>pagelayout.tpl</strong>
    - plain_site</pre><p>- Ahora sólo nos queda decirle al sistema que al buscar los archivos de templates busque primero en los que haya en la carpeta <strong><span
style="color: #3366ff;">iuttu</span></strong>, y luego mire en el sistema (EZ trabaja así). Para lo que tendremos que editar el archivo <strong>/settings/siteaccess/plain_site/site.ini.append.php, </strong>y donde define los &#8220;diseños&#8221; del site:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
</pre></td><td
class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>DesignSettings<span style="">&#93;</span></span>
<span style="color: #000099;">SiteDesign</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">plain_site</span>
AdditionalSiteDesignList<span style="">&#91;</span><span style="">&#93;</span><span style="color: #000066; font-weight:bold;">=</span>base</pre></td></tr></table></div><p>añadimos el nuestro:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>DesignSettings<span style="">&#93;</span></span>
<span style="color: #000099;">SiteDesign</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">iuttu</span>
AdditionalSiteDesignList<span style="">&#91;</span><span style="">&#93;</span><span style="color: #000066; font-weight:bold;">=</span>plain_site
AdditionalSiteDesignList<span style="">&#91;</span><span style="">&#93;</span><span style="color: #000066; font-weight:bold;">=</span>base</pre></td></tr></table></div><p>Y ya tendremos todo preparado para empezar a trabajarnos la parte de diseño de EZpublish.</p> ]]></content:encoded> <wfw:commentRss>http://www.iuttu.com/2009/02/empezar-tu-template-en-ezpublish/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 7/16 queries in 0.017 seconds using disk: basic

Served from: www.iuttu.com @ 2012-02-06 14:55:12 -->
