GithubHelp home page GithubHelp logo

cakephp-sociallinks's Introduction

SocialLinks Plugin

Add fields to a model for storing Social Links, eg. Blog, Facebook, Twitter, etc.

##Background##

Currently has a behavior to add the fields along with validation to the model

Requirements

  • PHP 5.3+
  • CakePHP 2.1+

##Installation##

[Manual]

[GIT Submodule]

In your app directory type:

git submodule add git://github.com/loadsys/CakePHP-SocialLinks.git Plugin/SocialLinks
git submodule init
git submodule update

[GIT Clone]

In your Plugin directory type

git clone git://github.com/loadsys/CakePHP-SocialLinks.git SocialLinks

Usage

  • Add The Plugin to your application by adding this line to your bootstrap.php
CakePlugin::load('SocialLinks');
  • Add Behavior to the Model, each parameter is the database field name, or FALSE to not include that field

public $actsAs = array(
	'SocialLinks.SocialLinks' => array(
		'blog' => 'blog',
		'pinterest' => FALSE,
		'googleplus' => 'googleplus',
		'youtube' => 'youtube',
		'linkedin' => 'linkedin',
		'facebook' => 'facebook',
		'twitter' => 'twitter',
	),
);


## Options ##

* blog : blog field name in the database, or FALSE if you don't have this field
* pinterest : pinterest field name in the database, or FALSE if you don't have this field
* googleplus : googleplus field name in the database, or FALSE if you don't have this field
* youtube : youtube field name in the database, or FALSE if you don't have this field
* linkedin : linkedin field name in the database, or FALSE if you don't have this field
* facebook : facebook field name in the database, or FALSE if you don't have this field
* twitter : twitter field name in the database, or FALSE if you don't have this field

## Todo ##

* Unit Tests

cakephp-sociallinks's People

Contributors

justinyost avatar leeforkenbrock avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.