Giter Club home page Giter Club logo

refinerycms-news's Introduction

Refinery Framework

This is a little project to see if we can write a tidy underlying framework.

refinerycms-news's People

Contributors

andrewhavens avatar bricesanchez avatar davidbennettpio avatar dependabot-preview[bot] avatar djones avatar dmilisic avatar enriclluelles avatar frankel avatar gogogarrett avatar gwagener avatar hez avatar jmercedes avatar joseustra avatar ken-guru avatar kivanio avatar marcelocajueiro avatar mariochavez avatar martinjlowm avatar matho avatar mauriciozaffari avatar mirosr avatar parndt avatar peterberkenbosch avatar rakvium avatar raskhadafi avatar siegfried avatar simi avatar szajbus avatar ugisozols avatar zerobearing2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

refinerycms-news's Issues

Release 2.1.0

Hi Guys,

First of all, thank you for the great work. It's always a pleasure to work with refinery.

It would be great if you could release the gem version 2.1.0 because it will unlock refinery 2.1 on my application, which fix a nasty bug I'm having.

Regards

i18n / news routing problems

Hello

I have problems using news engine with refinerycms.
if I go to http://localhost:3000/news - then i get error
No route matches {:locale=>:sl, :controller=>"refinery/news/items"}

This error also appears if I create custom engine with "config.frontend_locales = [:sl, :en]".
I google for this problem and I found also other have the same problems ... but no solution so far.

Refinery::I18n.configure do |config|
config.enabled = true
config.default_locale = :sl
config.current_locale = :sl
config.default_frontend_locale = :sl
config.frontend_locales = [:sl, :en]
end

The problem is also described here
https://groups.google.com/forum/?fromgroups#!topic/refinery-cms/wgvjK34K6Zo

Can someone spot the problem?

Thanx in advance
Marko

Error with new RefineryCMS 2.1.1 version

The new release version 2.1.1 does not work with version 2.1.0 of the News plugin. When showing a newsitem I get

ActiveRecord::RecordNotFound in Refinery::News::ItemsController#show

Couldn't find Refinery::News::Item with id=installatie-nieuwsitems 
[WHERE `refinery_news_item_translations`.`locale` = 'nl' 
AND `refinery_news_items`.`id` = `refinery_news_item_translations`.`refinery_news_item_id` 
AND ((`refinery_news_items`.`expiration_date` IS NULL 
     OR `refinery_news_items`.`expiration_date` > '2013-11-27 11:37:29')) 
AND (publish_date < '2013-11-27 11:37:29')]

Note the weird id it is looking for.

Can't mass-assign protected attributes: locale

Hi, everytime I try to add a child page under a extension's page I get the error

ActiveModel::MassAssignmentSecurity::Error in Refinery::Admin::PagesController#new

Can't mass-assign protected attributes: locale

Rails.root: /Users/gadreel/Documents/rickrockstar
Application Trace | Framework Trace | Full Trace

Request

Parameters:

{"parent_id"=>"11",
"locale"=>:en}

Is this a bug or some sort of protection mechanism?

Frontend translations missing

Hi, thanks for building a great CMS. I use the news engine, but it seems that the localization is not working correctly on the frontend and for some labels at the backend (not all). I use Dutch as a main language. That's is going (wr)on(ng)?..

i18n.rb
  Refinery::I18n.configure do |config|
    config.enabled = false
    config.default_locale = :nl
    config.current_locale = :nl
    config.default_frontend_locale = :nl
    config.frontend_locales = [:nl]
    config.locales = {:nl=>"Nederlands"}
    #config.locales = {:en=>"English", :fr=>"Français", :nl=>"Nederlands", :"pt-BR"=>"Português", :da=>"Dansk", :nb=>"Norsk Bokmål", :sl=>"Slovenian", :es=>"Español", :it=>"Italiano", :de=>"Deutsch", :lv=>"Latviski", :ru=>"Русский", :sv=>"Svenska", :pl=>"Polski", :"zh-CN"=>"Simplified Chinese", :"zh-TW"=>"Traditional Chinese", :el=>"Ελληνικά", :rs=>"Srpski", :cs=>"Česky", :sk=>"Slovenský", :ja=>"日本語", :bg=>"Български"}
  end

