nestedset-app icon indicating copy to clipboard operation
nestedset-app copied to clipboard

split table for multiple translations

Open illuminate3 opened this issue 9 years ago • 5 comments

I understand that this package/app is probably no longer being maintained but I was wondering how would you recommend splitting the page table into 3 tables using a pivot table.

I moved the slug to the "contents" table but now I'm having trouble getting the slug through the eloquent relationship.

what would you recommend?

Thanks!

PS: I did try out cruddy but it's a little more than I need for my project.

illuminate3 avatar Apr 14 '15 04:04 illuminate3

You want to split node-related stuff to another table, right? Why three tables?

lazychaser avatar Apr 14 '15 05:04 lazychaser

I've actually have been working on porting this app to Laravel 5 to use it as a base for a CMS.

Pages table: hold mostly numerical data Contents table: I was thinking of adding the ability to have locale based translations. I'm working towards having slugs being done in the target language. Even though I'm a native English speaker, I hate seeing every thing based on English. pivot table: But after having thought of this, I probably don't need this.

What I'm working on is going to be the front end module for this project: https://github.com/illuminate3/rakko

illuminate3 avatar Apr 14 '15 13:04 illuminate3

Ah, I see. But converting app to Laravel 5 is a real pain, I would rewrite it completely. Actually, I've been working some time on demo app for the package, but I didn't finish it yet, I can publish it for your investigation. It uses category/product theme, though.

lazychaser avatar Apr 14 '15 16:04 lazychaser

I would appreciate it! Thanks!

illuminate3 avatar Apr 14 '15 20:04 illuminate3

https://github.com/lazychaser/laravel5-nestedset-demo

lazychaser avatar Apr 15 '15 05:04 lazychaser