Jump to content
Sign in to follow this  
chippy

Feature Settings, enable / disable individually?

Recommended Posts

chippy

I want to be able to define the contents of a feature, but have a check box on that sets display to users equal to true/false. In other words I want to be able to enable/disable a particular feature while being able to keep the content of the feature in place and defined. Think of it as having a feature marked as "draft" until such time as I'm happy with it and want to publish it. I'm more than happy to customize the php files/functions, if someone can point in the right direction. I've already tweaked the theme to add support for TimThumb.php, etc..

Share this post


Link to post
Share on other sites
jnoh

This is definitely possible. You'll want to edit the "includes/pro/template_feature.php" file: Replace:

<?php if(!empty($feature['text']) || !empty($feature['media'])):?>
with:
<?php if(!empty($feature['name'])):?>

That should set it so that any Feature Panels with the "Feature Name (optional)" Field left blank won't be displayed.

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  

×