Tagged: add_more
- This topic has 4 replies, 2 voices, and was last updated 7 years, 2 months ago by
cosmocanuck.
-
AuthorPosts
-
-
December 4, 2014 at 8:25 pm #2962
cosmocanuckMemberHi again. After the update, my issue from here is “kind of” resolved…
https://piklist.com/support/topic/add-more-text-editor-field-not-editable/
…but not 100% – I need to use a workaround.
If I add a second “Recipe steps” section, the first “Recipe step” add-more field therein is still un-clickable and lacks the editor toolbar. But, if I continue to add a second Recipe Step, that one works fine. I delete the first one and from there on in, it all works.
Seems like a bit of a bug (?), but at least there’s a way to make it work until it gets ironed out.
Thought you’d want to know…
Adam
-
December 5, 2014 at 3:32 pm #2982
SteveKeymaster@cosmocanuck– Let us know if this was fixed in v0.9.4.23
-
December 5, 2014 at 6:48 pm #2987
cosmocanuckMemberHi Steve! I upgraded, and now I’m afraid even my “fix” (which perhaps was not reliable anyway) no longer works. New “recipe step” editor fields in a second section, come up unclickable and with no toolbar.
It’s not super critical right now for me, as most recipes, even if they have multiple ingredient groups, only have a single list of steps. But I want to of course be prepared for any eventuality! So do keep me posted, and I’ll keep upgrading and testing as I see the new versions arrive.
-
December 9, 2014 at 11:53 am #3007
SteveKeymaster@cosmocanuck– If you still need help with this let us know… and please post some code.
-
December 9, 2014 at 1:20 pm #3013
cosmocanuckMemberThe second group of recipe steps now produces text editor boxes that I can at least type into, which is good. But the toolbar is missing. The initial, first group of steps has perfectly functional text editor boxes.
Here’s the code for my metaboxes. It’s the “recipe_step” field within the “steps_section” group that’s giving me grief…
<?php /* Title: Recipe Details Post Type: recipe Priority: high */ piklist('field', array( 'type' => 'editor' ,'field' => 'recipe_description' ,'template' => 'field' ,'label' => __('Description') ,'description' => __('Brief description/summary of the recipe') ,'options' => array( 'drag_drop_upload' => 'false' ,'tinymce' => true ,'quicktags' => true ) )); piklist('field', array( 'type' => 'text' ,'field' => 'recipe_serves' ,'label' => __('Servings') ,'description' => __('For example, "3-4"') ,'attributes' => array( 'class' => 'text' ) )); piklist('field', array( 'type' => 'group' ,'field' => 'ingredient_section' ,'label' => __('Ingredients') ,'description' => __('Add additional Section if a recipe has separate listings for different parts, i.e. the salad and the dressing.') ,'add_more' => true ,'fields' => array( array( 'type' => 'html' ,'label' => __('Ingredient section') ,'columns' => 12 ,'value' => '<p><em><strong>Note:</strong> for consistency, please only capitalize sentences and Superior product names; otherwise keep all text lower case.</em></p>' ,'attributes' => array( 'class' => 'recipe-subhead' ) ) ,array( 'type' => 'text' ,'field' => 'ingredients_component_title' ,'label' => __('Section Title (can be omitted for first section, or if there’s only one)') ,'columns' => 12 ) ,array( 'type' => 'group' ,'field' => 'ingredient' ,'add_more' => true ,'fields' => array( array( 'type' => 'text' ,'field' => 'ingredient_qty' ,'label' => __('Qty') ,'columns' => 2 ) ,array( 'type' => 'textarea' ,'field' => 'ingredient_descrip' ,'label' => __('Description') ,'columns' => 10 ) ) ) ) )); piklist('field', array( 'type' => 'group' ,'field' => 'steps_section' ,'label' => __('Steps') ,'description' => __('Do not add numbers to the steps; they\'ll be added automatically.') ,'add_more' => true ,'fields' => array( array( 'type' => 'html' ,'label' => __('Group of steps') ,'columns' => 12 ,'value' => '' ,'attributes' => array( 'class' => 'recipe-subhead' ) ) ,array( 'type' => 'text' ,'field' => 'steps_component_title' ,'label' => __('Section Title (can be omitted if there’s only one section)') ,'columns' => 12 ) ,array( 'type' => 'group' ,'field' => 'step_group' ,'add_more' => true ,'fields' => array( array( 'type' => 'editor' ,'add_more' => true ,'field' => 'recipe_step' ,'options' => array ( 'wpautop' => true ,'media_buttons' => false ,'tabindex' => '' ,'tinymce' => true ,'quicktags' => false ) ) ) ) ) ));
-
-
AuthorPosts
- You must be logged in to reply to this topic.