![]() |
Adding custom fields to entry? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Adding custom fields to entry? (/showthread.php?tid=14930) |
Adding custom fields to entry? - El Forum - 01-20-2009 [eluser]mk3[/eluser] What I need is best approach to do the following: I want to do something similar to Magento commerce atributes: While makin'link directory I want to add custom fields to some entries for example for hotels i want to add whether they accept credit cards, is there wifi access etc. Any sugestions would be great. @ the moment considered types of entries are: article, accomodation, bars, leisure, culture. Adding custom fields to entry? - El Forum - 01-20-2009 [eluser]GSV Sleeper Service[/eluser] a basic schema attributes ---------- id name eg 1, wifi 2, restaurant hotel_attributes ---------------- hotel_id attribute_id eg 1, 1 1, 2 //hotel 1 has wifi and restaurant 2, 2 //no wifi in hotel 2 |