-
Posts
380 -
Joined
-
Last visited
-
Days Won
1
Everything posted by MarcC
-
I have a checkbox I'm using to control whether an article is shown on the front page. The field name is display_options, a page array set to multiple pages API ref, displayed as checkboxes. Its page array parent is /tools/display-options, and there are two children, not-shown-on-front-page and not-shown-in-archive. Right now I just want to make sure that the first one works: Not Shown on Front Page. Here's the working "before" code with no test for the checkbox: $stories = $pages->get('/news/co-op-news')->children("limit=4"); Here's the code with a selector added for the front page display test: $stories = $pages->get('/news/co-op-news')->children("limit=4, display_options!=not-shown-on-front-page"); ...but that shows only the article where I have checked "Not Shown on Front Page" (the opposite of what I want to see). :-/ I also tried this: $stories = $pages->get('/news/co-op-news')->children("limit=4, display_options=not-shown-on-front-page"); ...and no articles show up at all, checked or unchecked. Any ideas? Thanks. Haven't used checkboxes before.
-
I do too. Am I correct in thinking that supporting multiple database systems is a significant limitation in terms of the CMS's database tools & feature set? Of course. And it's a phenomenal CMS. I'm interested in seeing what sort of other projects might use the framework for their own CMS, with different results, or a slightly different philosophy, etc. (who knows?) This really hit me during my last PW project. I compared development times and feature set with similar websites in other enterprise CMS systems and hurriedly put away my calculator before retroactive depression set in. Ha. See, that's what I like about it, too. It may be a horse-and-buggy setup compared to some, but if so it's an extremely nice one. I normally find it difficult to keep dogfooding the old stuff once the new dogfood arrives, but I haven't had that experience with my Textpattern installs. I keep them running and enjoy them for what they are. Yep, seems unlikely at this point...but who knows where things will go. And for all I know, it might not be a good fit in some way I just don't understand. I have complete trust in Stef's ability to really get things moving and break through issues that are holding things up. It's good to hear that!
-
Excellent comments, Ryan. I wondered myself to what extent it can be database independent--wondering if it would have to be a short list of supported databases or if it just needs to be open for extensions in that area like some frameworks are. I'm not really sure where that feature request came from, though, and do worry a tiny bit about the scope of TXP5 if that's going to take a lot of work. But Stef is a really good release-early-and-often-type guy, and I can tell he's champing at the bit to get something out. He asked me today if I've had a chance to try out the spark/plug setup yet, so I'll probably do so. Really interested now to see what kind of project might come by and pick up ProcessWire as the API/framework for a public, open-source CMS. I really think it could be a great platform for getting into advanced publishing UI, workflow polishing, etc. More lipstick and eyeliner than girders. Or something.
-
adamkiss, I originally emailed the idea to Stef Dawson. He said the idea "actually has merit" but I haven't heard anything since. It's barely been a week since that email, but I think there's a good chance that the current direction (using spark/plug) would be resumed. He's put a year into it already and has some documentation written and a start on a small portion of the TXP5 admin panel (a single tab, but still). Also, Stef is the only active TXP5 developer at this time. From the other devs (either plugin devs or TXP4 development) mostly there is a strange reluctance to comment in depth on the entire issue of TXP5 development. I get the feeling that there is a lot of hesitance to build on a framework like spark/plug, but again nobody has really gone into detail about their feelings for what should be changed with TXP5 development when those complaints come up. That could be because Stef is doing all the work. IMO there are a lot of PHP developers in the world who are sick of hearing about frameworks, period. And for me it's a bit awkward to see ProcessWire confused with a coding framework, just because it's called a "content management framework." Sometimes I wish we could just call it "ProcessWire Developer's Friend CMS Builder 2013--Keep Coding the way you Always Have" or something like that. I've also heard from former TXP people who are now using ProcessWire as a CMS--positive comments, of course, but I'd imagine that to a TXP developer that could really push the wrong button. Kind of a touchy issue. Touchy because TXP5 development has been slow, I think.
-
Hi Viking, welcome! I recognize you from the TXP community. BTW where does your name 'Viking' come from? (I mean, I know who the vikings are, but...)
-
I think that would be very difficult, because ProcessWire can be used as a framework only. You can even easily change the default control panel URL and have full control over the markup.
-
Just saw this: New version of Textile released (v. 2.3)
-
Ryan, Stef (TXP5 dev) did mention namespaces, and it sounds similar to what you are saying, I think? Here's the part where it came up: That's from the comment section, here.
-
The Textpattern CMS is being rewritten using a new framework, but running into some roadblocks because the framework is pretty new to the development team, which slows things down, and doing anything frameworky and scratch-built seems to be discouraging potential volunteers from contributing code. I had the idea that perhaps TXP5 (Textpattern v. 5) could be built upon ProcessWire's API, using ProcessWire as a content management framework. That means that Textpattern could inherit a bunch of great features from a content management framework rather than a blank-slate application framework. Textpattern would still work in a Textpattern-like way. It would still look like Textpattern. It might even mean that templates are still saved to the database. But PW offers some incredible features that TXP users have been requesting for a long time. Everything from custom taxonomies and fields to multi-language front- and back-ends, to user management and ACLs. In addition, ProcessWire has terrific documentation and comparatively short learning curve required to use its API. I know we have some TXP users that hang out here, so I thought I'd ask--what would you think of a new Textpattern that was built on top of ProcessWire? And ProcessWire users, what do you think of the idea of another CMS building on top of PW's API? Ryan mentioned that he thinks it's a good fit, and would even be willing to maintain a pure framework version of ProcessWire if needed. That's a very generous offer so I thought at least I'd keep the idea bouncing around a bit. The latest discussion in the Textpattern community (mostly talking about the pace of development) is happening in on the blog and in the comments.
-
Thanks guys-- Ryan, I would love to do a mobile/responsive version of this site someday. I believe the next project for this site is to let the admins build custom forms. I did that for another client recently and they've really enjoyed it.
-
Love the new forum, thanks Ryan & Pete
-
Just launched a new site for my local grocery co-op. It's been really fun and I know they're going to enjoy working with it. The store is located in Ukiah, California, about a 2 hour drive north of San Francisco. http://www.ukiahcoop.com
-
What a great theme. Thanks, Nikola. I tend to prefer the Publish/Save button to have a bit of added weight, because my clients look for it most. Like this: http://www.boscartoon.com/images/234.png ...but as I said, this looks great.
-
Nice card, Ryan! Thanks for sharing. Just got the thumbs-up to go live with a PW website yesterday, so I'll happily chime in--Merry Christmas to everybody! ;D
-
How to let visitors search for "job" -- 3 character issue?
MarcC replied to MarcC's topic in General Support
Thanks, Ryan. I'll try that setting. Should be doable. -
I am rolling out a site that will have locals using its search function to do a search for "job" -- how can I make this possible? Currently it returns no results, while the word job is found in at least one searchable article.
-
Thanks, Soma. That makes sense to me, cool idea.
-
OK, my logic was all wrong But those are helpful tips. I have a bunch of pages all with the basic-page template. Inside of basic-page there's a routine that displays all of a page's children below the body (like Ryan's example site). However, ONE of those pages already has its children displayed ABOVE the body. So it needed an exemption; didn't want two child-menus on the page. Also didn't want to make yet another template file for this. So I ended up with: if (($page->id != 1014) && ($page->template->name == 'basic-page') && $page->numChildren) { echo "<hr />\n<ul class='section-menu'>\n\t"; foreach($page->children as $child) { echo "<li><a href='{$child->url}'>{$child->title}</a></li>\n"; } echo "</ul>"; } ...and that works fine. Let me know if you see any flaws in my thinking. Still trying to learn the art.
-
Why doesn't the first condition work? The if statement evaluates true on a child of home, but I don't want it to. Thanks! if (($page->parent->name != 'home') && ($page->template->name == 'basic-page') && $page->numChildren)
-
Thanks for all of those suggestions. I installed SQLBuddy in about 2 minutes and had a backup soon after that. Great little app. Pete, I have an auto-backup script I like to use but I thought it used mysqldump. Anyway, I'd love to see your scripts.
-
I only have one database...not sure if it's a good idea to cram all those tables together. Thoughts?
-
Trampling a Russian sabre. Strong West vs. East symbolism!
-
I am using a client's shell account and just realized they don't have mysqldump installed, and I don't have access to any control panel tools like the typical PHPMyAdmin, etc. Is there another way to grab a database backup, or generate one within ProcessWire? Thanks.
-
Very cool idea, Ryan. I'll give it a try. Thanks to both of you.
-
I have an automatically-generated menu that is probably pretty typical for ProcessWire sites--looping through the children and putting the URL inside the <a> tags, etc. My client has asked that one child menu item be essentially a symlink that points to another child page under a different parent. Like so: About Our Club History Rock Music History of Rock (Points to the History page, above, or #rockmusic on that page) The current code for the menu is this, from a post on the forum: <div class="menu"> <?php // Let's build ourselves a menu. if(strstr($_SERVER['HTTP_USER_AGENT'],’iPad’) || strstr($_SERVER['HTTP_USER_AGENT'],’iPod’) || strstr($_SERVER['HTTP_USER_AGENT'],’iPhone’)) { // iPhone, iPod, or iPad. $mobile = 1; } function listChildrenTree($children) { foreach($children as $c) { echo "<ul class='{$c->name}'>"; echo "<li><a href='". ($mobile == 1 ? '#': $c->url) ."'>{$c->title}</a>"; if($c->numChildren) { // Render submenus (dropdowns) echo "<ul class='sub'>"; foreach($c->children as $subpage) { echo "<li><a href='{$subpage->url}'>{$subpage->title}</a> "; } echo "</ul>"; } echo "</li>"; echo "</ul>"; } } listChildrenTree($pages->get('/')->children); ?> </div><!-- menu --> Advice? Thanks.