Skip to content. Skip to navigation

ICTP Portal

Sections
You are here: Home notes on site structure and other plone tricks plone-tricks appunti_utili_plone.txt
Personal tools
Document Actions

appunti_utili_plone.txt

URL/Title il titolo
URL/Description la descrizione
URL/EditableBody il testo (non elaborato)
URL/effective effective date
URL/title_or_id titolo o id
URL/getId l'id della pagina
URL/getPhysicalPath una tupla con il path

Fantastico::

import urllib
x=urllib.urlopen('http://localhost:8081/portal/front-page/getPhysicalPath')
a=x.read()
print a
('', 'portal', 'front-page')
exec('aa='+a)
aaa="/".join(aa)
print aaa
/portal/front-page

Nota che getPhysicalPath e' sempre il solito anche se si accede alla pagina saltellando qua e la:

http://localhost/portal/pio/portal/front-page


Powered by Plone This site conforms to the following standards: