Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 03-02-2011 11:00:42

KryptoJim
Member
Registered: 07-08-2010
Posts: 455

Adding settings to the admin

You can add settings to the admin panel by running the following SQL command.  I'll use a twitter URL setting as an example.

Code:

INSERT INTO `core_settings` (`id`, `name`, `app`, `section`, `displaytype`, `displaydata`, `required`, `value`, `description`) VALUES ('cms.twitter', 'Twitter Username', 'cms', 'Social Media Settings', 'TEXTBOX-REG', '', 1, '', 'Enter your twitter ID.  This will be used to pull data feed directly from the twitter API onto your site.');

To call this from the skin, use the following php code-

Code:

$this->globals('core_settings.cms.twitter');

Similar logic can be used for facebook, youtube, etc.

Offline

 

Board footer