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.
You can add settings to the admin panel by running the following SQL command. I'll use a twitter URL setting as an example.
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-
$this->globals('core_settings.cms.twitter');
Similar logic can be used for facebook, youtube, etc.
Offline