Hello Kevin and all other members of the group. New here and fairly new to Elgg. Building a product prototype using Elgg. Currently using event calendar as the basis for a calendar engine for our products date based entities. Have one plugin and new data type working and another in the works. I noticed that event calendar items do not show up in search (not registering its type and subtype). Is this intentional?
btw... like the plugin quite a bit. Thanks
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Kevin Jardine@kevin

Kevin Jardine - 0 likes
- Brian Chapin@bchapin

Brian Chapin - 0 likes
- Kevin Jardine@kevin

Kevin Jardine - 0 likes
- Brian Chapin@bchapin

Brian Chapin - 0 likes
- ibrahim@ibrahim.bm

ibrahim - 0 likes
You must log in to post replies.Hi Brian,
glad you like it!
I wasn't aware of the new search rules for 1.7 until recently. You're right - this is a bug and I'll fix it in the next release. Sounds like you already know to put:
register_entity_type('object','event_calendar');
in start.php
Adding it to the end of event_calendar_init() works for me.
I've already added it. I've only been developing in the 1.7 environment so I am unaware of pre-1.7 search rules. Just noticed that search results weren't showing up.
Let me know if there is anything I can do to help your effort. I think a calendar is a must for elgg so I am happy to pitch in.
Besides the register_entity_type I've only had to modify your code in one other area to make it work for my project. I added a custom view for my new event_type using entity->view = "object/event_type" in your models/model.php. That allows me to use my object view for my custom event_type when items are listed via search. Combining that with a url handler and an icon handler allows me to hijack the event display in my widgets and pages. Seems to work well.
It will be a bit of a maintenance problem as I need to track your changes with every release. A small price to pay!
I'm always looking for new features. Would you be willing to email me your code? If so, I can PM you my email address.
I'd be happy to share what we're doing with your mod. I will have to sanitize the code a bit before sending it out. When building prototypes I tend to keep notes in the code that discuss marketing and business issues I'm considering when making feature decisions. Helps my aging brain remember "why on earth I did that".
Elgg needs a central calendar engine that other mods can use when creating date based items. I am developing several mods for our project that include date data. A core requirement for our project is that anything with a date should be able to show up on the calendar.
The first mod is up and running. It is similar to the tasks plugin that has been floating around in that it includes date items in its data model. I think I have a mod prototype architecture / specification doc I created that I can send to you. It lays out what I think your mod does and how it could be used as an engine for other mods that want to use its core functions and display capabilities.
hi kevin, Brian,
I am working on the event calendar and i just need to add some more form field to the current version (file upload, and sub category). so is their anything i have to work on database tables? actually i am very new to ELGG. Need your help ..
Thank you