-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Cocker
authored and
James Cocker
committed
Apr 13, 2018
1 parent
3a48391
commit 8983724
Showing
12 changed files
with
122 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,8 @@ This module has been designed to have just the minimum required features, to avo | |
* James Cocker ([email protected]) | ||
|
||
## Requirements | ||
* Silverstripe 3.1+ | ||
* Silverstripe 4.1+ | ||
* Use the 3.1 branch for SilverStripe 3.1 support | ||
|
||
## Installation Instructions | ||
|
||
|
@@ -25,9 +26,9 @@ This module has been designed to have just the minimum required features, to avo | |
|
||
* A News Article has a Headline, Date, Article & Image (optional) | ||
* *Add New News Article* button on Holder CMS page. | ||
* Articles listed on holder page, with summary, date, image | ||
* Articles listed on holder page, with date and title | ||
* News Articles are automatically moved to a News Holder if created elsewhere in the sitetree accidentally. | ||
* Lightbox compatability | ||
* Lightbox compatibility | ||
* RSS feed of articles | ||
* Articles are paginated on the News Holder | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
NewsHolder: | ||
PurpleSpider\BasicNews\NewsHolder: | ||
extensions: | ||
- 'CustomLumberjack' | ||
NewsArticle: | ||
show_in_sitetree: false | ||
- PurpleSpider\BasicNews\CustomLumberjack | ||
PurpleSpider\BasicNews\NewsArticle: | ||
show_in_sitetree: false |
File renamed without changes.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<% require css("purplespider/basic-news: client/dist/css/basic-news.css") %> | ||
|
||
<div class="NewsArticle"> | ||
|
||
<h1>$Title</h1> | ||
<p class="date">$Date.Long</p> | ||
|
||
<% if AttachedImage %> | ||
<% if AttachedImage.Width >= '250' %><a href="$AttachedImage.FitMax(1200,1200).URL" class="lightbox"><% end_if %> | ||
<img class="right" src="$AttachedImage.ScaleMaxWidth(250).URL" /> | ||
<% if AttachedImage.Width >= '250' %></a><% end_if %> | ||
<% end_if %> | ||
|
||
$Content | ||
|
||
<p class="back"><a href="$Parent.Link">Back to News</a></p> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters