Jump to content

MarcC

Members
  • Posts

    380
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MarcC

  1. It's been brought up before, this idea of site-wide image libraries. They remind me of a bucket-type system, and PW's page system is sort of the opposite. You'd end up with a hybrid-bucket system. What about this feature, which shows if you use the image button without loading any images? (bolding mine) There are no images present on this page. Close this window and upload images, or select images from another page.
  2. Great points, Ryan. If there's one thing I learned from testing this with office staff, it's that you don't want to add too many features to an email-to-post setup. The "posting press releases" functionality we added was for attached documents only--should have clarified that. (Edit: Although getting a return email receipt with a link to edit the page is cool too)
  3. "Why did that weird image get posted to my web page???" "That must be your Outlook stationery background."
  4. Thanks man. Gonna try the module today. BTW what happens if the page field is required, and we remove the 1234 selected ID?
  5. Wow, thanks a lot apeisa. I guess I'll try that. I don't understand why this is necessary: $page = $event->object; ...but the rest makes a lot of sense.
  6. They want to archive it so it doesn't appear in the same list as all the other projects in the back end. First I said, "just unpublish it" but now they have items that are crossed out next to all the normal items. Since some staff are more comfortable using the back end, this is kind of a visual clutter problem. They even offered to move items back out of the archive by themselves if they ever need to reuse. What do I need to know to make this work in a cron job? Do I need to do $page->save after I change the parent?
  7. Nice, Ryan! Love the demo page too. About a year ago I hired a friend to write something like this--it's actually a script run via cron. It uses an email whitelist, and our local police department uses it to post press releases, daily logs, and other items to their website (I think it's like 3 or 4 separate addresses they can send to).
  8. http://nicenicejpg.com/ A friend of mine built this. I thought it was pretty funny. I have used placekitten.com in the past, but with a '90s rapper things just got a lot more fun.
  9. Thanks guys. Do I really have to use the checkbox? (And write a module?) My client is already using a drop-down menu for "In Progress," "Waiting for Customer," "Completed," etc. So a checkbox would actually make the design more complex for the client. They just want to set the item to "Completed" and see it archived sometime in the next day. They are using a front end that already hides an item if it is marked as Completed. $page->parent = $pages->get('/path/to/archive/page/'); Ah, of course. Seems so simple compared to what I was thinking.
  10. I would like to make a cron job that moves pages from one parent to another parent, if a given page field has ID == n. It's kind of a cleanup function--somebody can mark a "project" page as "complete" and it is auto-archived. I'm new to this sort of scripting, so I looked at the API to see if I could figure out how to move a page. Would I clone the page with the different parent, then delete the page? That seems like one option that stood out as I browsed the cheat sheet. Thanks for any tips.
  11. Looks really great, Ryan. I'm new to caching with ProcessWire--is the mechanism pretty much the same as normal where users are concerned? For example, I had a client using a heavily-cached CMS site where they had to clear the cache manually using a menu every time they updated a field on the site.
  12. Thanks, Ryan. I'm looking forward to the new header feature, but it's probably something that the client can live without for now.
  13. I have a client who will be using repeaters to keep a simple set of dated notes about a page. So, you open a page, go to the "Notes" tab and you have a repeater field that has a date, choice of author name, and a bodytext field. Is there a way to display the date of the note (if it is not empty) in the header for the collapsed repeater items? Also, is there a way to collapse all but the latest repeater entry by default?
  14. MarcC

    Hit 1000+ likes

    I have never given more likes to something that is obviously alien. Lovely eyes you have though
  15. Thanks Soma. We won't have thousands of pages, maybe a hundred max. So I'll try the code you were kind enough to provide.
  16. On the front end of a website I'm working on, I would like to sort some pages ("Project") by the nearest due date of their children. Here's an example: Before: Project 1 Assignment -- Due Date 20 January 2012 Assignment -- Due Date 21 January 2012 Project 2 Assignment -- Due Date 18 January 2012 Assignment -- Due Date 19 January 2012 After: Project 2 Assignment -- Due Date 18 January 2012 Assignment -- Due Date 19 January 2012 Project 1 Assignment -- Due Date 20 January 2012 Assignment -- Due Date 21 January 2012 Any tips on a good way to do this? Thanks. I can already sort the children fine, but the parents I dunno.
  17. Thanks Pete! YUP
  18. Thanks guys. I learned some new stuff today
  19. Good point, Soma. Maybe I'll just do that But I'd still like to know what I'm doing wrong here.
  20. I wanted to run this by the forum, see if anybody can help. I think it may be a concatenation operator problem, which I don't have much experience with. I'm trying to convert the default sitemap.php code to something that outputs into a variable. If I run the following code, I only get a link to "Home" and then a bunch of <!-- this line prints OK -->. Any tips would be appreciated. function sitemapListPage($page) { $siteMap .= "<li><a href='{$page->url}'>{$page->title}</a> "; if($page->numChildren) { $siteMap .= "<ul>"; foreach($page->children as $child) { $siteMap .= "<!-- this line prints OK -->"; sitemapListPage($child); } $siteMap .= "</ul>"; } $siteMap .= "</li>"; return $siteMap; } $outMain .= "<ul class='sitemap'>"; $outMain .= sitemapListPage($pages->get("/")); $outMain .= "</ul>";
  21. I have this thing, where I use different smilies depending on the font in use. Since the text editor here uses a proportional font, I would normally put in a nose, so the face doesn't appear squashed: [ instead of ] But when I'm using a fixed-width font, no nose is necessary, as it just elongates the entire face: instead of So the thing that gets me every time is that when I put in a nose, I get the "whodunit" smiley like rather than a smiling little guy. Anyway, not a complaint. And only mildly serious.
  22. The main thing I learned from using these sorts of things in the past is that I am going to be supporting it, as far as my clients are concerned. This includes admin themes, too. So, I'd almost rather say to a client, "go and stuff your ecommerce shop" (not really using those words of course) than "no problem, got an ecommerce profile right here." I've used the blog profile successfully, but I don't want to go back to being one of those big CMS guys with the world's largest toolkit and zero time to customize the hundreds of different layout frameworks and settings associated with each--to say nothing of actually adding new features. Now, the thing I really do like about turnkey profiles is that I can personally learn from them. In fact I wish there was a way to have an interactive demo profile, where you could go in, change some code on the skyscraper site, and see what it affects, rather than downloading it and creating yet another PW install + database setup. But I'm sure that's no small project.
  23. I love studying these. And of course I had my own init stuff going on with functions and variables, so I wondered what others were doing about that. Thanks Ryan!
  24. Yep, it was that bug that was causing the problem. All fixed now, thanks!
  25. Ah, looks like I may have encountered this bug (identical error message) and didn't know it was a bug--I thought it might have been due to my using getRandom(). I'll upgrade the ProcessWire install and see if it helps.
×
×
  • Create New...