Ok, we can always extend the show page for each one of this models,
for example Rooms:
<extend tag="show-page" for ="Room">
<old-show-page merge>
<content-header: replace>
<div class="header content-header">
<a to="&this.apartment.building.name" class="parent-
link">« <view with="&this.apartment.building.name"/></a><a
to="&this.apartment.name" class="parent-link">« <view
with="&this.apartment.name"/></a>
<h2 class="heading"><span class="view"><name/></span></
h2>
</div>
</content-header:>
</old-show-page>
</extend>
On 30 Jun, 21:34, Daniel M <[email protected]> wrote:
> Hi!
>
> I was wondering how is the best way to extend the back_link the idea
> is to link to another models beside the Parent (Model) to have more
> than one level on the back link.
>
> Example:
>
> Building has_many apartments
> Apartment has_many rooms
>
> the back link at Room show_page should be something like : « Building
> 1 « Apartment 1 « Room 1
>
> Any Ideas?
>
> Thanks in advance.
> Best Regards.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---