Git Product home page Git Product logo

Comments (13)

parndt avatar parndt commented on June 19, 2024

use rake refinery:override

from refinerycms-calendar.

cheeby avatar cheeby commented on June 19, 2024

I've tried that.

rake refinery:override controller=events
rake refinery:override controller=refinery/events
rake refinery:override controller=refinery/calendar/events
rake refinery:override controller=calendar/events

And it hasn't worked. What path should I be passing in?

I have been playing with making a 'decorator controller,' but it seems it'd be easier and less redundant just to override the controller itself.

Thanks!

Steve

On Nov 8, 2012, at 11:17 PM, Philip Arndt [email protected] wrote:

use rake refinery:override

Reply to this email directly or view it on GitHub.

from refinerycms-calendar.

parndt avatar parndt commented on June 19, 2024

It should be

rake refinery:override controller=refinery/calendar/events

Puzzled that it's not working. Which version are you using?

from refinerycms-calendar.

cheeby avatar cheeby commented on June 19, 2024

Thanks, that did work. I think I must have misspelled something. Ugh.

Thanks again and sorry to bother.

Steve

p.s. I have this in my Gemfile:

gem 'refinerycms-calendar', '~>2.0.0'

On Nov 8, 2012, at 11:31 PM, Philip Arndt [email protected] wrote:

It should be

rake refinery:override controller=refinery/calendar/events
Puzzled that it's not working. Which version are you using?


Reply to this email directly or view it on GitHub.

from refinerycms-calendar.

parndt avatar parndt commented on June 19, 2024

Awesome - glad it works :-)

from refinerycms-calendar.

cheeby avatar cheeby commented on June 19, 2024

Yup.

Thanks.

How hard is it to add columns to the model provided? e.g., I'd like to add a boolean to the event to mark school as closed, which would then trigger some css in the grid making it obvious that the school is shut on that particular day.

Thanks,

Steve

ps -> very first crack with some demo data and custom view attached.

On Nov 8, 2012, at 11:39 PM, Philip Arndt [email protected] wrote:

Awesome - glad it works :-)

Reply to this email directly or view it on GitHub.

from refinerycms-calendar.

parndt avatar parndt commented on June 19, 2024

You can do it just like rails:

rails g migration add_open_to_refinery_events open:boolean

You then have to handle that in the views like in Rails, meaning you may have to override the frontend views.

from refinerycms-calendar.

cheeby avatar cheeby commented on June 19, 2024

Ah, ok. Thanks. I will go for that. Have a good day.

Steve

On Nov 9, 2012, at 12:06 AM, Philip Arndt [email protected] wrote:

You can do it just like rails:

rails g migration add_open_to_refinery_events open:boolean
You then have to handle that in the views like in Rails, meaning you may have to override the frontend views.


Reply to this email directly or view it on GitHub.

from refinerycms-calendar.

parndt avatar parndt commented on June 19, 2024

You too :-)

from refinerycms-calendar.

cheeby avatar cheeby commented on June 19, 2024

Cool. How do I edit the admin view? Is it possible to override admin views? Adding a text field called event_category and will use a simple select for three event categories.

Thanks heaps,

Steve

On Nov 9, 2012, at 12:06 AM, Philip Arndt [email protected] wrote:

rails g migration add_open_to_refinery_events open:boolean

from refinerycms-calendar.

parndt avatar parndt commented on June 19, 2024

Yep just use the rake refinery:override task

from refinerycms-calendar.

cheeby avatar cheeby commented on June 19, 2024

Thanks.

I've tried lots of variants of

rake refinery:override view=refinery/admin/calendar/events/_form

with no luck. What should the override args look like?

Thanks,

Steve

On Nov 13, 2012, at 12:42 PM, Philip Arndt [email protected] wrote:

Yep just use the rake refinery:override task

Reply to this email directly or view it on GitHub.

from refinerycms-calendar.

cheeby avatar cheeby commented on June 19, 2024

Got it. Finally browsed through the source code to pull out the path:

refinery/calendar/admin/events/_form

thanks. Sorry to bother.

Steve

On Nov 13, 2012, at 12:51 PM, Steve Fox [email protected] wrote:

Thanks.

I've tried lots of variants of

rake refinery:override view=refinery/admin/calendar/events/_form

with no luck. What should the override args look like?

Thanks,

Steve

On Nov 13, 2012, at 12:42 PM, Philip Arndt [email protected] wrote:

Yep just use the rake refinery:override task

Reply to this email directly or view it on GitHub.

from refinerycms-calendar.

Related Issues (20)

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.