-
Posts
4,632 -
Joined
-
Last visited
-
Days Won
55
Everything posted by apeisa
-
Unpublished are excluded by default. Just add "include=all" to have hidden and unpublished to show up also. http://processwire.com/api/cheatsheet/ (advanced mode). EDIT: remember though that selectors doesn't check access after that. Even the pages where user doesn't have view access are included.
-
There are those social widgets that identify you automatically. But on top of those there are few sites that are "special partners" with facebook and can personlize without clicking anything or stuff like that. See: http://www.yelp.com/ (login facebook first, then click to yelp and wait few seconds). I am not sure if you need to be anymore "special partner" or is that instant login allowed for everybody...
-
I think that is pretty much how it is intended to use: http://fi.gravatar.com/site/implement/images/
-
Ryan did send me an email and warned that there might be problems with Thumbnails module on latest build. Haven't had the time yet to see what is needed to fix it, but it seems that Pete have done the hard work and more. Pete: if possible can you send me an pull request in Github? This way you get proper mention on your contribution.
-
My solution is this. I keep list of all templates I want to shown on navigation on my site/config.php file: $config->navTemplates = 'home|basic-page|news|events'; I have templates like news-item, events-item etc who didn't make to the list. And whenever I loop normal navs I check against that list: $templates = $config->navTemplates; foreach($children("limit=50,template=$templates") as $child) { ...output here }
-
Excellent work, great design and fun site to browse!
-
You have probably wasted your generous 500kt (heh heh) quota on old forums already: http://processwire.com/talk/index.php?app=core&module=usercp&tab=core&area=attachments So maybe that limit could be raised, Pete and Ryan? About your module, great stuff, I am pretty sure this will come handy! Do you save the hex-value or rgb?
-
Try removing files from /site/assets/cache/ There are modules.*.cache files that are safe to remove. Not sure if this helps...
-
For me it seems like your install doesn't know about cropImages. Please try clicking check for new modules and removing modules cache. I am pretty sure problems are in how you have transferred the site? Do you have any other 3rd party modules installed?
-
Is this a proper way to get an image from the Home page?
apeisa replied to MarcC's topic in General Support
The error is only once in logs or still occur? -
This sounds great Pete. Now you and Nico need to put these together and build the ultimate social update module that handles Facebook also ;-)
-
Is this a proper way to get an image from the Home page?
apeisa replied to MarcC's topic in General Support
Looks good to me. That code should work if sidebar image is single image field. If not, then you need to grab first() image. -
Also might be worth asking from github if they could help renaming the repo. I agree that this is better do sooner than later.
-
If you use Thumbnails module, then you don't do the resizing on the template file. So no size() method if you use thumbnails. In your template code I would change this: $image = $item->images->first(); To this: $thumb = $item->images->first(); Then I would remove the next line (where you use size() method). Rest of the code you can keep, but change {$thumb->url} with $thumb->getThumb('thumbnail'). I'm not sure, but you might need to write it like this: echo "<img src='". $thumb->getThumb('thumbnail') ."' />
-
Assigning pages to a Subnavigation, featuring those pages on homepage
apeisa replied to Alex's topic in Getting Started
It works on multiple images too. -
That is bad default and I think this have been fixed already. Have you tried latest commit yet?
-
Great news. One question: are you planning to update the reposity or do we stick with "P21"? Or maybe merging to "ProcessWire" and start using branches there? Not sure how other projects handle different versions with their software, but branches feel like pretty natural way to do it.
-
I am on mobile so sorry for short answer. There is no other way to add repeatable elements at the moment than create them as pages somewhere (usually like /tools/slides/) or create custom module like image field. But this is on roadmap. More information if you search forums for matrix or repeatable elements.
-
Not me, Ryan did
-
Ah, you just need to edit your news template settings, urls tab and allow url segments.
-
Hi spamec and welcome to the forums! You are looking for $input->urlSegments(n): http://processwire.com/api/variables/input/ Of course you can use get-variables also, and access them from $input->get('parametername') Urls you have almost right, just change {$c->path} => {$c->name}
-
Yep. I think that the readability is not that big issue though on that site. Reading menu items is not hard work - different thing if you implement a blog there using the same font The font goes very nicely with other elements on the site.
-
There is definitely something strange in that image. I have never seen so big filesize on that small jpg.. http://ukiahcoop.com/site/assets/files/1/organiccarrots.jpg
-
Very nice, great work Diogo! I love the design and the responsive aspect of it. My only gripe was that font was way too small for my eyes.
-
Using a checkbox to control display of an article
apeisa replied to MarcC's topic in General Support
Hidden pages don't come up in selectors, which return multiple pages PageArray (=find, children, etc). You can include those by adding "include=hidden" to your selector. EDIT: Not sure if I am on the same map at all . Your selector looks fine to me, should include only pages with display_options unchecked. Sometimes when you develop (edit and rename tempaltes, fields etc) pw can go dizzy on selectors (caches results I assume?). Try saving the parent page. That is very rare (happened me maybe once or twice) and not sure if that is the case here.