• First of all, this plugin is very nice. Thank you for updating the old
    “custom field gui” plugin!

    I have an advanced feature request: category-specific or page-template-specific fields. Here are two examples:

    1. Let’s say I have a blog for book reviews and movie reviews; this has two post categories called “Book Review” and “Movie Review”. For the books, I want a few custom fields: ISBN, Author, Publisher, and Number of Pages. For the movies, I want a few different custom fields: Director, Studio, Length, and Length. When I first create a post, it should just show the default custom fields for every page. But after I select “Book Review” as the category and hit save, when the page reloads I would like to see the book-related fields.
    2. Let’s say a have a static brochure web site for a non-profit organization with two special page templates: one for conferences and one for publications. For the conferences, I need information like Venue, Theme, Guest of Honor, Conference Chair; for the publications, I need information like Editor, Number of Pages, Volume, and Issue. When I first create the page, it should just show the default custom fields for every page. But I after a select “Conference” as the page template and hit save, when the page reloads I would like to see the conference-related fields.

    Does that make sense? What do you think?

    Take care,
    ~randy

    https://www.ads-software.com/extend/plugins/custom-field-template/

Viewing 8 replies - 1 through 8 (of 8 total)
  • I released the version 1.0.1. In the setting page, I added the category sections in each template. If you set Category ID (comma-deliminated) in the field, in the edit post page, templates will be switched when you check the categories. About page-template-specific fields, if you save the post once, the last template you selected before saving will be shown in the next time. So I think it is not necessary to interlock with the page custom field template and page template. Hmmm, I will keep thinking. Anyway, please try out the category switching. Thanks.

    Hi Hiroaki,

    thanks for your great plugin!

    I also have a question about the category ID: I have one template, I want to be only shown for one category. But regardless of what I enter, the template is shown for all categories.

    Second: The title of the template form is not shown (it is always “custom field template”)

    I’ll be grateful for any help!

    Best wishes

    I released the version 1.0.3. If you set the category ID to the custom field template, it is only shown in the case that you check the category you set. The title of the template is shown if you set multiple templates. Thank you.

    Hi Hiroaki,

    thanks, works nearly perfect, but there is one bug:

    If I log in with a non-admin user, the ajax function to load the template for certain categories only doesn’t work at all.

    Can you reproduce this?

    Thread Starter randyhoyt

    (@randyhoyt)

    Page Templates: I think you are right about page-template-specific fields; they are not necessary. What I think would be helpful, though, is if you could set up some templates to be used only on “Pages” and some templates to be used only on “Posts”. I think that would eliminate the confusion.

    Category: I think the way you have hooked templates to categories works very nicely! Here are a few of the things that are not working the way I would expect, though I should reiterate that I think this works very nicely!

    • Set up a new template for a category and then immediately go edit a post with that category. I would expect it to pick the template automatically. Instead, I have to uncheck and then recheck the box.
    • Select one category with a template; the correct template loads. Next, uncheck the category and the template fields are all gone. I would have expected it to go back to the default template fields.
    • Check two categories, both with templates; the template fields are those belonging to the second category, as expected, but the dropdown still says “Default template”; I would have expected it to have the new template name. There isn’t any way to switch to the other template to edit the fields for that one; it would be nice if the new templates were added to the dropdown so you could switch back and forth between them. Then uncheck the second category and the template fields all go away; I would have expected them to change to the fields for the template associated with the first category.

    Overall, really great work! This is such a cool plugin.

    Thread Starter randyhoyt

    (@randyhoyt)

    I have also been thinking that it would be useful to have some fields that appear on all page templates. The way I’m using the plugin, I need a certain set of fields that apply to all pages; then I have some other sets of fields that depend on what kind of a page it is (an issue of a publication, a conference, an award year, etc.). Right now, I’m duplicating all the shared fields across all the templates, but that’s a little difficult to maintain.

    Hi pampfelimetten,
    I tried it as a non-admin account, but it seems to work properly. Could you tell me the account level and any addditional information about your situation. Thanks.

    Hi randyhoyt,
    Thank you for your good suggestion. I will consider about the page and category actions in the next release.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Custom Field Template] Another Advanced Feature Request’ is closed to new replies.