Content Settings

Ticket

+commit
 

 

here's how I'm seeing this work:

*content will be a setting that "hard" templates card content.
*default  will be a setting that "soft" templates content, type, and permissions

 

As you can see, in this scheme there's no need for hard/soft, that's determined by whether you use *content or *default.

 


 

Migration looks like this:

1)  rename:  <type>+*tform  to   <type>+*type+*default.     (takes care of soft templated permissions & content)
1a) if hard-template, add  <type>+*type+*content          (takes care of hard templated content)

2a) if hard template, rename <xxx>+*rform   to  <xxx>+*right+*virtual
2b) else rename  <xxx>+*right+*content  to  <xxx>+*right+*default

 

 

 

 


It occurs to me that virtual cards will need to take the type from *content, I think. (instead of *default as the regular scenario)

  --Lewis Hoffman.....Tue Jan 05 20:56:22 -0800 2010


the solution has been updated to address previous comment.

  --Lewis Hoffman.....Thu Jan 14 10:55:59 -0800 2010


Is this implemented enough to test? Anything i should be aware of if i do some testing?

  --John Abbe.....Tue Apr 13 23:06:55 -0700 2010


*content should work like hard used to, and *default should work like soft. *type should work like *tform and *right like *rform, and other sets should work, too.

 

Beyond that... hmm... dunno. We haven't really played with it on the interface level much. Would be interested to hear what you find!

  --Ethan McCutchen.....Wed Apr 14 00:32:46 -0700 2010


how does *virtual work?

  --John Abbe.....Fri Apr 16 09:32:27 -0700 2010


*virtual is gone (sorry, the solution section was out of date)

  --Ethan McCutchen.....Fri Apr 16 10:56:30 -0700 2010


Go to settings subtab of http://test.dwagn.org/card/options/John_Abbe+tags and you'll see that *default shows no card, though you do get the "edit" link instead of "add". Clicking on edit works though. Ah, this isn't a problem with content settings per se, just a by-product of the fact that the only thing the form is being used for is to set the type, so there's no content to show.

 

I'm guessing this is something we want ticket separately, something like show something in contentless content settings?

  --John Abbe.....Fri Apr 16 21:24:46 -0700 2010


I restored the migration stuff, though it clearly needs updating. It's useful for me at the very least, and may be for others who end up here when their Wagn migrates and they want to know what happened.

  --John Abbe.....Fri Apr 16 21:28:02 -0700 2010


Otherwise looks good so far (ideally i'd bang on it some more). Very nice to see the set/setting stuff expanding to take over the Wagnverse!

  --John Abbe.....Fri Apr 16 21:30:25 -0700 2010


Similarly to how Cardtype cards have a section of their settings subtab with "Settings for All cards", i think it would be helpful for cards that are a right of any cardname to have a settings section for plus cards that end with card name

  --John Abbe.....Fri Apr 16 21:33:18 -0700 2010


"right content+*rform" appears below, but if you try to go directly to the card you get an Application Error. Hoptoad says, "CacheError: cached card right_content+*rform found but it's not in database"

 

 

Update: There's a caching issue here. E.g., on universal Related tabs you'll see a list of *rform cards that have been renamed, but in closed view they still show as +*rform. It would be nice if we could force the relevant cache to update on all Wagns.

  --John Abbe.....Sat Apr 17 15:43:44 -0700 2010


Documentation:

mentions of rform to update (i updated the ones where it seemed like a good idea to me)

mentions of rform to update (haven't scanned these yet)

updates from hardsoft to contentdefault (haven't done this yet)

Ethan's updated structure, Virtual cards and Pointer.

Anything else need updating?

  --John Abbe.....Sat Apr 17 22:19:11 -0700 2010