Skip to content

Commit b97a88a

Browse files
committed
override lists of social networks and instant messengers by adding params to your settings file :P
1 parent 9faec9c commit b97a88a

File tree

3 files changed

+469
-419
lines changed

3 files changed

+469
-419
lines changed

README.markdown

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,47 @@ For Django-elsewhere, the online profiles have been divided into three categorie
7272
You can create and edit these either in the Django admin or using Django forms.
7373

7474

75+
Using a different list of profiles:
76+
------------------------
77+
78+
You can define your own list of available social networks and instant messengers by adding SOCIAL_NETWORKS
79+
and/or INSTANT_MESSENGERS lists to your settings:
80+
81+
SOCIAL_NETWORKS = [
82+
{
83+
'id': 'facebook',
84+
'name': 'Facebook',
85+
'url': 'http://www.facebook.com/profile.php?id=%s',
86+
'itentifier': 'User ID',
87+
'icon': 'facebook.png',
88+
},
89+
{
90+
'id': 'myspace',
91+
'name': 'MySpace',
92+
'url': 'http://www.myspace.com/%s',
93+
'itentifier': 'Username',
94+
'icon': 'myspace.png',
95+
},
96+
]
97+
98+
INSTANT_MESSENGERS = [
99+
{
100+
'id': 'aim',
101+
'name': 'AIM',
102+
'url': 'aim:goim?screenname=%s',
103+
'icon': 'aim.png',
104+
},
105+
{
106+
'id': 'yahoo',
107+
'name': 'Y!',
108+
'url': 'ymsgr:sendim?%s',
109+
'icon': 'yahoo.png',
110+
},
111+
]
112+
113+
If no SOCIAL_NETWORKS or INSTANT_MESSENGERS are defined in your project settings, django-elsewhere will
114+
default to using the lists in fatty_lists.py.
115+
75116
Other resources:
76117
----------------
77118

0 commit comments

Comments
 (0)