Commit Graph

231 Commits

Author SHA1 Message Date
Carlos Barberis
a2b9e2f00c BUGFIX: using Controller::curr instead Director::get_current_page to work with 2.3 and 2.4 2009-11-18 03:00:40 +00:00
Luke Hudson
c14ff3851b Updates to blog to work with Sapphire 2.4 2009-11-11 23:11:32 +00:00
Andrew O'Neil
42beb23f42 BUGFIX: fix archive links 2009-10-29 03:15:01 +00:00
Andrew O'Neil
1af9fafdd7 BUGFIX: Fix tag links when blog is on home pages 2009-10-27 03:13:33 +00:00
Sam Minnee
9545d4f87c BUGFIX: Updated blog module to support 2.4 API changes 2009-10-26 22:03:52 +00:00
James Kirkus-Lamont
fea6a12472 MINOR: moved rss feed link to its own function to allow extensions to override 2009-10-20 23:17:35 +00:00
Andrew O'Neil
e688e0687e BUGFIX: Fix updateCMSFields() being called twice on BlogEntries 2009-10-06 03:13:00 +00:00
Sean Harvey
c920045933 ENHANCEMENT Allow BlogEntry::getCMSFields() fields to be manipulated on decorators 2009-09-24 23:10:54 +00:00
Ingo Schommer
26622686cc MINOR Added 'index' to $allowed_actions on BlogHolder, BlogTree, BlogEntry to comply to new RequestHandler API 2009-09-10 06:08:22 +00:00
Carlos Barberis
53bd0feb59 Added true in array_slice to fix problem displaying tags 2009-08-27 01:23:17 +00:00
Sean Harvey
c37785c07b BUGFIX Fixed "tag" action not allowed on BlogHolder_Controller 2009-08-06 21:59:43 +00:00
Geoff Munn
1a56611417 MINOR FIX: query changed to remove duplicate results 2009-08-05 03:38:23 +00:00
Geoff Munn
acbce1d507 MINOR FIX: instances where no SideBarID exists are now avoided 2009-08-05 02:38:32 +00:00
Sean Harvey
56be6ad6fa MINOR Fixed undefined Month in ArchiveWidget 2009-08-04 02:18:38 +00:00
Saophalkun Ponlu
1a2e2a1d98 BUGFIX: prevet calling loadDescendantBlogHolderIDListInto() on BlogPage and its subclass 2009-08-03 23:37:03 +00:00
Saophalkun Ponlu
a41cf18c23 BUGFIX: trackbackping generated an exception. getExtensionInstance returns an instance with NULL owner so TrackBackDecorator->owner->ID was always unavailable 2009-07-28 05:33:22 +00:00
Geoff Munn
af3b912749 COMMENT: in some cases, this might not be correctly triggered 2009-07-28 04:17:38 +00:00
Sean Harvey
c438757b28 BUGFIX Fixed checking for correct day, month and year values before setting the Date value in ArchiveWidget 2009-07-27 02:52:42 +00:00
Saophalkun Ponlu
67d8a8b423 Added unit test for BlogHolder_Controller's custom checkAccessAction function 2009-07-22 03:16:06 +00:00
Hamish Friedlander
6eebbb217c ENHANCEMENT: Allow configuration of the default number of entries to show on lists 2009-07-20 06:40:44 +00:00
Saophalkun Ponlu
6d0f161cf4 MINOR: Added sorting argument to callback function 2009-07-20 04:02:12 +00:00
Saophalkun Ponlu
a91d0eeb68 Applied an urgent hack to work new blog archive link (e.g 2009/05) 2009-07-20 02:29:10 +00:00
Saophalkun Ponlu
8589682b7e BUGFIX: BlogTree always got LandingPageFreshness value from its parent 2009-07-19 21:24:45 +00:00
Sean Harvey
2e58553940 BUGFIX Ensure that a BlogHolder record doesn't exist properly by checking if the record has an ID 2009-07-16 03:18:55 +00:00
Sam Minnee
076eeaa2a8 BUGFIX: Updated rss allowed_action to not use 'true' as a value because this has a bug in 2.3.2 2009-07-07 23:15:12 +00:00
Sam Minnee
d0ee014aa5 BUGFIX: Improve r81254 to fix blog/rss and subclasses of BlogHolder_Controller 2009-07-07 23:04:02 +00:00
Ingo Schommer
1e809afc65 BUGFIX Using $allowed_actions in BlogHolder, permission checks on BlogHoder_Controller->postblog() 2009-07-07 22:11:11 +00:00
Sean Harvey
f41973b838 BUGFIX If IsOwner method doesn't exist on parent object in BlogEntry::IsOwner(), don't attempt to call it 2009-07-01 04:24:42 +00:00
Sam Minnee
517df83ae2 BUGFIX: Prevent infinite loops in RSSWidget.
ENHANCEMENT: Improve the word of the RSSWidget text.
2009-06-09 00:46:38 +00:00
Julian Seidenberg
038cad9b63 BUGFIX: fixed permissions to allow non-admin user to post and manage blog entries 2009-05-27 01:26:34 +00:00
James Kirkus-Lamont
5755d3e679 BUGFIX: check if the parent of the blog holder has a method called 'SideBar' before calling it 2009-05-25 22:30:10 +00:00
Sean Harvey
b088e1ff8c MINOR Removed unused getBlogHolder() method from BlogManagementWidget.php 2009-05-21 04:16:18 +00:00
Julian Seidenberg
1b7de7e092 ENHANCEMENT: allow administators to make it possible for non-admin users to view blog management widget 2009-05-21 04:07:53 +00:00
Sean Harvey
43118ecb03 MINOR Renamed deprecated extraDBFields() function on TrackBackDecorator to extraStatics() 2009-05-20 05:37:30 +00:00
Sean Harvey
dfb9e17c2c BUGFIX Fixed call to deprecated function Form::loadNonBlankDataFrom() on BlogHolder, replacing it with Form::loadDataFrom() 2009-05-20 05:00:32 +00:00
Saophalkun Ponlu
488319ceb5 MINOR: change blog alternative name to use global project_name variable 2009-05-20 02:34:57 +00:00
Saophalkun Ponlu
61a2cc2332 MINOR: move Name field from BlogHolder to BlogTree 2009-05-20 02:18:48 +00:00
Hamish Friedlander
05cf841808 BUGFIX: Segfault on BlogTree#Sidebar calling getComponent. Fix by directly getting sidebar for now. 2009-05-15 03:46:49 +00:00
Sean Harvey
23591eec35 BUGFIX Fixed BlogTree, ArchiveWidget SQL queries to work with ANSI and non-ANSI compatible queries 2009-05-11 02:48:24 +00:00
Hamish Friedlander
58775ea256 ENHANCEMENT: Allow specifying the class buckets to assign tags into based on popularity 2009-05-06 05:02:01 +00:00
Hamish Friedlander
2d1eb07478 BUGFIX: Use parent->canAddChildren, not parent->canEdit to determine if this user can add children to parent blog holder 2009-05-06 05:01:28 +00:00
Hamish Friedlander
37a6070714 BUGFIX: Check owner with less complex logic 2009-05-06 05:00:54 +00:00
Hamish Friedlander
16c7b2d431 FEATURE: Add an additional level of blog container, called the tree. You can now use blogs in the previous manner (holder has many entries) or as a deep tree of many holders. Viewing a level up the tree will show all blog entries within that tree.
@todo:
More Tests
Better documentation
2009-04-30 22:05:54 +00:00
Andrew O'Neil
05b0992f7e MINOR: Show BlogManagementWidget if the user has permissions to post 2009-04-26 23:52:14 +00:00
Ingo Schommer
0adb9da466 ENHANCEMENT Added 'rss' suffix to BlogHolder->rss() to point back to the feed properly (was causing feed validation errors) 2009-02-25 06:55:58 +00:00
Will Rossiter
94601547af FEATURE: added userblog support. Thanks simon_w - #3463 2009-02-07 02:19:27 +00:00
Will Rossiter
058a3c393c BUGFIX: added missing semi colon 2009-01-20 04:37:44 +00:00
Will Rossiter
32f4579718 MINOR: added empty statics to blog 2009-01-20 04:01:45 +00:00
Sean Harvey
94391c22d7 BUGFIX Allow SearchForm URL action for default SS search on BlogEntry 2009-01-12 22:27:05 +00:00
Will Rossiter
3c8df2e623 MINOR: added seperate URLTag element so you can use the tag segment for something else 2008-12-18 05:26:43 +00:00
Andrew O'Neil
f636f90fae BUGFIX: Fix rss feed 2008-12-17 03:59:02 +00:00
Andrew O'Neil
4c5f0e1075 FEATURE: Allow use of tiny mce on front end 2008-12-16 22:44:55 +00:00
Andrew O'Neil
8e708d98a7 FEATURE: Enable disabling of TrackBacks 2008-12-16 22:35:32 +00:00
Andrew O'Neil
3443ff9f60 BUGFIX: SetDate doesn't need to be called, as the date is automatically set the the current time 2008-12-16 21:27:05 +00:00
Andrew O'Neil
18f2639e51 Add PageComments to allowed_actions 2008-12-16 20:37:14 +00:00
Andrew O'Neil
fe9afc2e36 #2774 - Functions in tag cloud widget out of place 2008-12-16 04:49:52 +00:00
Andrew O'Neil
2bcbb8ee7d BUGFIX: #1709 - Archive widgets shows months and years for unpublished posts 2008-12-16 04:35:28 +00:00
Andrew O'Neil
bbba843ba5 BUGFIX: Fix tag cloud 2008-12-16 04:31:06 +00:00
Andrew O'Neil
1298e15c07 BUGFIX: Fix trackbacks 2008-12-16 04:29:34 +00:00
Andrew O'Neil
e3a21012fb BUGFIX: Fix not being able to post from frontend, change posting code to be more SilverStripey 2008-12-16 04:25:35 +00:00
Sam Minnee
968b9ff467 Fixed blog RSS caching 2008-12-12 23:14:47 +00:00
Sean Harvey
d556d052c0 MINOR Removed useless $db array in SubscribeRSSWidget since it's not being used 2008-12-10 07:13:59 +00:00
Sean Harvey
475b41bbda ENHANCEMENT Use of themedCSS() in BlogEntry instead of relative paths to css files
MINOR Code cleanup on BlogEntry class
2008-12-10 07:05:18 +00:00
Sean Harvey
bf70b7e7bc MINOR phpDoc for BlogEntry
BUGFIX Unncessary use of Convert::raw2sql() in BlogEntry_Controller->unpublishPost() for making an integer SQL safe, just use (int) instead to cast it
2008-12-10 07:01:06 +00:00
Sean Harvey
3e8754e50d MINOR Tidy up of ArchiveWidget
ENHANCEMENT Use of instanceof instead of is_a() so BlogHolder and BlogEntry subclasses still work properly
2008-12-10 06:58:28 +00:00
Sean Harvey
4b6a22f6a3 ENHANCEMENT Added SubscribeRSSWidget for linking directly to blog RSS from the BlogHolder 2008-12-10 06:49:06 +00:00
Sean Harvey
dcb23d6cc3 ENHANCEMENT Addition of Date, so date can be used in the RSS feed
ENHANCEMENT Allow casting of Date and Title so can be modified in template
2008-12-10 00:58:17 +00:00
Sean Harvey
01b48e74b7 BUGFIX Fix RSS feeds in RSSWidget not working. Since SimplePie has manifest_excluse, we need to include the SimplePie.php file manually in order to use the SimplePie class for RSSWidget->FeedItems() 2008-12-09 23:15:11 +00:00
Will Rossiter
3f50a8e36c MINOR: comment improvements and fixes 2008-12-04 21:34:49 +00:00
Andrew O'Neil
bda7fd1cd7 Reverted changes that shouldnt be in core 2008-12-02 02:58:14 +00:00
Saophalkun Ponlu
0ba0c52553 Moved LegacyIDs from BlogEntry and File to Decorators 2008-12-02 02:46:42 +00:00
Saophalkun Ponlu
efbe5242ce Added LegacyID. Used for blog migration 2008-12-02 01:53:52 +00:00
Sean Harvey
8e74406b43 ENHANCEMENT Added IsWYSIWYGEnabled() to check if it's enabled or not, used for templates to determine whether to return parsed content or just standard HTML 2008-11-27 01:43:55 +00:00
Sean Harvey
bccb236a40 ENHANCEMENT Added empty statics to BlogHolder to allow for decoration of BlogHolder 2008-11-25 05:01:20 +00:00
Sean Harvey
cbf39d1ec8 ENHANCEMENT Added empty relationship statics so BlogEntry can be decorated by a DataObjectDecorator 2008-11-25 04:24:51 +00:00
Sean Harvey
224fe02c3b BUGFIX Fixed some potential security issues in BlogHolder page type 2008-11-06 00:36:58 +00:00
Sean Harvey
c3c97201d4 BUGFIX Fixed possible Member::currentUser() problem with inconsistent function names 2008-11-06 00:35:10 +00:00
Will Rossiter
8f037c4628 BUGFIX: default child needs to be a string rather then an array 2008-10-27 07:06:39 +00:00
Sean Harvey
c3331581ee MINOR whitespace change 2008-10-24 00:05:01 +00:00
Sean Harvey
16736e25a4 BUGFIX Check if SimplePie exists before attempting to create a new instance of it, since it's a 3rd party class 2008-10-23 23:07:19 +00:00
Ingo Schommer
d3c7ad41fd BUGFIX Fixing usage of deprecated APIs 2008-10-16 13:46:59 +00:00
Ingo Schommer
4f7c9b34d2 MINOR Misc deprecation fixes 2008-10-16 08:45:38 +00:00
Sean Harvey
e6c0d70d99 BUGFIX Missing Hierarchy and Versioned extensions because of overloaded $extensions variable 2008-09-15 03:59:39 +00:00
Andrew O'Neil
b05a3a2cc6 FEATURE: Added receiving of TrackPack pings 2008-09-12 02:09:13 +00:00
Andrew O'Neil
f9aa8d9ab2 Use MONTH() and YEAR() SQL functions to check date on entries.
Refactored BlogEntries() to be more testable.
Added tests for Entries().
2008-09-11 23:36:15 +00:00
Sean Harvey
fffc4d6b77 ENHANCEMENT Allow Blog RSS feed to be named by CMS field on BlogHolder. If it's not set, then fall back to using "mysite blog" or whatever the global $project variable is set to 2008-09-03 23:57:40 +00:00
Sean Harvey
237dd4564f MINOR invalid use of single quotes as HTML
MINOR whitespace in PHP cleanup
2008-08-21 01:37:37 +00:00
Sean Harvey
54f0af86ba MINOR whitespace 2008-08-21 01:30:04 +00:00
Sean Harvey
ccd3bc1a49 BUGFIX Renamed Tags in TagCloudWidget->Tags() to TagsCollection() which is less confusing and now renders the tags correctly 2008-07-29 04:17:34 +00:00
Sean Harvey
6256c6d871 API CHANGE Removed Newsletter references in blog module. This shouldn't be in here because it's easy enough to create one on a per-project basis 2008-07-28 04:12:16 +00:00
Ingo Schommer
359446212a API CHANGE Changed BlogEntry->Tags() to TagsCollection() to avoid confusion with the property "Tags" which is of DBField type "Text" (not DataObjectSet) - necessary to adjust to changed DataObject-write() behaviour of using DBField instances to write the value (rather than directly editing the SQL manipulation). See r52927 for details. 2008-07-20 07:45:55 +00:00
Ingo Schommer
4df0def63b Merged revisions 56170 via svnmerge from
svn://svn.silverstripe.com/silverstripe/modules/blog/branches/trunk-dnc

