krafthaus / bauhaus

Laravel 4 Admin Generator
http://bauhaus.krafthaus.nl/
GNU General Public License v2.0
1 stars 0 forks source link

Print FK table title inside the current list #46

Open sergiocastrovale opened 9 years ago

sergiocastrovale commented 9 years ago

I have a Block model that belongs to Page. How can I display the page title for each of my blocks? I can't seem to find it anywhere in the docs, just the case for populating dropdowns:

$mapper->belongsTo('pages')->display('title_pt');

How can I do the same in my Block list?

sergiocastrovale commented 9 years ago

Anyone? This seems to be the best admin package around, but considering it's still very unstable, the lack of support isn't a very good sign ... I can't find this anywhere and it seems like a trivial thing: to print the 'name' field of my foreign-related table in my current list view.

mrk-j commented 9 years ago

I am having this issue at the moment. I think I have a possible solution, will send a PR as soon as possible.

I created a new PR, my previous fork was not maintainable for me because I made adjustments in the master branch. Check my latest comments in this issue for the latest PR.

mrk-j commented 9 years ago

Hi @sergiocastrovale, maybe you can checkout my pull request #54. Is this what you are looking for? I think it is a proper solution.