news migration problem

When I try to install the news engine I get the below error. Would you have any idea why I might be getting the error message when I do a migrate? I'm running rails 3.0.3 and ruby 1.9.2. I'm also running refinerycms version 0.9.8.5 and the refinerycms_news is 0.9.9

$ rake db:migrate
(in /Users/Sites/web/profc)
== AddMissingIndexes: migrating ==============================================
-- add_index(:pages, :parent_id)
rake aborted!
An error has occurred, this and all later migrations canceled:

Index name 'index_pages_on_parent_id' on table 'pages' already exists

i18n error

I think you should bump the version and release the gem to rubygems.org after the last commit

It was a major bugfix for the case that someone doesn't use the refinerycms-i18n gem. Right now, if one doesn't use github in the Gemfile, but rubygems.org, it will not work.

image_id attribute?

I can see there is an image_id attribute in the Item model, but I don't see its functionality. When I create a new news I can add an image to the body but there is no option to add an image to the Item model.

News within Categories

Is it possible to add a column into the news table so that the news can be grouped into several categories, so that the "recent posts" module can display recent posts from different categories? I'm working on this.

Archive creates for every item one archive link

On my /news page, the Archive links are for every item, and not just for every month. So as example, i have 4 news in Mai and this is wat i get:

  • Mai 2012 (4)
  • Mai 2012 (4)
  • Mai 2012 (4)
  • Mai 2012 (4)

refinerycms-news generates four times the same link. How can this be fixed?

i have installed:

ruby 1.9.3p194
Rails 3.2.6
refinerycms (2.0.8)
refinerycms-news (2.0.1)

body_content_title doesn't show up

With a clean Refinery installation and only the news engine, the line below from views/refinery/news/items/show.html.erb isn't rendered in the final web page:

<% content_for :body_content_title, @item.title %>

It looks like we can't override the body_content_title of the /refinery/content_page partial unless we set the page_title someway. And since I'm new to Ruby and Rails, I've no clue how to do that.

Please have a look at the corresponding code: https://gist.github.com/c3e3de589e18044bfe48

After visiting #refinerycms, @sedrickcz told me to try this :

<%= render :partial => "refinery/content_page", :locals => { :page_title => @item.title } %>

And yes, the page_title is set in my page but the ContentPagePresenter doesn't give a sh**

Can't mass-assign protected attributes: locale

Hi guys,

I've got a fresh install of Refinery 2.0.3, and am getting this error when trying to create a new article in the admin section:

ActiveModel::MassAssignmentSecurity::Error in Refinery/news/admin/items#new

Showing c:/Ruby192/lib/ruby/gems/1.9.1/gems/refinerycms-news-2.0.0/app/views/refinery/news/admin/items/_form.html.erb where line #15 raised:

Can't mass-assign protected attributes: locale
Extracted source (around line #15):

<div class='field'>
 <%= f.label :title %>
 <%= f.text_field :title, :class => "larger widest" %>
</div>

Thanks in advance for any help :-)

undefined method edit_refinery_news_items_admin_news_item_path

using edge with

gem "refinerycms-news", :git => 'git://github.com/resolve/refinerycms-news.git', :branch => 'rails-3-1'

fails in production env with

