Max Girkens
3b17c4478e
BlogTag existing check on URLSegment
...
perform existing check for BlogTag on URLSegment rather than Title.
Title is non unique in the Database, thus allows (ci) duplicates in legacy entries
2018-06-21 13:23:08 +02:00
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
Raissa North
18fe0a96e7
FIX Add missing translation for GridFieldBlogPostState
2017-12-01 16:36:00 +13:00
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
Franco Springveldt
f29b73f532
Merge branch '2.4' into 2
2017-09-28 16:46:58 +13:00
Robbie Averill
d47648a86d
FIX Archive widget shows months from posts published that day
2017-09-28 15:08:30 +13:00
Robbie Averill
385fe9572a
Merge branch '2.4' into 2
2017-09-27 11:25:36 +13:00
Robbie Averill
8e684dea50
FIX BlogArchiveWidget for PostgreSQL compatibility
2017-09-26 17:17:53 +13:00
Robbie Averill
a1e4f3efce
Add tests for BlogArchiveWidget
2017-09-26 16:17:41 +13:00
Robbie Averill
27044d86a5
FIX Display individual years in blog archive widget when set to "Yearly"
2017-09-22 14:54:44 +12: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
9a5690ca3e
Merge branch '2.4' into 2
2017-09-14 16:53:42 +12:00
Robbie Averill
26311750b9
FIX Encode URLSegment to support multibyte member profile URLs
2017-09-03 21:59:15 +12:00
Daniel Hensby
619df86693
Merge pull request #446 from creative-commoners/issue/ss-widgets/144
...
FIX select list not in group-by clause error
2017-08-17 17:44:19 +01:00
Franco Springveldt
236bf6d8fc
FIX added date formatting
2017-08-09 09:49:58 +12:00
Daniel Hensby
3a18b9f69b
FIX If BlogPost has date field, return it in getDate
2017-07-26 15:22:36 +01:00
Daniel Hensby
c110b4e2e1
Merge branch '2.4' into 2
2017-07-20 10:33:28 +01:00
Daniel Hensby
0b6a2d710a
Merge branch '2.3' into 2.4
2017-07-20 10:33:06 +01:00
Daniel Hensby
df68e34398
Merge branch '2.2' into 2.3
2017-07-20 10:31:55 +01:00
Daniel Hensby
7bfe622909
Merge branch '2.1' into 2.2
2017-07-20 10:30:12 +01:00
Daniel Hensby
c29438fd1a
FIX Dont generate urlsegments if we dont need to
2017-07-19 17:42:46 +01:00
Daniel Hensby
ca59af43e8
Merge branch '2.4' into 2
2017-07-05 14:42:23 +01:00
Cam Findlay
d5340a87dc
FEATURE config to disable sending spam notifications
2017-07-03 11:17:30 +01:00
Franco Springveldt
0d6b44aa44
FIX mysql >= 5.7 sql_mode=only_full_group_by error
2017-06-26 10:21:39 +12:00
Daniel Hensby
deb0a098e8
Merge pull request #435 from rasstislav/patch-1
...
FIX Add translation to some areas of BlogMemberExtension that were missing them
2017-06-15 16:56:31 +01:00
Alexandre Saelens
bd23bb2f0a
Prevent user_error when querying object from Solr
2017-06-14 14:05:40 +12:00
Florian Thoma
4f1eb3d227
add meta links for previous and next pages in pagination
2017-05-26 09:43:27 +10:00
Rastislav Brandobur
2cd7db9beb
FIX Add translation to some areas of BlogMemberExtension that were missing them
2017-04-12 10:33:29 +02:00
Christopher Darling
fef1462f56
BlogMigrationTask missing title and description
...
Otherwise shows up in dev/tasks/ as "Database Migrations"
2017-03-15 14:31:18 +00: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
Thomas Portelange
2dd5fd8596
remove i18n formatting in links
...
the getArchiveMonth and getArchiveYear only accepts number in Blog.php. Removing i18n formatting restore the functionnality.
2016-07-15 14:31:11 +02:00
Damian Mooyman
a21b50333d
Merge pull request #402 from micmania1/fix-376-url
...
FIX #376 allow multibyte chars in url segment
2016-06-29 17:51:22 +12: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
micmania1
e4c3b879e8
FIX #376 allow multibyte chars in url segment
2016-05-31 14:00:54 +12:00
Ian Walls
86f5295175
Format dates in Blog Posts gridfield based on user preferences
...
Instead of always formatting to DD/MM/YYYY as Nice() does, format
the date based on user settings, using FormatFromSettings().
Fixes silverstripe/silverstripe-blog#384
2016-03-04 14:31:22 -05:00
Gordon Anderson
515928b8e2
FIX: Ensure tag cloud widget does not break when there are zero tags
2016-02-24 22:01:24 +07: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
Damian Mooyman
067f415f33
Merge pull request #373 from micmania1/296-prevent-future-post-public
...
FIX Prevent showing future blog posts before their publish date
2016-02-09 14:38:36 +13:00