Jump to content
Sign in to follow this  
glevine

Overriding Section Templates

Recommended Posts

glevine

I am using PlatformBase 1.3.1 on top of PlatformPro 1.2.3. I wanted to have the ability to pull all images from a NextGen album to use in a carousel, instead of being limited to only one gallery. So I set out to override PageLinesCarousel and extend its behavior. I know that it works because I've tested it by hard-coding a few variables, but now I want to extend control to the admin interface so that it is more customizable. However, it seems that I can't simply add fields to the section_options method. So how do I go about doing this? Thanks!

Share this post


Link to post
Share on other sites
glevine

And I actually mis-spoke, but also solved the problem. I realized that I needed to register the new section in functions.php. But that led to an issue where I was redeclaring the class PageLinesCarousel. So I had to rename the new section class (BaseCarousel). **Just in case anyone else runs into these same issues.**

Share this post


Link to post
Share on other sites
bryan-hadaway

Excellent Greg, got your first karma point for sharing. Thanks, Bryan

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  

×