• Resolved Tsun4Ever

    (@tsun4ever)


    Hi,
    im currently exploring technical solution to build a website for a client.
    requirement are pretty simple to express:
    the objects of the domain are “property asset” and “portfolio”
    a) A property asset will have his own custom fields.
    b) A portfolio will have his own custom field and will belong to only one user.
    c) A portfolio will contain 0 or many assets
    c1) for each asset owned by a portfolio, we should be able to define editable custom fields like : “acquisition date, %stake and invested amount”. The admin should be able to edit those fields in the portfolio

    a) b) c) are easily handled trough CCTM but how about c1) requirement ?
    is it possible to do such a thing from an admin point of view and from a front end point of view ?

    thanks for any insights

    Cheers

    https://wordpress.org/plugins/custom-content-type-manager/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor fireproofsocks

    (@fireproofsocks)

    If you mean that you want asset A to have custom fields B,C,D and asset B to have custom fields E,F,G, then the answer is no: that defeats much of the purpose of the plugin. The goal is to normalize data definitions, i.e. standardize the custom fields so that a given data type (e.g. “asset” or “property” or “portfolio”) always has the same number and type of fields. You run into trouble when one instance of a record has one set of fields and another instance of a record has a different set of fields. Although I can see some reasons for doing this (there is a feature request for this already I believe), operating a site like that does cause a lot of problems when it comes to maintenance and reporting.

    The best workaround I could recommend would be to add a single “Notes” field and add your various notes there. Hope that helps.

    Thread Starter Tsun4Ever

    (@tsun4ever)

    Hi fireproofsocks,
    thanks for your reply, appreciate that you take on your time.
    this is not what i mean.
    a portfolio is a list of assets.
    so in my portfolio i want to be able to manage a kind of table of assets belonging to this portfolio.
    So i’m looking to do something like that in the portoflio custom post type from a admin point of view :

    Assets table
    Col 1 | Col 2 | Col 3
    Asset name picked up in all the assets list | Acquisition date | Invested Amount

    with the ability to add / delete row of data

    From the frontend point of view, we want to be able to display freely this table.

    Is it more clear maybe ?

    Plugin Contributor fireproofsocks

    (@fireproofsocks)

    Thanks for clarifying. It sounds like you could define 2 post-types: assets and portfolios. You need a repeatable relation custom field attached to the portfolio where you can select 1 or more assets for that field. In the manager, it’s not a table (by default), it’s just a sortable list, but on the front-end you can format it like a table.

    You can customize the manager HTML to make it look like a table, but that’s just aesthetic — but you can customize the templates used so that the manager interface looks the way you want and displays the custom fields you want for each selection. See https://code.google.com/p/wordpress-custom-content-type-manager/wiki/CustomizingManagerHTML

    Would that work?

    Thread Starter Tsun4Ever

    (@tsun4ever)

    ok i see, i had a look to the video and i get the idea on how to customize thos HTML customs fields.
    Thanks for this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Repeated fields table’ is closed to new replies.