Jump to content
Sign in to follow this  
halifax_college

Stop the default features/boxes from reappearing when deleted

Recommended Posts

halifax_college

Basically everytime I delete a feature (I seem to remember this happening with boxes when I tested before) they're recreated. Workaround solution is to to add a filter which "unsets" the default features when ppro requests them:

	// platformbase functions.php
	add_filter('pagelines_default_features', 'base_delete_defaults');
	add_filter('pagelines_default_boxes', 'base_delete_defaults');
	
	function base_delete_defaults()
	{
		return array();
	}
	
Make sure you place this before
	
		/* Hello! First, lets load the PageLines core so we have access to the functions */
		require_once(TEMPLATEPATH . "/core/core.init.php");
	

Although it'd be nice if it just didn't do this by default :)

Share this post


Link to post
Share on other sites
domirous

Hello, I have the same problem and I thank you for your solution to resolve that.. Where I put this code? Into the "custom code" panel? Thanks Dominique

Share this post


Link to post
Share on other sites
cmunns

Dominique you place in the PlatformBase functions.php file.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×