ActionView::Template::Error (undefined method `edit_refinery_news_items_admin_news_item_path' for #<ActionDispatch::Routing::RoutesProxy:0x00000007785350>)

could be a rails bug too as news is using resources :as ...
a temporary workaround is using

module Kernel
  def edit_refinery_news_items_admin_news_item_path( *args )
    '/'
  end
end

in config/initializers/refinery.rb

NoMethodError in News_items#index and News_items#show

I am facing problem when using 'news' with 'portfolio' plugin. Separately news works fine. But, with portfolio installed, it creates error while showing news in the website frontend.
A. It doesn't show the news link in the menu [But, it showed previously when portfolio was not installed]
B. Manually typing the /news shows this error [It should show the list of news]:
[Rendering news_items/index

ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]) on line #2 of vendor/plugins/refinerycms-news/app/views/news_items/index.html.erb:
1: <% content_for :body_content_left do %>
2: <%= @page[:body] if @news_items.offset == 0 %>
3:
4: <% if @news_items.any? %>
5: <% @news_items.each do |item| %>

vendor/plugins/refinerycms-news/app/views/news_items/index.html.erb:2]

What could be the problem?

C. Manually typing any particular news link shows this error[It should show that particular news item]:
[ActionView::TemplateError (You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]) on line #8 of vendor/plugins/refinery/app/views/shared/_content_page.html.erb:
5:
6: sections = [
7: {:yield => :body_content_title, :fallback => page_title, :id => 'body_content_page_title', :title => true},
8: {:yield => :body_content_left, :fallback => @page[:body]},
9: {:yield => :body_content_right, :fallback => @page[:side_body]}
10: ].reject {|section| hide_sections.include?(section[:yield]) }
11:

vendor/plugins/refinery/app/views/shared/_content_page.html.erb:8

]

uninitialized constant Refinery::I18n

Running refinery 0.9.9.16 and rails 3.0.6. Exception seems to occur when going to /refinery/news. If you need any other info just ask.

Showing /Users/carl/.rvm/gems/ruby-1.9.2-p136/gems/refinerycms-news 1.1.0/app/views/admin/news_items/_news_item.html.erb where line #7 raised:

uninitialized constant Refinery::I18n

Extracted source (around line #7):

4:     <span class="preview">
5:       <%= t('.published') %> <%= l(news_item.publish_date, :format => :short) %>
6:     </span>
7:     <% if ::Refinery::I18n.frontend_locales.many? and
8:           (locales = news_item.translations.collect{|t| t.locale}).present? %>
9:       <span class='preview'>
10:         <% locales.each do |locale| %>

Migration error while running 'CreateStructureForNews'

I installed from script/plugin and ran the generator. But while running migration came across this error.

==  CreateStructureForNews: migrating =========================================
-- create_table(:news_items)
   -> 0.3293s
-- add_index(:news_items, :id)
   -> 0.3656s
rake aborted!
An error has occurred, all later migrations canceled:

unknown attribute: name

A little inspection told me that one of the generator templates was possibly wrong. I have forked and committed a patch.

External URL & Image

Using refinerycms-news 1.1 on a fresh project with nothing overridden, upon adding an external link or using the link just above the save button to add an image, the news item does not display either image.

Can't override views

Running this: rake refinery:override view=refinery/news/items/*
Produces this: no matches found: view=refinery/news/items/*

Any ideas what I'm doing wrong? Thanks!

Error creating events extension Example

I followed the steps to create an extension (Events). I've got the extension created but when I try to save somo information at tab Events , the follow error appears:

ActiveModel::MassAssignmentSecurity::Error (Can't mass-assign protected attributes: date(1i), date(2i), date(3i), date(4i), date(5i), photo_id, position):

I'm using - refinerycms (2.0.3) on RVM.

Is refinery-settings a necessary dependency?

I just installed this refinery-news gem and noticed that I now have a settings tab with no settings in it. I thought this sort of stuff got moved into a config/initializers file, but after reviewing the gemspec, I noticed that refinery-settings gem is listed as a dependency. Is that a mistake? Or is this a legacy dependency that just hasn't been updated yet? Or is there some reason that this dependency needs to exist?

Custom Title & body_content_left

The news module is great, but I noticed two possible bugs:

  1. Custom Title is stored in database but <%= t('plugins.refinerycms_news.title') %> on the index page prints "News" regardless.
  2. html tags in body_content_left is printed as part of the string on the index page.

Using refinerycms-news 1.0 and refinery 0.9.9.20.

Truncate Cyrillic texts.

I have noticed a bug with truncating Cyrillic texts. length is set to 200, but that only works correct on English characters (tho it shows 141 of 200 only in English too).
Also strange that second line is in Russian, but it's shown and it's truncated to 44 chars.

I overrided pages, then set truncate, item_body :length => 500, and now it shows russian text too, but like 50% only of length it should.

PS screenshot — http://iva-soft.com/truncate_c_t.png

No Admin in ~> 2.0.0 install

I did an installation of News on a 2.0.2 site and it installed a "Settings" Tab on the Admin but no News tab
It did install the News Page - which is just a blank page

Problem with migrations

Starting with a new refinery project, I wanted to try out the news engine. So I added the gem, bundle installed, and ran the generator. When I went to do rake db:migrate I got the following error:

rake aborted!
An error has occurred, this and all later migrations canceled:

SQLite3::SQLException: table "refinery_settings" already exists: CREATE TABLE "refinery_settings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "value" text, "destroyable" boolean DEFAULT 't', "scoping" varchar(255), "restricted" boolean DEFAULT 'f', "form_value_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 

Not sure if this has broken anything yet, but I thought I should mention it.

Add a news summary list to the template

Hi

i am using theming and the news module. My goal is to add a simple little list of latest news to my tempate

i have tryed many ways but nothing works...

how can i add a news list to my template?

tanks and regards oshovah

Missing attr_accessible for item

hi when I try to add new news I've got this error:

Can't mass-assign protected attributes: locale

It is because in refinery-core by default is set up:

 57     config.active_record.whitelist_attributes = true

Please add this attribute to whitliest
Thanks

Edit:
I added fix path for that
Cheers

Cant display news index

Hello,
I am after fresh install of refinery and refinery news module. I added simple test news and I would like to display all content.
When I try to reach site.dev/pl/news/test I recive error:

ActiveRecord::RecordNotFound in NewsItemsController#show
Couldn't find NewsItem with ID=2 [WHERE "news_item_translations"."locale" = 'pl' AND "news_items"."id" = "news_item_translations"."news_item_id" AND (("news_items"."expiration_date" IS NULL OR "news_items"."expiration_date" > '2011-07-16 18:07:43.664231')) AND (publish_date < '2011-07-16 18:07:43.664376')]

Missing check for existing name for seeds.rb

Just noticed this check is missing for the migration to run successfully.
if user.plugins.find_by_name('refinerycms_news').nil?

User.find(:all).each do |user|
    if user.plugins.find_by_name('refinerycms_news').nil?
         user.plugins.create(:name => "", :position => (user.plugins.maximum(:position) || -1) +1)
    end                    
 end

hope it helps,
cheers,
Tiele

Join page from Refinery::Page and view news/items/index.html.erb

Hello, I added page "News" to menu branch "Company" and now I have 2 pages:

  1. /Company/news - empty, but with vertical menu
  2. /news - page with last news, but without vertical menu.
    How I can join this two pages so that I will have news and menu? Can I render menu.haml and specify path of selected page or render '/news/items/index' in page Company/News ?

Generator not working when using GEM

Installed refinery-news via gem tried to run script/generate news but it could not find generator. Installed plugin and tested again this worked fine. Anyone else confirm this?

News Tab on Admin Side Not Working

The news tab on the admin side of Refinery using current master branch does not work.

The fix needed is a simple route change (since Refinery changed /admin/ to /refinery/):

map.namespace(:admin) do |admin|

to

map.namespace(:admin, :path_prefix => 'refinery') do |admin|

Problem with show action?

Hi Guys,

I'm having a problem with the news plugin on my server. Locally when i
click the read more link on a news item in the news section it will
take me to the show action. However when i do this on my server i get
a 500 error response from the app.

This is what it is spitting out in the log file. It's almost like it's
not finding the news item in the db, but i'm not sure.
ActionView::Template::Error (undefined method title' for nil:NilClass): 1: <% content_for :body_content_title, @news_item.title %> 2: <% content_for :body_content_left do %> 3: <p> 4: <small><%= t('.published') %> <%# l(@news_item.publish_date, :format => :long) %></small> app/views/news_items/show.html.erb:1:in _app_views_news_items_show_html_erb___696800908__619473248_0'

Any body else having this issue? I am using version 0.9.9.3

Missing author field

You cannot assign an author to a news item.

I was thinking, is it an idea to merge blog/news?
Blog has an author field and categories.

acts_as_indexed error on news generator

I'm trying to use the news plugin on a fresh clone (version 0.9.8), with rails 3.0.0 and all gems bundled up on vendor/bundle. Also, I installed refinerycms-news as a plugin, because if I installed it as a gem I would get the generator not found error. This is the error I'm getting:

$ script/rails g news
/home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/acts_as_indexed-0.6.5/lib/acts_as_indexed.rb:89:in acts_as_indexed': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.join from /home/ravi/projetos/discautol/vendor/plugins/refinerycms-news/app/models/news_item.rb:8 from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:454:inload'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:454:in load_file' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:innew_constants_in'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:453:in load_file' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:340:inrequire_or_load'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:491:in load_missing_constant' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:183:inconst_missing'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:181:in each' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:181:inconst_missing'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:503:in load_missing_constant' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:183:inconst_missing'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:181:in each' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:181:inconst_missing'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:503:in load_missing_constant' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:183:inconst_missing'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:181:in each' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:181:inconst_missing'
from /home/ravi/projetos/discautol/vendor/plugins/refinerycms-news/rails/init.rb:9
from /home/ravi/projetos/discautol/vendor/refinerycms/core/lib/refinery/plugin.rb:8:in register' from /home/ravi/projetos/discautol/vendor/plugins/refinerycms-news/rails/init.rb:1 from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/plugin.rb:81 from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:ininstance_exec'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:25:in run' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:50:inrun_initializers'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:in each' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/initializable.rb:49:inrun_initializers'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/application.rb:134:in initialize!' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:insend'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/application.rb:77:in method_missing' from /home/ravi/projetos/discautol/config/environment.rb:5 from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:inrequire'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inload_dependency'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:591:in new_constants_in' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:225:inload_dependency'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in require' from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/application.rb:103:inrequire_environment!'
from /home/ravi/projetos/discautol/vendor/bundle/ruby/1.8/gems/railties-3.0.0/lib/rails/commands.rb:16
from script/rails:6:in `require'
from script/rails:6

Redirect Loop in minimal installation

Just did a minimal installation of refinerycms-news into a minimal refinery site

I'm using refinerycms 2.0.8 and Rails 3.2.8

I followed the readme :

gem "refinerycms-news", '~> 2.0.0'
bundle install
rails generate refinery:news
rake db:migrate
rake db:seed

no overriding of anything....

Now there is a News page in the Pages view and a link on the homepage of my site
But clicking on the News link on my site gets me:

Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

Archive is incorrect

Refinery::News:Items#archive does not retrieve correct entries.

It calls Refinery::News::Item.live, which calls Refinery::News::Item.not_expired, which results in no record retrieved. I simply removed the call for .live in the controller, though that would also retrieve unpublished entries.

latest version adds columns but doesn't provide upgrade migration for existing projects using engine

columns added to news_items: image_id, external_url
new table added: news_item_translations

FYI: I tried..
$ rails generate refinerycms-news --update

but all it did was to generate another create_news_items.rb which won't work because I've already done a create_news_items migration when I initially incorporated the news engine.

I think I can recover by editing this migration and just adding the columns and new table .. but since Refinery has a generator --update mechanism, it would be kind if it were enabled for the engine.

thanks!

Generator scripts don't come along with Bundler

I set this up following your instructions, using Bundler, but script/generate news wouldn't run because for some reason the generators folder didn't exist in my bundled gem. I pulled down the repo and pushed the files in myself.

Not sure if this is a bundler issue or not.

There are archive links for every item

For example if we have 3 news items in April then there would be 3 archive links with text April 2012 (3). There should be only one link for each month.

Feature Request: Post Thumbnail

Could we allow images to be attached to each post similar to the page-images engine?

(Not sure if this belongs here, blog (handy in both) or in the page-images engine..)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.