Skip to content

Pupulating relationship field in stand-alone edit form

31 Mar 2009

Pupulating relationship field in stand-alone edit form
This might be unnecessary with latest version of FormHelper. Or might still be needed smile Please make sure you have latest version first.

I've extended capabilities of Solspace Form_Helper plugin.
Now you can easily manipulate your custom relationship fields in ExpressionEngine stand-alone edit form.
Please note that you need the Form Helper plugin, that you can obtain here. Currently only 'weblog' type of relationship is supported.

Just add anywhere in the plugin body new function:

Usage instuctions:
{exp:form_helper:custom_relationship entry_id="{entry_id}" field_name="summaries"}{/exp:form_helper:custom_relationship}

Note that this tag requires an entry_id.

Example 1

Example 2

Comments

  1. Luke
    Luke 18 Aug 2009

    This is great thanks!

    My relationship options were very lengthy, so I added an ‘ORDER BY title’ to the end of your sql query to get an alphabeticised listing of options.

  2. liseli sikiş
    liseli sikiş 02 May 2010

    Great article. I really like it. Thanks for information a lot.

Comments are closed. To get support, email .(JavaScript must be enabled to view this email address).

Featured EE Add-ons

About

    Hello, my name is Yuri and I specialize in creating custom add-ons (plugins, modules, extensions) for ExpressionEngine and MojoMotor CMS.
    You can email me .(JavaScript must be enabled to view this email address)