Home / Topic / Extra reference to items in Lua display group

Extra reference to items in Lua display group

Home Kwiksher Forums Feature Request (RETIRED) Extra reference to items in Lua display group

Viewing 2 posts - 1 through 2 (of 2 total)
  • #8979

    It would be useful if there was an extra line in the generated Lua code that creates a reference to each item that is being added to the display group.Currently:

    Code:
    menuGroup:insert(sun)

    I would like:

    Code:
    menuGroup:insert(sun)menuGroup.sun = sun

    I want to add custom Lua code outside of the generated modules that references objects in the display group.Currently I would have to use integer indices e.g. menuGroup[3] which means I need to already know the index of each object. Also this is dangerous as the index could change if objects are added to/deleted from display group.I would like to not have to worry about the index i.e. use menuGroup.sun

    Anonymous
    #11168

    We will do that in the next release. thanks!

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Privacy Preference Center

Strictly Necessary

these coolies are for WP-SpamShield, gdpr-wp, woocommerce, paypal

PHPSESSID, SJECT16, JCS_INENREF, JCS_INENTIM, gdpr, woocommerce_cart_hash, woocommerce_items_in_cart, woocommerce_recently_viewed, wordpress_, wordpress_logged_in_, wordpress_sec_, wordpress_test_cookie, wp_woocommerce_session_, AKDC, akavpau_ppsd

Functionality

WordPress cookie created when auto-saving a post in the editor.

wp-saving-post, wp-settings-, wp-settings-time-

Performance

google analytic

__utma,__utmb,__utmc,__utmz,_ga,_gid,_gat

Advertising