Mostrando las entradas con la etiqueta plone. Mostrar todas las entradas
Mostrando las entradas con la etiqueta plone. Mostrar todas las entradas

An alternative way to detect the Plone front page

viernes, abril 10, 2009 by , under ,

First, I tried this example:
http://plone.org/documentation/how-to/change-the-logo-on-for-the-front-page-only

It works .. almost. It also shows the logo in other contex like @@dashboard, which was something I did not wanted to happen. So I started looking for another way until I found a clue on the select_default_page.cpt

So I tried this instead:

<div tal:define="is_ATDocument python: test(context.meta_type=='ATDocument',1, 0);
parent python:context.getParentNode()"
tal:condition="is_ATDocument">

<p id="uno"
tal:define="is_default_page python: test(parent.getDefaultPage() == context.getId(),1,0);"
tal:condition="is_default_page">This is the default Page (index_html on Plone less than 3.0)</p>
</div>


The div will be rendered only when the context is an ATDocument, then it's contents will be rendered only if the document is the default page.

Any comments?
It seems to me it is working.

Moving an old-style product to Plone 3

jueves, marzo 05, 2009 by , under , , , ,

The author of this presentation will "port" an old-style product to egg with generic setup slots. Note that the author compares the python code used for the registration of the product with the new xml files used for the same purpose; very interesting.

Incredibly useful article about gedit for web developers

miércoles, febrero 25, 2009 by , under , , , ,

http://www.micahcarrick.com/09-29-2007/gedit-html-editor.html

Plone test_rendering template

by , under , , , ,

Customizing Plone look and feel?
Do not miss the test_rendering template that comes bundled with Plone. How do I get it?

Suppose you have your plone instance running at localhost:8080 and the Plone site name is juanito, then goto:

http://localhost:8080/juanito/test_rendering

Nice isn't it?