Permalink
Browse files

take advantage of the Help extension

  • Loading branch information...
1 parent 0047b21 commit 7b0a130f97c9f09e899772d0234e700cbdbb548b @saturnflyer saturnflyer committed Oct 23, 2008
Showing with 19 additions and 1 deletion.
  1. +9 −0 HELP_admin.md
  2. +3 −1 README
  3. +3 −0 app/views/admin/help/_twitter.html.haml
  4. +4 −0 twitter_extension.rb
View
@@ -0,0 +1,9 @@
+You can have updates to your site automatically send details to your
+Twitter account. All you'll need to do is provide your account information
+in the Radiant::Config settings.
+
+The required keys are `twitter.password`, `twitter.username` and `twitter.url_host`.
+
+On the edit screen of each page, you can select the option to notify Twitter
+of all of the updates to the children of that page. You can create a blog page,
+for example, and have each new post linked in your Twitter account.
View
4 README
@@ -1,3 +1,5 @@
= Twitter
-Description goes here
+Send updates to your Twitter account.
+
+See HELP_admin.md
@@ -0,0 +1,3 @@
+%h4 Twitter
+%p You may notify Twitter of newly published child pages of any given page. You might use this to provide updates about your blog to friends of yours on Twitter.
+%p Be sure to set the details in your configuration settings. If you're unsure about that, see your site administrator.
View
@@ -17,5 +17,9 @@ def activate
end
admin.page.edit.add :extended_metadata, "twitter"
Page.class_eval { include TwitterNotification }
+
+ if admin.respond_to?(:help)
+ admin.help.index.add :page_details, 'twitter'
+ end
end
end

0 comments on commit 7b0a130

Please sign in to comment.