Closed GoogleCodeExporter closed 8 years ago
Thanks. I see it: the "custom top-level menu" position and the "Show in Menus"
dropdown isn't sticking (it's saving to the database, but the form isn't
repopulating). Looks like I botched the variable name.
The fix is to edit the custom-content-type-manager/views/post_type.php file,
around line 420, replace the "<!--!show_in_menu -->" section with the following:
<!--!show_in_menu -->
<div class="cctm_element_wrapper" id="custom_field_wrapper_cctm_show_in_menu">
<label for="cctm_show_in_menu" class="cctm_label cctm_text_label" id="cctm_label_cctm_show_in_menu"><?php _e('Show in Menus', CCTM_TXTDOMAIN); ?></label>
<select name="cctm_show_in_menu" class="cctm_dropdown" id="cctm_show_in_menu">
<option value="1" <?php print CCTM::is_selected('1',$data['def']['cctm_show_in_menu']); ?>><?php _e('Yes'); ?></option>
<option value="0" <?php print CCTM::is_selected('0',$data['def']['cctm_show_in_menu']); ?>><?php _e('No'); ?></option>
<option value="custom" <?php print CCTM::is_selected('custom',$data['def']['cctm_show_in_menu']); ?>><?php _e('Custom'); ?></option>
</select>
<div id="cctm_show_in_menu_wrapper" style="margin-left:20px;">
<em><?php _e('Custom top-level Menu', CCTM_TXTDOMAIN); ?></em>:
<input type="text" name="cctm_show_in_menu_custom" id="cctm_show_in_menu_custom" value="<?php print htmlspecialchars(CCTM::get_value($data['def'], 'cctm_show_in_menu_custom')); ?>"/>
</div>
<span class="cctm_description"><?php _e('Whether to show the post type in the admin menu. Change this to <em>Custom</em> to specify a top level page like <code>tools.php</code> or <code>edit.php?post_type=page</code>', CCTM_TXTDOMAIN); ?></span>
</div>
Sorry about that -- this will included in the next patch, or you can download
the development version.
Committed revision 495671.
Original comment by ever...@fireproofsocks.com
on 26 Jan 2012 at 4:15
Original issue reported on code.google.com by
2...@emblem.cc
on 26 Jan 2012 at 1:34