Déplacement pour eggification.
[Plinn.git] / Products / Plinn / skins / custom_generic / expanded_title.py
diff --git a/Products/Plinn/skins/custom_generic/expanded_title.py b/Products/Plinn/skins/custom_generic/expanded_title.py
new file mode 100644 (file)
index 0000000..65827f8
--- /dev/null
@@ -0,0 +1,11 @@
+## Script (Python) "expanded_title"
+##parameters=
+##title=Build title which includes site title
+##
+site_title = context.portal_url.getPortalObject().title_or_id()
+page_title = context.Title() or context.getId()
+
+if page_title != site_title:
+       page_title = site_title + " : " + page_title
+
+return page_title