........
  r56170 | ischommer | 2008-06-13 11:25:35 +1200 (Fri, 13 Jun 2008) | 1 line
  
  BUGFIX Adding getAbsoluteRssURL() to RSSWidget to avoid SimplePie confusion on relative URLs (causes timeouts)
........
2008-06-12 23:39:47 +00:00
Will Rossiter
55e1174884 fixed the show by tag 2008-04-22 01:20:59 +00:00
Will Rossiter
b1e4d27b42 browse by tag was not working. 2008-04-22 00:30:40 +00:00
Sam Minnee
80974881a1 Added LandingPageFreshness variable to blog holder, which lets authors choose which entries to show on the landing page 2008-04-08 23:34:28 +00:00
Sam Minnee
9289d6ed04 Added editable Title field to TagCloudWidget 2008-04-08 23:22:08 +00:00
Sam Minnee
e3eeffafc9 Reverted previous change 2008-04-08 23:21:13 +00:00
Sam Minnee
6a3225df22 Added editable Title field to TagCloudWidget 2008-04-08 23:09:11 +00:00
Will Rossiter
9da8415588 now I see why you need that title function. So added it back 2008-02-25 08:48:33 +00:00
Will Rossiter
293dd54f64 Removed custom title and method in favour of using defaults 2008-02-24 08:23:04 +00:00
Will Rossiter
99b3127e70 2008-02-24 08:19:24 +00:00
Matt Peel
33471e3926 Changed Tag Cloud site name to Tag Cloud. 2008-01-23 22:56:22 +00:00
Matt Peel
4423407f48 2008-01-22 03:44:44 +00:00
Jeremy Shipman
5d10b7589c Fixed date ranges for archive blogs 2008-01-14 03:34:47 +00:00
Jeremy Shipman
36a6d0342b Date format bug #1941 2008-01-14 02:19:53 +00:00
Andrew O'Neil
b819135fe5 simon_w: #2123 - Blog RSS sorted by date 2008-01-13 20:16:27 +00:00
Andrew O'Neil
43fd90621e Fix RSS feed when using WYSIWYG editing 2008-01-07 19:40:36 +00:00
Andrew O'Neil
9590b3558f Remove debug message 2008-01-07 01:49:29 +00:00
Andrew O'Neil
1dca7415c5 Fix typo 2008-01-06 22:48:49 +00:00
Sean Harvey
fe23b0cef9 Abstracted fields onto BlogRole from subscribe form, added some documentation about what it does 2007-12-20 04:32:01 +00:00
Sean Harvey
d971db30d0 Added ConfirmNewsletterSignup_member.ss as an example how to customise, added themedCSS requirements to controller 2007-12-20 03:39:03 +00:00
Sean Harvey
d1c6825941 Don't show the NewsletterSignupForm unless there is a newsletter related to a BlogHolder that exists 2007-12-20 03:31:38 +00:00
Sean Harvey
10f5213192 Instead of directly checking ClassName, check if an instance instead 2007-12-20 03:26:20 +00:00
Sean Harvey
3117340cc5 Moved NewsletterSignupForm to the object, made a link to this from the blogentry page 2007-12-20 02:23:20 +00:00
Andrew O'Neil
5668169744 We don't need to escape the summary before parsing bbcode, as the parser does that for us 2007-12-18 03:21:47 +00:00
Sean Harvey
1058c98081 Added return false otherwise it won't redirect 2007-12-18 02:42:52 +00:00
Andrew O'Neil
abcb951837 use microformat style tags in tagcloud 2007-12-18 02:10:44 +00:00
Andrew O'Neil
6229b8960d v.golev: #1982 - Blog module i18n patch 2007-12-18 01:41:51 +00:00
Sean Harvey
2c6edcf0df Newsletter changes for blogholders 2007-12-15 22:47:20 +00:00
Sean Harvey
acb5d1abae Added newsletter sign up and confirm functionality (as required) and templates 2007-12-14 00:54:53 +00:00
Will Rossiter
d10e859d1b 2007-12-13 22:40:31 +00:00
Sam Minnee
104301e42d Added BlogEntry::allow_wysiwyg_editing() for people who don't want to use BBCode 2007-12-11 22:13:19 +00:00
Jeremy Shipman
641d35c942 ambiguous SQL fix 2007-12-02 22:32:28 +00:00
Andrew O'Neil
9daebb0fb0 support for rel-tag microformat 2007-11-23 08:35:49 +00:00
Andrew O'Neil
4adb7674b9 Don't set the url segment, as it capitalises 2007-11-23 07:50:27 +00:00
Jeremy Shipman
5786b6d6a0 Commenting blog 2007-11-14 01:16:13 +00:00
Jeremy Shipman
408cf5c8bb Commenting blog 2007-11-14 01:15:40 +00:00
Andrew O'Neil
acd6e1a6c5 #1500 - Infinite loop in Blog's RSS widget 2007-11-01 21:56:44 +00:00
Andrew O'Neil
aae55078db Use short tags 2007-09-17 10:14:28 +00:00
Sean Harvey
fc03f9f329 check if the method exists before jumping into the foreach loop. was causing problems in some situations 2007-09-11 06:38:05 +00:00
Andrew O'Neil
bbd2815316 Move blog to open source path 2007-09-06 22:33:58 +00:00