Sha256: 31254804250f2895f186696a88cab54e139a359c7d3a6b8ea83f1708bb1169c2

Contents?: true

Size: 1.48 KB

Versions: 1

Compression:

Stored size: 1.48 KB

Contents

Skyline Version Migration
=========================

First OS release -> Version 3.0.7
---------------------------------

**1. Template changes: render.peek_until** Peek until doesn't skip forward in the collection 
anymore. The old behaviour was inconsistent with peek. All peek functions now only look forward.
Replace all occurences of `var = peek_until...` and make sure they manually do `skip!(var.size)`
a better sollution is to use `render_until`.

**2. Template changes: @Page\_class** `@Page_class` is no longer accesible in the renderer. Use
`site.root` if you need to access the root class.

**3. Template changes: Renderer partials** You no longer need to pass the currently rendererd object
to partials. You can access the currently rendered object by using `renderer.object`.

**3. Custom sections: Buttons are no longer images** The helpers `button_image` has been removed
and the syntax of `submit_button` and `submit_button_to` has changed. Search for occurences of one 
of these three helpers and replace them accordingly:

**button_image**

    link_to button_image("small/delete.gif", :alt => :delete), ...
    
to

    link_to button_text(:delete), ..., :class => "button small red"
    
**submit\_button\_to**

    submit_button_to "small/delete.gif", ..., :value => :delete
    
to

    submit_button_to :delete, ..., :class => "small red"
    
**submit\_button**

    submit_button "small/delete.gif", ..., :value => :delete

to

    submit_button :delete, ..., :class => "small red"
    

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skylinecms-3.0.7 doc/MIGRATION.md