Creating theme configuration options
Hi, I would like to add a few options in my Drupal theme that can be configured by the administraor such as twitter username, rss feed url and email subscripotion form code and so on. I understand configuraiton of a theme is done under Themes > Configure [next to the theme]. How do I add my own fields to that page for configuring the theme? Thanks in advance, Raj Sekharan
wait, what? Why would you add that to a theme? Seems like that should go in a module. ----- Cameron Eagans Owner, Black Storms Studios, LLC http://www.blackstormsstudios.com On Wed, Aug 26, 2009 at 6:26 PM, rajasekharan <websweetweb@gmail.com> wrote:
Hi,
I would like to add a few options in my Drupal theme that can be configured by the administraor such as twitter username, rss feed url and email subscripotion form code and so on. I understand configuraiton of a theme is done under Themes > Configure [next to the theme]. How do I add my own fields to that page for configuring the theme?
Thanks in advance,
Raj Sekharan
Thanks everyone for the response. Cameron Eagans wrote:
wait, what?
Why would you add that to a theme? Seems like that should go in a module. I wanted the user not have to go through the trouble of downloading, installing and configuring a separate module for this. I am going to theme the Sydnicate block (theme_feed_icon) and place all these three options in it.
you need theme settings: http://drupal.org/node/177868 On Thu, Aug 27, 2009 at 4:29 PM, rajasekharan <websweetweb@gmail.com> wrote:
Thanks everyone for the response.
Cameron Eagans wrote:
wait, what?
Why would you add that to a theme? Seems like that should go in a module.
I wanted the user not have to go through the trouble of downloading, installing and configuring a separate module for this. I am going to theme the Sydnicate block (theme_feed_icon) and place all these three options in it.
-- Daniel Honrade, Jr. mobile: +63 915 903 3561 alternate email: danielhonrade@gmail.com websites: http://danielhonrade.com http://webtheming.com When you signup for PayPal, you can start accepting credit card payments instantly. As the world's number one online payment service, PayPal is the fastest way to open your doors to over 150 million member accounts worldwide. Best of all, it's completely free to sign up! To sign up or learn more, click here: https://www.paypal.com/ph/mrb/pal=GE47NYP4D94XA
http://drupal.org/node/177868 Jamie Holly http://www.intoxination.net http://www.hollyit.net rajasekharan wrote:
Hi,
I would like to add a few options in my Drupal theme that can be configured by the administraor such as twitter username, rss feed url and email subscripotion form code and so on. I understand configuraiton of a theme is done under Themes > Configure [next to the theme]. How do I add my own fields to that page for configuring the theme?
Thanks in advance,
Raj Sekharan
For questions like this, you will have better luck with support@drupal.org or on the #drupal-support IRC chat channel. Meanwhile, look at Twitter module http://drupal.org/project/twitter for the Twitter thing, and URL Aliases (in Drupal core) to make custom aliases or http://drupal.org/project/pathautho to set up an automatic aliasing algorithm for URLs. Email subscriptions can mean lots of things. Look at messaging, notifications, etc. to see what applies. Laura On Aug 26, 2009, at Wed 8/26/09 6:26pm, rajasekharan wrote:
Hi,
I would like to add a few options in my Drupal theme that can be configured by the administraor such as twitter username, rss feed url and email subscripotion form code and so on. I understand configuraiton of a theme is done under Themes > Configure [next to the theme]. How do I add my own fields to that page for configuring the theme?
Thanks in advance,
Raj Sekharan
This page in the Theming Guide section of the Handbook on drupal.org explains how to add configuration options to a theme: http://drupal.org/node/221905 --Jennifer rajasekharan wrote:
I would like to add a few options in my Drupal theme that can be configured by the administraor such as twitter username, rss feed url and email subscripotion form code and so on. I understand configuraiton of a theme is done under Themes > Configure [next to the theme]. How do I add my own fields to that page for configuring the theme?
-- Jennifer Hodgdon * Poplar ProductivityWare www.poplarware.com Drupal, WordPress, and custom Web programming
participants (6)
-
Cameron Eagans -
Daniel Honrade -
Jamie Holly -
Jennifer Hodgdon -
Laura -
rajasekharan