- This topic has 10 replies, 2 voices, and was last updated 8 years, 4 months ago by
Steve.
-
AuthorPosts
-
-
October 19, 2012 at 9:12 pm #312
ameeker
MemberHi guys,
I’m so intrigued by Piklist, but I’m NOT a developer, per se. More of a power user transitioning to developer… so it’s particularly intriguing to me.
Having said that, here’s what I’d like to accomplish right now, and I’m certain I can do it perfectly with Piklist, but I haven’t yet figured out how. If (or WHEN) I do, I’d love to write up a post about how I did.
I have a multisite network of sites for a particular niche. Currently, the sites replicated for clients look and feel like the normal WP Dashboard on the backend, even though that’s not really what they need (it’s too complicated for most of them, and I need to move it forward by giving them some custom post types). Their types of custom posts also have a different “status” which Piklist would allow. It would be also be simpler for them if they could change and or move items in their sidebars without even accessing “Appearance>Widgets.”
I’d like to offer them a Settings Page where they can just complete the information that would fill out their sidebars with the information/images/ads/widgets they need.
Does that make sense yet? It’s a simple theme options panel, I suppose.
From the tutorials and demos, I can see how to create individual widgets with Piklist, and Settings Pages. But, I don’t understand if I should be first creating a widget with Piklist that is then accessed somehow through the Settings page and then output to particular page templates… or if I can simply create fields for the Settings Pages and output those fields to the page template.
And, I don’t understand through the documentation how to output what I create with the Piklist arrays.
I AM good at following directions. If I’ve missed it in the tutorials or documentations, please feel free to send me to a particular point and I’ll go reread!
-
October 19, 2012 at 10:14 pm #313
Steve
Keymaster@ameeker– Good to hear from you. You can easily go either route with Piklist: Settings Page or Widgets. If you want your client to run the website from one place, a Settings Page seems like the best place.
SETTINGS PAGE
Wherever possible Piklist uses the standard WordPress functions, and that’s no different with Settings Pages. Once you create your Settings, you can retrieve them on the frontend with the get_option function. Piklist stores all options in a settings array, and get_option pulls the data. Then you grab the individual setting from that array. This tutorial should help, especially the last paragraph.WIDGETS
Piklist Widgets are super easy. If you look in the /add-ons/piklist-demos/parts/widgets/ folder in the Piklist plugin, you’ll see four files for two widgets. You can open each to see how they work. This tutorial should help explain it.Also, in Piklist Settings in your WP admin you can turn on the Piklist Demos add-on to see how everything works. These demo widgets and settings will be activated.
Let us know if you have any more questions.
-
October 19, 2012 at 10:17 pm #316
ameeker
MemberSteve-
I actually just found the last paragraph of that tutorial that mentions how to then get it into the theme as your email came through. That’s what I needed and didn’t see (thought clearly it’s there in the documentation!).
Thanks! I’ll keep playing with it tonight.
-
October 20, 2012 at 12:03 am #318
ameeker
MemberThanks – I was able to create the Settings panel and the demo fields for it, but I can’t get those fields to display in my template using the code in the last paragraph on this page: http://piklist.com/user-guide/tutorials/building-settings-pages/
I can see when I click “save changes,” that the changes to the fields in the Settings are being saved.
No matter what template I try to include it in, it doesn’t show.
-
October 20, 2012 at 9:00 pm #324
-
October 20, 2012 at 9:32 pm #325
ameeker
MemberHi Steve,
Thanks for the reply. I registered the settings page by copying and pasting the code in the tutorial, and then copied and pasted the full settings page for demo-settings.php and placed it in my theme folder under piklist/parts/settings/. I then copied and pasted the last paragraph at the bottom of the settings page tutorial into my single.php immediately prior to the loop (which at the time didn’t have that last echo statement in it).I didn’t actually change anything in any of those pieces of code, just copied/pasted all of it.
-
October 20, 2012 at 10:50 pm #326
Steve
Keymaster@ameeker– I added the echo statement so you can see a very basic way of using the settings.
The Tutorial shows how to register settings, create fields and retrieve fields. What it doesn’t show it how you would use them.
Can you give me an example of one of your settings, and how you plan on using it in your theme?
-
October 20, 2012 at 11:06 pm #327
ameeker
MemberThanks, Steve. Sure – each of the themes have (what is right now a widget area) used to display an image. So, of course, people who aren’t familiar with WordPress even have to learn enough to even know to go to Appearance/Widgets, and then to use the entire Widget interface, which is not hard we know… but if we could cut that out entirely, that would be better.
One example of how we’d like to use this is to give them a field to either (preferably) upload an image that would then display in that area, or paste in the img html in a text box which would then display it.
Or, allowing them to change the background colors of particular headings.
-
October 20, 2012 at 11:33 pm #328
-
October 20, 2012 at 11:59 pm #329
ameeker
MemberOh snap.
That’s fantastic.
-
October 21, 2012 at 8:50 am #330
Steve
KeymasterI never get tired of hearing that. 😉
-
-
AuthorPosts
- You must be logged in to reply to this topic.