Skip to content

Commit

Permalink
Merge pull request #57 from jsirish/bugfix/titleHeadline
Browse files Browse the repository at this point in the history
SlideImage - Title to Headline
  • Loading branch information
jsirish committed Apr 15, 2016
2 parents 2b3f9c8 + c605f2b commit 6a0974d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion _config/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Name: FlexSlider
SlideImage:
db:
Name: Varchar(255)
Title: Varchar(255)
Headline: Varchar(255)
Description: Text
SortOrder: Int
ShowSlide: Boolean
Expand Down
2 changes: 1 addition & 1 deletion code/SlideImage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getCMSFields()
$fields->addFieldsToTab('Root.Main', array(
TextField::create('Name')
->setDescription('for internal reference only'),
TextField::create('Title')
TextField::create('Headline')
->setDescription('optional, used in template'),
TextareaField::create('Description')
->setDescription('optional, used in template'),
Expand Down
2 changes: 1 addition & 1 deletion templates/Includes/FlexSlider.ss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<img src="$Image.URL" alt="$Name.XML" class="slide">
<% end_if %>
<% if $PageLink %></a><% end_if %>
<% if $Title %><h3>$Title</h3><% end_if %>
<% if $Headline %><h3>$Headline</h3><% end_if %>
<% if $Description %><p>$Description</p><% end_if %>
</li>
<% end_loop %>
Expand Down

0 comments on commit 6a0974d

Please sign in to comment.