Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.7.8
- This topic has 5 replies, 2 voices, and was last updated 9 years ago by
Steven Zahm.
-
AuthorPosts
-
07/24/2013 at 11:28 am #265646
Ryan Robinson
GuestHi,
I saw elsewhere on the site that there are plans for a full Customize Fields extension but no promises of when that would be, so I’ve begun attempting to manually modify in order to add the few extra fields I need. I’m guessing so far that:
1. I need to add the variables to class.entry.php
2. I need to add the get and set functions to class.entry.php
3. I need to add calling the set functions in class.entry-actions.php’s process functionWhere my question comes in is this: where is the page that calls the process function? i.e. How do I edit the “Add New” or “Edit” page that shows up on the Admin panel?
Or just correct me if I’m completely on the wrong track. I’m relatively new to PHP programming.
07/25/2013 at 3:05 pm #265808Steven Zahm
Keymaster@ Ryan
Actually, you shouldn’t need to add anything to the core Connections plugin. I’ve been restructuring code myself in order to support this.
1. Create and register a new metabox that get displayed on the add/edit entry admin page.
2. Add a cn_{action-name} that only is fired in the admin.
3. Grab you the values from $_POST.
4. Since I don’t have an entry meta API yet you’ll have to write methods to add/update/delete from the entry_meta table. You’ll also have write methods for retried and display from the entry_meta table, you’ll want to write then in a way that you can use them in the template files.That’s pretty high level … but it is the same exact path I’m going to take.
07/29/2013 at 12:07 pm #266034Ryan Robinson
GuestI’ve gotten started trying to do the first step. Is there a custom post type created for entries? So far I can’t find one – haven’t scoured all the code, just the pages that made the most sense to me – but I’m not otherwise seeing how to add a meta box to Connections listings.
07/29/2013 at 1:09 pm #266037Steven Zahm
Keymaster@ Ryan
Look in
connections.php
where the callback is to register the metaboxes. The actual metabox code is in theclass.form.php
file [for now, that code is up next to be completely refactored].08/06/2013 at 10:32 am #266589Ryan Robinson
GuestSo far I am really not getting far. I can get a new box and/or new fields within an existing box to appear on the Add/Edit page, but I’ve been struggling for a while at how to get it saved into the entry database.
08/07/2013 at 1:42 pm #266703Steven Zahm
Keymaster@ Ryan
Take a look at this file:
https://github.com/shazahm1/Connections/blob/develop/includes/admin/class.actions.phpRegister your own action
https://github.com/shazahm1/Connections/blob/develop/includes/admin/class.actions.php#77Then create your action callback to save the data in the connections_meta table.
Because I have no API in place yet for saving/retrieving/displaying data from the connections_meta table; you’ll have to work that out.
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.