Jump to content


Photo
- - - - -

Overriding Section Templates


  • Please log in to reply
2 replies to this topic

#1 glevine

glevine

    Member

  • Members
  • PipPip
  • 12 posts

Posted 15 March 2011 - 08:31 PM

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!

#2 glevine

glevine

    Member

  • Members
  • PipPip
  • 12 posts

Posted 15 March 2011 - 08:41 PM

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.**

#3 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 16 March 2011 - 02:21 AM

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