When I add the following to a block listing in the settings.js file it works:

title:{
			'pages':{
				'value':['settings'],
				'mode':'exclude',
			}
		},

If I add more than one listing the exclusion doesn't work for any of the listings:

'pages':{
				'value':['settings','contact'],
				'mode':'exclude',
			}

This seems to be a bug, but not sure which part of the code deals with block visibility.

Comments

tyler.frankenstein’s picture

Status: Active » Needs work

Check out the drupalgap_render_region() and drupalgap_check_visibility() functions in includes/common.ins.js for this functionality. A few days/weeks ago an improvement was made around there for a similar problem. Be sure you have the latest 7.x-1.x-alpha version downloaded. There may still be a bug(s) with the function though.

tyler.frankenstein’s picture

Component: Mobile App Development Kit » Ripple Emulator in Chrome
Issue summary: View changes
Status: Needs work » Closed (fixed)

This feature is now fixed and available in the latest development snapshot of the SDK:

https://github.com/signalpoint/DrupalGap/archive/7.x-1.x-alpha.zip

This fix will be available in the future 7.x-1.8-alpha release of the SDK:

https://github.com/signalpoint/DrupalGap/releases

Until then, use the snapshot of the SDK for this feature.