Wanted to offer some props…
Saturday, May 5th, 2007
Well, I haven't caught his name yet, but I found a fellow "give something back" person who has provided me with some great information. Because if his assistance, I wanted to offer up a small amount to him via a link. So if you're looking for more WordPress and ZenCart stuff, and can't find it here (which is very possible, as I'm pretty small right now!), then feel free to look at the goodies "andrabr" has to serve up. There's a lot of goodness over there, and I'm getting ready to dive in. I found him via this conversation on integrating WordPress with ZenCart. Very nice.
I also wanted to share a nice little plugin I wrote tonight. It's probably my first "official" one, and I'm sure it needs to be cleaned up. I'll probably play with it more.
Anyway, someone on one of the lists I'm on is trying to get a dynamic stylesheet to work with WordPress. She has a client who needs a different background image to show up depending on what page you're on. Normally, you'd simply accomplish something like this just by using typical WP stuff:
<php if(is_page('1')) { ?>
do stuff for page ID #1
<?php } ?>
However, the client needs to maintain themselves, and if they ever add or delete a page in the future, they would have no idea how to edit the code to get the new background to show up. (Or, if they did, they'd probably screw it up - or many other things could happen.) So she needed it to be as dynamic as possible. In a perfect world, the client would create a page, add in content, and upload an image (with the same name as the page), and it would be done.
Happily enough, I figured it out!