Forum Replies Created
-
AuthorPosts
-
SteveKeymasterDo you have any PUBLISHED posts with my_model?
SteveKeymasterChanging the SCOPE will allow you to change the post type. If you change it to
'scope' => 'piklist_demo'you should see any Published posts from the Piklist Demo CPT.
SteveKeymaster@chrisben– Grab the beta from trunk, and activate Piklist Demos. The relationship box is shown there. You can use the code for your own project.
SteveKeymasterHey Marcus– You can just add Roles the normal WordPress way, and they will show up in the list.
Also, we would love to see your code. Always great to see what the community has built.
SteveKeymasterJust a few hours late 😉
SteveKeymastermarcus– This tweet may excite you:
Finishing up the new upload field. pic.twitter.com/2Npef41fCB
— Piklist (@piklist) July 29, 2013
SteveKeymasterThe correct code will be added in the next version.
Adding Menu and Page icons is pretty easy:
MENU ICON:
When you register a post type, include themenu_iconparameter with a path. Here’s the path to an image in Piklist.
'menu_icon' => plugins_url('piklist/parts/img/piklist-icon.png')PAGE ICON:
This is all CSS. To add it to the Piklist Demos, we would add this to our piklist-admin.css file:#icon-edit.icon32-posts-piklist_demo { background-image: url('../img/piklist-page-icon-32.png'); background-repeat: no-repeat; background-position: 0 0; }You need to target:
#icon-edit.icon32-posts-[your post type].
SteveKeymasterThanks. Will be removed in the next version.
SteveKeymasterThis is supported. Check out the Piklist Demo included with Piklist.
SteveKeymaster@ken– Try downloading again. It should be fixed now.
SteveKeymasterNo. If you have want to submit code please email us a SVN patch.
SteveKeymaster@jamescampbell– Have you taken a look at how Piklist implements help? Not much different then you describe, but we have a few other parameters:
<?php /* Title: Piklist Demos Capability: manage_options Page: piklist_demo,piklist_demo_page_piklist_demo_fields,profile */ ?> <p> <?php _e('The Piklist Demos post type is designed to show off Piklist features, test them, and demonstrate how to use them.', 'piklist');?> </p>
SteveKeymasterhey Marcus– Let us know if the beta fixes your issue >
SteveKeymasterGreat. Closing this ticket.
SteveKeymasterPlease change line 32 in C:\html\master\personal\ssgnewwp\wp-content\plugins\piklist\parts\shared\admin-page.php to:
<a class="nav-tab <?php echo (isset($tab['page']) && (isset($_REQUEST['tab'])) == $tab['page']) || (!isset($_REQUEST['tab']) && !isset($tab['page'])) ? 'nav-tab-active' : null; ?>" href="?<?php echo http_build_query(array_filter($url)); ?>">Let me know if that works
-
AuthorPosts