Stream

Join this community to post or comment
Pinned by moderator

Brandon Kelly
owner

How Do I?  - 
 
Looking for help with Craft? Please consider posting your question on Craft’s new Stack Exchange site (http://craftcms.stackexchange.com). It’s by far the best place to seek help and help others!
23
David McInnis's profile photoBrandon Kelly's profile photo
7 comments
 
+David McInnis Everyone can post questions and answers, right off the bat, and they've got a system that does offer rewards (rep + new privileges) early and often. The system is just in place to weed out spam and people with malicious intent, etc.

http://stackoverflow.com/help/privileges
Add a comment...

Mark Lett

How Do I?  - 
 
Hi I'm new to developing with craft and have a question regarding the craft.dev site. I've tried setting up a couple of plugins that use oAuth. However I'm experiencing issues with the third party logins using the .dev url and ssl certificates. Google only excepts top level domains for the re-direct and won't except the .dev so I can't even set up the API. I'm also using the beta social plugin but I am getting ssl certificate errors for Facebook and Twitter. Does anyone know of a solution for either problem?
1
Add a comment...

Matt Collins

Show and Tell  - 
 
We just launched our localised support site with Craft too!
1
Add a comment...

Ben Croker

Tips, Tricks, and Tutorials  - 
 
I'll be giving a free interactive webinar on the 18th of March 2015, for max 5 people, in which I will be covering the basic principles of plugin development in Craft. If you'd like to join then please register here:
https://www.putyourlightson.net/craft-cms-training
Craft CMS Training. Plugin Development for Craft Interactive Webinar with Ben Croker. Date: 18th of March 2015 at 8pm - 10pm CET (3pm - 5pm EST) Price: Free. This is a free interactive webinar, for max 5 people, in which I will be covering the basic principles of plugin development in Craft.
1
Add a comment...

James LaCroix

Tips, Tricks, and Tutorials  - 
 
We recently published a blog post about  a plugin that we created to automatically redirect to an entry’s new URL if its slug has been revised.
2
Add a comment...
 
Can I call a page or action in a plugin from php command line instead of using curl?
1
Luke Holder's profile photoAndreas Jøssang's profile photo
2 comments
 
Fixed it by creating my own app.php file to launch Craft. Added required parsing for argv into _SERVER, _GET variables.
Add a comment...
 
I'm having a hard time displaying content from an entry field inside a block, anyone have a good tutorial or code that shows how that works?
1
Josh Medeski's profile photo
4 comments
 
Got it working: {% for test in block.entryField %} {{ test.title }}

Works like a charm!
Add a comment...

Gijs Stegehuis

Feedback and Ideas  - 
 
The 'rotateImagesOnUploadByExifData' config settings doesn't seem to be working for uploaded userphotos. Can you add it over there?

It does work in the CP via users/uploadUserPhoto by the way ;)

+Marli Bolscher 
1
Brad Bell's profile photo
 
Probably just an oversight... will look into it.
Add a comment...
 
Hi There, I just installed the GuestEntries plugin, and the documentation says to "to adjust the hidden “sectionId” input to point to the section you would like to post guest entries to."

Can anyone tell me where I can find this section ID?

https://github.com/pixelandtonic/GuestEntries
GuestEntries - Accept anonymous entry submissions with Craft.
1
Evin Wijninga's profile photo
7 comments
 
I fixed it :) Thanks for the advice and help. Much appreciated :)
Add a comment...

About this community

Michael L

Show and Tell  - 
 
Hello Craft Devs,

I hope it's okay to post job/contractor inquiries here. We are looking for a Craft developer to:

1. take our exiting course catalog JSON data (~600 courses, ~20 fields per record, file is refreshed every 30 minutes),
2. re-create its records in Craft CMS,
3. allow us to supplement course records with additional data (about 10 boolean/text/tags/matrix fields) and
4. produce a JSON-based RESTful web service for (read-only) consumption on an external website (that external website is not part of this project).

We'd like to get a sense of how much this would cost and what the turnaround time is. If you're interested, please send me an email at mlewcio@ualberta.ca
1
Luke Holder's profile photo
 
Sent an email. Thanks. 
Add a comment...
 
