-
Posts
4,296 -
Joined
-
Last visited
-
Days Won
79
Everything posted by diogo
-
Allow setting ImageSizer upscaling via Pageimage->size()
diogo replied to teppo's topic in Wishlist & Roadmap
I understand what Ryan says here, but I will like everyone that suggests these I even think that something along maxSize should be the default behavior, because no one wants to see giant pixels on any picture. -
Ok, I'm convinced Gosh*
-
Ya, I meant those. 1000px was a rough guess Perfect! Hm... don't forget that this is targeted also at non designers or developers, and also that too much customization can potentially turn the theme into an horrible explosion of colors.
-
I do prefer this one But: I think the search box doesn't fit the theme. On the 1000px media query break, the right column could go under the left column, to prevent both, the text from the sidebar and main text, to become too short. I would give the option, not only to choose the color, but also to remove the 1px vertical borders. It's amazing how this simple change can turn it into a different theme.
-
I totally agree with this. I even think we should take this as concept for PW. I really like the way things are happening here. Most modules are discussed in the forum, and each module gets lots of input from the community before it's finished. I know that it isn't easy to keep it like this, as the number of users and developers grow, but would be great if it would be possible to keep a truly useful official modules repository (not too big, and without repeated functionality). This could be done via the forum, and via a small number of administrators who would filter, and propose the merging of modules with the same functionality.
-
From what I understand, you just have to put the jcart folder on your PW templates folder, and include it on your templates with: include_once('jcart/jcart.php');
-
I don't, I didn't use it more than installing and having a look at it. And this was before I met PW, when I was still in the process of choosing a CMS to work with. But it does look interesting. Ya, I heard about the community not being very friendly. I back what was said here by others. At this point I'd rather spend my time learning PHP to start building modules and helping with the evolution of PW, then learning another CMS.
-
@apeisa, Kirby looks very nice! @onjegolders you can also try Pyro http://www.pyrocms.com/
-
@porl Not a very extensive information, but Ryan explains it here
-
Nice example in the "Wire" templating language
-
Nice sites! It's refreshing to see good pictures of people that actually work at the place. And they must be clients at MAX also
-
changed back
-
You used the numeric array I will revert my code back to it, so it's not confusing to anyone that sees this later.
-
Alan, maybe this is not the best way of doing it, but at least it works $blogposts = $pages->get( "/blog/" )->children; $comments = array(); foreach( $blogposts as $blogpost ) { foreach ($blogpost->article_comments as $comment) { if($comment->isApproved()) { array_push($comments, array("comment"=>$comment, "post"=>$blogpost)); } } } foreach ($comments as $c) { echo $c["comment"]->text . "<br>"; echo $c["post"]->url . "<br>"; }
-
It's more than natural that this kind of problems will arise. This is not a simple module, but I think it brings great benefits. I never thought it would be so easy to build a multilanguage website in PW as it is with this, so I think the effort will pay. Still, the module shouldn't be considered nothing more than an alpha version, ant it will need lots of work and testing. And maybe a little help from Ryan
-
another one for the toolbox http://jquerypicture.com/
-
I tested it and I like it so far! I wouldn't consider it a finished product, but I don't think that's intended by Ryan at this point. Some first thoughts (there will be more for sure later): Would be nice to have a "write" page on the navigation. This could be simply a link to a new blog post. A settings page. A place where people can change the color of the titles and links from blue to whatever they want, and also the typeface maybe. I would keep the customization to a minimum, though. This would imply having some dynamic style, and could make it more difficult for a "zen garden" kind of thing, of course. Changing the "edit" link on the corner by something like " new post | manage " For the intended audience, I would avoid having words like "responsive" on the blog descripton Hm, I think that's it for now.
-
Addition of some items into a Pagefield field via api
diogo replied to AlexV's topic in API & Templates
It's true that that's a very nice feature on the cheatsheet. Well done Soma -
I also don't understand where the id comes from. And where is it supposed to redirect to?
-
Nice! I also like it. This is one case where I think it makes sense the way it is now. With this theme, visitors shouldn't be in a hurry, there's no harm in making them click one more time, and have less automation. Also, it's one more opportunity for them to see one of the random images This site illustrates well what I meant here http://processwire.c...__40#entry12539 (Marty, sorry for this deviation)
-
it's black magic
-
Addition of some items into a Pagefield field via api
diogo replied to AlexV's topic in API & Templates
Oh, that $value! No, In this case $value must be a page object or anything that returns one, just like in the code examples above $pages->get("something"), because this is what the pageType field expects. Only If you would change the value of another kind of field, like "title" for example, you could use a string, or anything that returns one $p->title = $pages->get("something")->title; //or $p->title = "new title"; -
Addition of some items into a Pagefield field via api
diogo replied to AlexV's topic in API & Templates
Again, I'm not sure I understand what you want. If you want to add more than one page to the "subway_station" field, make sure this field accept multiple pages in it's settings, and then do it simply like this: $p->subway_station = $pages->get("/subway_station/sub_st_0111/"); $p->subway_station = $pages->get("/subway_station/sub_st_0222/"); $p->save(); What $value? I don't understand -
Addition of some items into a Pagefield field via api
diogo replied to AlexV's topic in API & Templates
To save a field you have to use either $page->set("field", $value) or $page->$field = $value. You should also make $page->setOutputFormatting(false) before making the changes to the page. I'm not completely sure that this is what you want, but for the interpretation that I make from your code and assuming that all those pages have a template that contains the "subway_station" field, you should be doing this: // this code will find all the UZAO pages that are descendent of /district/, and add the page "/subway_station/sub_st_0111/" to their "subway_station" field foreach($pages->get("/district/")->find("district_region=UZAO") as $p) { echo "<a href='{$p->url}'>{$p->title}</a> " ; $p->setOutputFormatting(false); // this should be after the echo $p->subway_station = $pages->get("/subway_station/sub_st_0111/"); $p->save(); } I didn't understand where «green» and «orange» were on your code, so interpreted only the code, and left this detail out. Edit: edited the code above by Ryan's suggestion