Daniel Hensby
45c4a4aadf
Merge branch '2.5' into 2
2018-06-19 21:43:45 +01:00
Daniel Hensby
2da2c2927f
Merge branch '2.4' into 2.5
2018-06-19 21:40:41 +01:00
Daniel Hensby
d392ca72f1
FIX Make sure setAllowMultibyte
is on when looking up by URLSegment
2018-06-19 14:23:27 +01:00
Loz Calver
f9530b5f05
Use Injector for creating paginated list of blog posts
2018-04-16 11:54:45 +01:00
Robbie Averill
c76cbcb0f0
Merge branch '2.4' into 2.5
2018-02-20 11:01:29 +13:00
3Dgoo
f948afe271
Fixing non int pagination variable server error
...
If a user tries to paginate the blog using a value that is not an integer SilverStripe will throw a server error.
Example. Visiting `blog/?start=10.1` will cause the following server error:
```You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '10.1' at line 8```
This change casts the pagination variable to an int before using it.
2018-02-20 11:00:09 +13:00
3Dgoo
483a384fb1
Fixing non int pagination variable server error
...
If a user tries to paginate the blog using a value that is not an integer SilverStripe will throw a server error.
Example. Visiting `blog/?start=10.1` will cause the following server error:
```You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '10.1' at line 8```
This change casts the pagination variable to an int before using it.
2018-02-20 07:47:49 +10:30
Robbie Averill
ffc0ab7f38
Merge branch '2.4' into 2
2017-11-03 15:35:11 +13:00
Robbie Averill
c2f58507a0
FIX Ensure that draft blog posts are always viewable to users with view draft permission
2017-11-03 14:00:14 +13:00
Daniel Hensby
35cbc20d5f
Merge pull request #437 from xini/feature-prev-next
...
add meta links for previous and next pages in paging and post view
2017-09-19 12:03:21 +01:00
Robbie Averill
26311750b9
FIX Encode URLSegment to support multibyte member profile URLs
2017-09-03 21:59:15 +12:00
Daniel Hensby
3a18b9f69b
FIX If BlogPost has date field, return it in getDate
2017-07-26 15:22:36 +01:00
Florian Thoma
4f1eb3d227
add meta links for previous and next pages in pagination
2017-05-26 09:43:27 +10:00
Daniel Hensby
ffab2df9d2
FIX Excerpt should be casted as HTMLText
2016-09-08 11:00:15 +01:00
Daniel Hensby
91abe1f9f8
FIX Cast Date method on BlogPost
2016-08-27 22:50:45 +01:00
ksdhans
29ffaa8295
Minor layout tweak
...
Correcting indentation of isRSS().
2016-06-15 19:33:29 +12:00
ksdhans
ca7f09d0e0
Removed category()/tag() documentation changes
...
Adding "string" to the possible return types of category()/tag() didn't stop the scrutinizer from raising two new issues, so I've reverted that change. In future tags/categories may be split into separate controllers (it's cleaner that way), so these "issues" may serve as a reminder.
NOTE: This means that the documented return type for rss() is also wrong
2016-06-14 18:20:03 +12:00
ksdhans
d42b3ca57c
Fixed RSS feed link for category/tag feeds
...
- The RSS feed link was always the blog's root URL, even for category/tag feeds. FIXED
- Changed the return type documented for category() and tag() to include string for the case where an RSS feed is returned (addresses the "Scrutinizer" issues)
2016-06-14 18:08:31 +12:00
ksdhans
95e14e5496
Performed suggested changes
...
- Removed hardcoded URL segment (was test code that I forgot to remove)
- Changed if($rss to if(is_string($rss)
- Moved bracket after isRSS() to next line
- Made rssFeed() protected as it's an internal function and shouldn't be part of the public API
2016-06-14 17:38:43 +12:00
ksdhans
073fca5f0d
Add RSS feeds for categories and tags
...
This patch adds RSS feeds for tags and categories. The RSS feeds are at the following URLs:
- */category/<category-name>/rss
- */tag/<tag-name>/rss
2016-06-13 23:20:07 +12:00
micmania1
299944fd1f
FIX #394 add getDate to proxy publish date in rss template
2016-05-31 14:26:29 +12:00
Damian Mooyman
e7ef92c4e5
Merge pull request #372 from micmania1/271-prevent-duplicate-tags-categories
...
FIX Prevent duplicate tags and categories.
2016-02-09 14:56:36 +13:00
micmania1
8135f67b71
FIX Prevent duplicate tags and categories.
2016-02-05 23:21:13 +00:00
micmania1
f32adf1dd3
FIX Prevent showing future blog posts before their publish date
2016-02-05 22:37:01 +00:00
Damian Mooyman
ebba5cc9fc
BUG Fix blog date filtering for additional database server types
2016-01-25 11:57:26 +13:00
Gordon Anderson
cb45815fbd
FIX: Tests now pass in Postgres on 3.1 and 3.2
...
Problems resolved:
1) Case sensitivy of check on Code field of Group
2) MySQL and Postgres have different date functions
3) When BlogID is empty, explicitly set it to 0. If not then all tests break under Postgres
2016-01-22 22:48:02 +07:00
Luke Ryley
a9e0b93f5a
Minor: Changed blog page icon
2016-01-19 15:05:36 +13:00
Loz Calver
34fcafa24a
Change image field label back to “Featured Image” ( closes #344 )
2015-12-04 10:35:47 +00:00
Damian Mooyman
5282ad84f9
BUG Fix regression in #312 in PHP 5.3
2015-11-23 15:45:22 +13:00
helpfulrobot
f82825d9a6
Converted to PSR-2
2015-11-21 19:17:29 +13:00
Damian Mooyman
3d6de78df5
Merge pull request #306 from DrMartinGonzo/patch-1
...
i18n wrong label in BlogPost.php
2015-11-20 12:51:00 +13:00
Damian Mooyman
7bddc86ab4
Merge pull request #303 from SilbinaryWolf/fix-changing-blog-pagetype
...
Fix bug where can't change 'Blog' page type to non-'Blog' page type
2015-11-20 12:49:54 +13:00
Christopher Pitt
21e45ce875
Removed featured posts
2015-11-19 10:09:46 +13:00
Damian Mooyman
3ef14a6e1a
Merge pull request #328 from silverstripe/add-hook-for-extension-filters-on-tag-blog-posts
...
Added hook for extension filters on tag blog posts
2015-11-17 16:37:23 +13:00
Christopher Pitt
040fb95eb6
Added hook for extension filters on tag blog posts
2015-11-17 16:09:31 +13:00
Christopher Pitt
34a45e21a7
Added hook for extension filters on category blog posts
2015-11-17 16:06:19 +13:00
Christopher Pitt
6d059806ea
Added featured posts to CMS
2015-11-13 15:06:29 +13:00
Cam Findlay
12674edb87
FIX Title bug due to #320
2015-11-10 10:20:12 +13:00
Michael Strong
a27dd892f6
Merge pull request #319 from tractorcow/pulls/fix-paginated-filter
...
BUG Fix tag / category filters not being filtered in PaginatedList()
2015-11-09 15:30:25 +13:00
Damian Mooyman
b45a573fac
BUG Fix tag / category filters not being filtered in PaginatedList()
2015-11-09 15:22:57 +13:00
Damian Mooyman
dd33bbfa50
Merge pull request #320 from camfindlay/feature/defaultarchiveyear
...
ENHANCEMENT Default archive year
2015-11-09 14:30:02 +13:00
Cam Findlay
43bb2248a5
ENHANCEMENT Default archive year
...
If no year is passed, rather than 404 it should grab the latest years posts.
2015-11-09 13:56:50 +13:00
Damian Mooyman
e04be4cde4
BUG Fix crash if parent page isn't Blog type
2015-11-05 11:31:55 +13:00
Cam Findlay
d6c2593d61
ENHANCEMENT filtering for large user base sites.
2015-11-04 12:44:15 +13:00
Michael Strong
dde32209f8
Merge pull request #301 from JorisDebonnet/patch-1
...
Bugfix: avoid calling "new PaginatedList(null)"
2015-10-27 13:26:16 +13:00
DrMartinGonzo
a5d242006f
i18n wrong label in BlogPost.php
...
Wrong Description label for additional credits description, uses PublishDate_Description.
2015-10-26 15:43:21 +01:00
JorisDebonnet
2c59e50a1c
Bugfix: avoid feeding null to PaginatedList constructor
2015-10-23 19:33:41 +02:00
JorisDebonnet
f311305efb
Default PublishDate to NULL for drafts and sort them at the top
2015-10-23 00:40:25 +02:00
Jake Bentvelzen
c3b0401ee5
Fixed a bug where an error occurred when attempting to change the page type of 'Blog'
2015-10-14 14:00:24 +11:00
Damian Mooyman
b9155bae79
BUG Fix canview for non-admins
2015-07-09 15:15:39 +12:00