On Thursday, July 17, 2014 11:10:46 PM UTC-6, Quiliro Ordóñez Baca wrote:I
found I have to copy the "index-page" tag definition for "Employee"
on the application.dryml file and change the <collection param/> tag
with something else.
Just an FYI, this is the kind of thing where DRYML shines. You don't need
to copy the whole index-page tag definition to be able to change a
parameterized attribute.
In app/views/model_name_pluralized/index.dryml
<index-page>
<collection:> # the : tells it to modify the collection parameter of the
parent tag, index-page in this case
<card:> # note, you're drilling down into the collection tag and
calling it's card parameter
you'll probably make changes to other parameters of card since
card has multiple pieces
</card:>
</collection:>
</index-page>
Then again, collection is a pretty simple tag that displays a group of
cards. Extending the card definition probably makes more sense if you're
looking to modify a collection but still retain the layout style.
<extend tag="card" for="ModelNameUsedInCollection">
<old-card merge>
...
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.