Hi, I'm building a site for an art magazine. Among other things, they have articles and advertisements.
On the homepage they want to publish one list with articles and advertisements. Which articles or advertisements and the order of them all are hand-picked. To do this I've made a Home model with the following fields: - id (auto_increment) - linked_model (name of model: Article or Advertisement) - linked_id (id of item in the linked_mode) - publication_date (to set order of list) For the homepage I find all Home items and collect all relevant info based on the linked_ fields. I do this manually now, but it would be really easy if there is a way to create a sort of conditional belongsTo, based on the values of the linked_model field. Is this in any way possible? Is there a better way to solve this problem? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---