[Plugin: NextGEN Gallery] select default template
-
I want Nextgen gallery to use a different default template, in my case the carousel template.
I cannot use the code you normally used in a post (like [ nggallery id=2 template=carousel ]), because I created some code in my template that selects the gallery depending on a value from a custom field in a page.
For now, I’ve adapted nggfunctions.php to select the carousel template if the code in the post doesn’t select another
(for those who are interested, add the following code directly under the “// look for gallery-$template.php or pure gallery.php” -comment (line 302 in my case):`if (!$template){
$template = ‘carousel’;
}` ).
But when I update Nextgen gallery this code will be overwritten. Does anyone knows a better alternative that will survive an update?
- The topic ‘[Plugin: NextGEN Gallery] select default template’ is closed to new replies.