From 46e7bcf40d59d558472a1cfdc2869fb8a66a8951 Mon Sep 17 00:00:00 2001 From: Ian Date: Mon, 12 Nov 2012 12:10:50 +0100 Subject: [PATCH] trying to upport garvins entryproperty commit d4d24c4c315981fd816b16417fe2d1c21cf1d750 and 5a33a7c8d04e6d763b4d478a0b4af37e9d30614e Sorry I missed that this commit wasn't upported to 2.0, before I tried to cherry pick my tiny fix. Now this had to be done manually. --- docs/NEWS | 2 ++ plugins/serendipity_event_entryproperties/lang_en.inc.php | 1 + 2 files changed, 3 insertions(+) diff --git a/docs/NEWS b/docs/NEWS index 2596c731..069b960b 100644 --- a/docs/NEWS +++ b/docs/NEWS @@ -8,6 +8,8 @@ Version 2.0 () Version 1.7 () ------------------------------------------------------------------------ + * Allow entryproperties plugin to define defaults for custom fields + * Onyx, Net_URL classes: Remove PHP4 style constructor due to PHP5 error "Constructor already defined" diff --git a/plugins/serendipity_event_entryproperties/lang_en.inc.php b/plugins/serendipity_event_entryproperties/lang_en.inc.php index 37d6918c..e95b15c1 100644 --- a/plugins/serendipity_event_entryproperties/lang_en.inc.php +++ b/plugins/serendipity_event_entryproperties/lang_en.inc.php @@ -35,6 +35,7 @@ @define('PLUGIN_EVENT_ENTRYPROPERTIES_CUSTOMFIELDS_DESC1', 'Additional custom fields can be used in your template at places where you want them to show up. For that, edit your entries.tpl template file and place Smarty tags like {$entry.properties.ep_MyCustomField} in the HTML where you like. Note the prefix ep_ for each field. '); @define('PLUGIN_EVENT_ENTRYPROPERTIES_CUSTOMFIELDS_DESC2', 'Here you can enter a list of commaseparated field names that you can use to enter for every entry - do not use special characters or spaces for those fieldnames. Example: "Customfield1, Customfield2". ' . PLUGIN_EVENT_ENTRYPROPERTIES_CUSTOMFIELDS_DESC1); @define('PLUGIN_EVENT_ENTRYPROPERTIES_CUSTOMFIELDS_DESC3', 'The list of available custom fields can be changed in the plugin configuration.'); +@define('PLUGIN_EVENT_ENTRYPROPERTIES_CUSTOMFIELDS_DESC4', 'You can enter the default setting for each field by using "Customfield1:Default value1, Customfield2:Default value2". If you need to use the special characters ":" and "," within the default value, put an \\ backslash before them, like "Customfield1:I want\\:Coookies\\, Muffins and Sausages,Customfield2:I am satisfied". For better readability, you can put a newline in front of each custom field, if you like.'); @define('PLUGIN_EVENT_ENTRYPROPERTIES_DISABLE_MARKUP', 'Disable Markup plugins for this entry:'); @define('PLUGIN_EVENT_ENTRYPROPERTIES_EXTJOINS', 'Use extended database lookups');