Feel pretty silly with this question but it's late and the docs don't seem particularly detailed on this point. When I have a form with "redirect:" set to a success page, how can I print POST data to verify for the user with twig? craft.request.getPost() isn't very transparent with it's return type, and if I try passing it 'fields[fullName]' or even just 'fields' I get nothing, while an empty call returns simply "Array." Thank you thank you for helping.
1
Andrew McCullough's profile photoLuke Holder's profile photo
3 comments
 
ahh yes, query string would be better as there would be no need to set up a route :) good job!
Add a comment...
 
We just launched our localised site with Craft.
3
Luke Holder's profile photoMatt Collins's profile photo
4 comments
 
Our designer and marketing crew like it!  Devops are doing a happy dance moving away from wordpress. 
Add a comment...
 
How can I order entries by a matrix field?

Right now, I have a channel "Courses". These courses have a simple matrix (named "Days"), containing only 1 field: "day". I'd like to order my courses on this day, but how would I do that?

I tried this plugin:
http://michaelrog.com/craft/lagniappe/supersort

But this one converts my assets to an array, which I can't use because I'm using {% paginate %} on my page.

I guess I'm looking for something like this:
craft.entries.section('...').order('days.day')
SuperSort. What is SuperSort? SuperSort provides a Twig filter sorting an array of objects, either using one of PHP's built-in methods to sort the actual objects, or using a custom sort method to arrange the array based on the rendered results of running each object through a Twig object ...
1
Add a comment...

Anneke Sinnema

How Do I?  - 
 
Hi there, I'm a first timer with Craft and I've got the Guest Entries plugin working on my site. Everything is working correctly, content from the fields is saved the way I want to and I'm happy! Except...

Except insert dark cloud raining on my parade the value of checkboxes isn't saved. Is there a special trick to it? Am I overlooking something? If you'd like to take a look it's appreciated! Just looking for a new lead for my investigation ;)

My code is as follows. HANDLE signifies where I entered the field handle. 'valuea' and 'valueb' exist in the backend.

<input type="checkbox" name="fields[HANDLE]" value="valuea" /> 
<input type="checkbox" name="fields[HANDLE]" value="valueb" /> 
1
Luke Holder's profile photoAnneke Sinnema's profile photo
4 comments
 
thanks ;) I'll tell my parents you said that haha!
Add a comment...
 
Is there a smart solution when handling with matrix and floated images?
I do not understand the example giving in 'article_body.html' of Happy Lager but it's the kind of problem I tried to solve for my project.
1
Lukas Köller's profile photo
2 comments
 
Just fixed it with two simple if-statement
Add a comment...

Roi Kingon

Feedback and Ideas  - 
 
would be sweet if you could make an image transform use a % or px -- but wait -- still provide a min width/height!

use case:
client wants to upload 2x images & we'll use srcset to provide both 1x and 2x.

what i'm doing now:
created a macro for 2x image which creates a srcset image using the image as the 2x then an inline image transform that takes the original image size and divides in half. -- works, but could be cleaner! :)
1
Add a comment...
 
Anybody use the Formerley plugin? Am having some issues with it when setting the route variable on the request with the form, should be adding a submission variable (model object) with errors but isn't 
1
Add a comment...
 
Hello guys,

I would like to expose sample of PHP code inside a matrix field.
Everything fine in the admin section. But on frontend when I would like to display my sample code in a <pre> tag, my php tag are HTML commented even if I apply the raw filter to my field value (the dump of field value shows me the expected value > not commented). 

<?php echo 'Denis' ?>

becomes

<!--?php echo 'Denis' ?-->

So... no code displayed ! Any idea to cancel this behaviour ?
1
Denis Bertrand's profile photo
 
mmmh... Seems to be solved with 
{{ block.source_code | escape }}

I don't remember that we need to escape things in code tag...
Add a comment...
 
What do you guys recommend for ecommerce with Craft? One product, a few variations, order tracking, etc... Any of you guys have any experience w/this?
1
David Ritter's profile photoFred Carlsen's profile photo
3 comments
 
It's a interesting challenge for sure. We're doing a project where we went split-platform. Craft handles all the editorial content and product pages, and Shopify cart/checkout and all membership functionality.
Add a comment...

Stuart Bellis

Show and Tell  - 
 
Hi guys, we've recently switched from Joomla to Craft and this is our first fully Craft built custom commercial website. 
1
Brad Bell's profile photo
 
Nice! And welcome to Craft! :)
Add a comment...