From b76613f7b99c5d5b4b80554f001f25d7467bbc30 Mon Sep 17 00:00:00 2001 From: Miguel-F Date: Wed, 18 Jan 2017 12:01:49 -0500 Subject: [PATCH] Cleanup and consistency changes If you are interested in these changes, I am using your plugin with Mura 6.2 and found that the protocol and http_host are not needed when you call the getImageURL() Mura method. It returns the entire URL for you already. I don't know if this is different behavior from previous versions of Mura or not. While I was modifying this file I also noticed some inconsistencies on when new lines #NL# were being added to the end of the tags. They were not being added in all cases. I also noticed that it was calling the getValue() method in some cases but specific get{attribute_name} in others. I changed the getValue() calls to use the get{attribute_name} methods instead. I changed the $.content() method calls for the summary and body content to use the $.setDynamicContent() method instead. That way any [Mura] tags embedded in the content will be processed. Don't know if you intentionally were not using this method for some reason? Just FYI if you want these changes or not. --- eventHandlers/muraMeta.cfc | 62 +++++++++++++++++--------------------- 1 file changed, 27 insertions(+), 35 deletions(-) diff --git a/eventHandlers/muraMeta.cfc b/eventHandlers/muraMeta.cfc index f195dd3..379100d 100755 --- a/eventHandlers/muraMeta.cfc +++ b/eventHandlers/muraMeta.cfc @@ -15,39 +15,35 @@ - - - - - + - - - - + + + + - + - #NL#'> + #NL#'> - + - + - + - #NL#'> + #NL#'> - + @@ -60,29 +56,25 @@ - - - - - - - - - + + + + + - + - + @@ -90,7 +82,7 @@ - + @@ -106,17 +98,17 @@ - + - - - - + + + + - + - +