Skip to content

Commit

Permalink
issue #14 resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
stevewithington committed Aug 30, 2014
1 parent d857690 commit fd2f066
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
14 changes: 9 additions & 5 deletions cfc/EventHandler.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ component extends="mura.plugin.pluginGenericEventHandler" accessors=true output=
var local = {};
set$(arguments.$);
local.isMobile = getIsMobile();
local.body = get$().setDynamicContent($.content('body'));
local.image = get$().getURLForImage(
fileid = get$().content('fileid')
, size = 'small'
Expand Down Expand Up @@ -179,7 +178,12 @@ component extends="mura.plugin.pluginGenericEventHandler" accessors=true output=
public any function onFolderMuraLocationsMapBodyRender(required struct $) output=false {
var local = {};
set$(arguments.$);
local.body = get$().setDynamicContent(get$().content('body'));
local.body = get$().renderEditableAttribute(
attribute='body'
, type='HTMLEditor'
, label='Content'
, enableMuraTag=true
);
return local.body & dspLocationsMap(
mapType = get$().content('mapType')
, displayDirections = get$().content('displayDirections')
Expand Down Expand Up @@ -501,20 +505,20 @@ component extends="mura.plugin.pluginGenericEventHandler" accessors=true output=
local.fBean.setNextN(10000); // max locations to display
local.fBean.setShowNavOnly(true); // set to false to include content even if it's not in the navigation

// If we're on a Folder (formerly Portal): Mura/Location, then check to see if we only want to display children of this Folder...otherwise, we'll include all locations.
// If we're on a Folder (formerly Portal): Folder/MuraLocationMap, then check to see if we only want to display children of this Folder...otherwise, we'll include all locations.
if (
ListFindNoCase('Portal,Folder', local.cBean.getValue('type'))
&& ListFindNoCase('MuraLocation,MuraLocationsMap', local.cBean.getValue('subtype'))
&& YesNoFormat(local.cBean.getValue('showChildrenOnly'))
) {
local.fBean.addAdvancedParam(
local.fBean.addParam(
relationship='AND'
, field='tcontent.parentid'
, condition='EQ'
, criteria=local.cBean.getValue('contentid')
);
} else if ( Len(arguments.contentid) ) {
local.fBean.addAdvancedParam(
local.fBean.addParam(
relationship='AND'
, field='tcontent.path'
, condition='CONTAINS'
Expand Down
7 changes: 6 additions & 1 deletion cfc/includes/muraLocationBody.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ local.$.loadShadowboxJS(); // for primary image
</cfif>

<!--- Content --->
#local.body#
#local.$.renderEditableAttribute(
attribute='body'
, type='HTMLEditor'
, label='Content'
, enableMuraTag=true
)#

<!--- Location Info --->
<!--- <div class="locationInfoWrapper">
Expand Down
2 changes: 1 addition & 1 deletion plugin/config.xml.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<name>MuraLocations</name>
<package>MuraLocations</package>
<directoryFormat>packageOnly</directoryFormat>
<version>3.1.1</version>
<version>3.2</version>
<provider>Steve Withington</provider>
<providerURL>http://stephenwithington.com</providerURL>
<category>Application</category>
Expand Down

0 comments on commit fd2f066

Please sign in to comment.