Can someone provide sub-theme directions specific to OpenPublish? I'm getting nowhere trying to create a subtheme of the openpublish_theme. I keep getting this error:
Fatal error: Call to undefined function related_terms_links() in sites/all/modules/openpublish_core/theme_helpers/node-article.tpl.inc on line 54
I created a folder for my sub-theme, along with an .info file with the following contents:
name = "indy"
description = "subtheme of openpublish for independent online news sites."
core = 6.x
base theme = openpublish_theme
stylesheets[all][] = indy.css
regions[left] = Left Sidebar
regions[right] = Right Sidebar
regions[over_content] = On Top of Content
regions[under_content] = Underneath the Content
regions[header] = Header
regions[footer] = Footer
For something that should be easy, this is rather frustrating. (I'd gladly pay for an openpublish theme, if one were available.)
Comments
I doubt if this error is
I doubt if this error is related to subthemeing as I got the exact same error on other instances. Try clearing the cache and updating the database. Also clear your browser cache after you clear the drupal cache.
OP is still in development stage and so there are probably many bugs. The more we use it, the more we will find bugs and the more we will be able to report. Only then the developers can fix them.
sTattler.com
Which version of OP are you
Which version of OP are you using? Are you getting that error when your parent theme is set as the default theme? Or after you clear cache after having switched to your subtheme?
I just created a subtheme with 1.7.1 and it got picked up just fine without any trouble. I had some basic CSS stuff in indy.css to test it out:
#outer-wrapper {background: red;}I'd suggest trying again with the latest build unpacked on top on your site (after you've backed up your settings.php and your DB). Once you've done that, copy your own settings.php back into sites/default, run update.php and try this again.
Using the latest version
I'm using the latest version of OP: 1.7.1. I get the error when the child theme is set as default. There are no errors when the parent theme is the default. I just tried my test installation which had my indy child theme set as the default and the theme appeared. I don't know what I did, other than the usual boot-up for the day, but whatever it was kicked something loose. Maybe now I can get some theming work done.
Glad it worked out. Also,
Glad it worked out. Also, please make sure you have the latest build of 1.7.1
Initial build had couple of errors and we updated it recently on the download page. You just need to unpack the latest build on top of your installation (backing up settings.php, files folder and anything else you may need to back up like modified theme, so you can restore those after the update)
.............................................
http://twitter.com/inadarei