referencing current card and parts in inclusions

closed
,
low
,  
 
  • View
  • Changes
  • Options
  • Related
  • Edit
  • Need a way to reference current card and it's parts in inclusions,

    also, these bugs are related:

    _self|view:name breaks multi-edit. It offers you to edit the named (formatted) card, which of course gives permission denied when you save. Example below.

    base:parent (the old syntax for _left) breaks badly if used on a simple card. This should be fixed, and simple cards should be handled at least somewhat elegantly when implementing _left and _right (maybe replace "Add " with some light red text describing the problem, i.e. "_left [or _right] has been used, but is not a plus card."). No example, because it busts Recent Changes too, but if you have a card foo including +bar|base:parent then you get this error:

    [Full Trace and Session Dump open]

    NoMethodError in Card#show

    Showing card/_view.rhtml where line #24 raised: You have a nil object when you didn't ...

     

  • View
  • Changes
  • Options
  • Related
  • Edit
  • _self / _whole = the card the inclusion is on (this is implemented - we need to validate for no infinite recursions if view:content or view:open)
    _left = the left part of the card the inclusions is on (what happens if it's a solo card?)
    _right = the right part of the card the inclusions is on (ditto)

    base: is now deprecated.

    If _left or _right occur on simple cards, each of those is treated like _self

     

  • View
  • Changes
  • Options
  • Related
  • Edit
  • _self|view:name breaking multi-edit (look under "Tickets relevant to"):

     

    Related support tickets: 
    Relevant user stories: 
     add one
  • View
  • Changes
  • Options
  • Related
  • Edit
  • are there still bugs here?  I know there is a bug that if you specify an invalid view it can break the whole page. maybe should be a separate ticket for that one?

     

    Notes

    add a note

    try it

     

    wagneers

    intro

    videos

    features

    syntax

    weekly calls

    ideas

     

    twitter

    mailing list

     

    developers

    roadmap

    next release

    tickets

    pack API

    REST API

    one-pager

     

    github

    mailing list

     

    wagn.org

    recent

    todo