RitterKnight
  • Member for 7 years, 2 months
  • Last seen this week
Differences between Craft and WordPress
24 votes

In additional to Mats Mikkel's excellent answer and the links that Brad posted, I find Craft is a much better fit for the types of clients I work with and the types of sites I build and my opinion is ...

View answer
Approaching Google AMP
Accepted answer
15 votes

You're asking kind of a loaded question but as far as Craft is concerned, you're in a good position to spit out exactly what you need as far as markup and styles go. AMP is more or less just a small ...

View answer
Showing categories in Channel Entry URLs
Accepted answer
12 votes

There's a lot here but I'd start by create 2 different channel sections: Blog and News. From the front end, that makes it easy to see which entries are associated with what sections and easy to post ...

View answer
Schedule a draft to auto publish?
9 votes

If the entry is not already published, just set the Post Date to a date in the future. That will set the entry to what Craft calls Pending. On the entry's index, the status indicator will be orange (...

View answer
Why am I getting ?p=oldpage in a 301 redirect?
Accepted answer
9 votes

Craft works by taking requests that normally would 404—because they don't actually exist on the server but in the database. The piece that makes this happen is the rewrite rules. It's helpful to ...

View answer
What's the most user friendly way to create a video block in a matrix field?
Accepted answer
6 votes

From basic to robust: Redactor has a plugin along that same vein but it's more basic—feed it a URL and it spits out the embed code in a Redactor field. Craft-video-embed-utilty sounds like it might ...

View answer
Build a Property Management System with Craft CMS?
6 votes

You're asking a lot here. I would say Craft is capable of a lot of it but how much do you want to spend on development? It's a bit like asking "Can xxx be the next Facebook?" Just going over your ...

View answer
Need no search engine tracking option in Craft websites
6 votes

If you're used to another CMS such as WordPress, you're probably used to using a Discourage search engines from indexing this site option. As Robin's answer mentions, the training wheels are off. ...

View answer
Frontend Form - Checkboxes cannot "all" be unchecked
Accepted answer
6 votes

Your code is correct but you need to add another line near the top: <input type="hidden" name="fields[volunteerPositions]" value=""> From the documentation: If you are including a ...

View answer
What is the difference between calling .first and .first()?
Accepted answer
6 votes

I think it was Ben Croker who mentioned this nugget from the Twig docs in his Craft course on development: For convenience's sake foo.bar does the following things on the PHP layer: check ...

View answer
Is Craft suitable for these specific document management goals?
Accepted answer
6 votes

If Craft is good enough for the AP, it'll be good enough for everyone. ;) I have little experience with EE, other than migrating away from it, but I have built enough in WordPress so here's my ...

View answer
Slow Site Speed and Increasing Memory
6 votes

You're asking a loaded question. When you mention memory, how exactly are you measuring that? Site performance can depend on a few factors, including the hosting provider, the hardware, what Craft ...

View answer
Apache or Nginx for a Craft site
6 votes

Putting aside Craft for a moment, it's not just Craft, you'll usually end up throwing more things on a web server as time goes by. If those scripts/apps are expecting an .htaccess file and you're ...

View answer
How do I print the options in a dropdown field?
Accepted answer
5 votes

There's not an "elegant" way to do this but you can access the dropdown field by its handle using getFieldByHandle. Something like: {% set dropdownField = craft.fields.getFieldbyHandle('isotope') %} ...

View answer
A Structure section with an entry to a channel index
Accepted answer
5 votes

I like what Matt P wrote in his answer: try to consider how someone [else] will find the logic of the CMS design The other factor you want to consider in information architecture is you only want ...

View answer
Running Craft alongside another CMS on the same domain
Accepted answer
5 votes

You're asking a loaded question. I don't think there's a wrong answer here but if it were me, you have a couple options. Addressing the Elephant in the Room How good of a salesman are you? ;) You ...

View answer
Direct access call for a twig template from a twig template gives 404
Accepted answer
5 votes

Not sure exactly what you trying to do here? Call a Twig template from Angular? Twig is a server side technology, Angular is getting parsed on the client side. The only way Craft is going to parse a ...

View answer
Show only children of current page in submenu
Accepted answer
5 votes

Ran into the same issues you had. Pulled this from a working site I recently built. Basically you have to get the topmost page. I found entry.getAncestors().level(1).first() works for that no matter ...

View answer
How would I create a select element with the 14 days from today as options
Accepted answer
5 votes

You're close! If there's one thing I've learned about Twig, it's easy to overthink it... Create an array with the first date, then merge the rest of dates into the same array with a for loop. Just ...

View answer
cp login over https gives error
Accepted answer
5 votes

This could be a couple things: Server config .htaccess file SSL Certificate But it sounds to me like the insecure login button means those assets are not being served over SSL. How'd you confirm the ...

View answer
Is it possible to prevent disabled Matrix Blocks showing in a Live Preview?
Accepted answer
5 votes

It's definitely a bug in live preview but looks like you can work around it. This doesn't appear documented at all—so be careful—but you can use .status() to get the block's status. It looks like an ...

View answer
Max # of entry types?
Accepted answer
4 votes

Brad mentions there's no limitations on entry types, though whether it's a good idea long term for maintainability and UI purposes is another story. Entry Types are the most useful when your content ...

View answer
Building a video subscription library
Accepted answer
4 votes

Just recently worked a similar project so I'll share what we've uncovered. Your needs are basically 2-fold: take payment and provide a platform where people can log into and consume content. Is ...

View answer
Strange 'index.php' Issue
4 votes

This recently tripped me up. 'true' (with quotes) is not the same as true (without the quotes). Lose the quotes in the config file, clear Craft's caches, and it should stick. Also make sure your ...

View answer
Is it safe to make the 'app' folder writeable by the web server?
4 votes

Security is not off or on, it's layers of an onion. Anything you do has to factor into the bigger picture. My layers include: What user does the web server run as? What user is your content? Your ...

View answer
Matrix vs Multiple entry types
4 votes

I see this question as two parts: information architecture and templating. If you're used to something like WordPress where the template has a one-to-one relationship with how the template gets data ...

View answer
How to update Craft from 2.4 to 2.6?
4 votes

In additional to Lindsey's excellent answer, I find a lot more comfort in updating Craft than WordPress. P&T spent a lot of time making sure the one click updates just work. Unlike WordPress, ...

View answer
Can you batch-change all authors in the CP?
Accepted answer
4 votes

There's currently no way to do so natively in the CP, but there is a round-about way to do it using a CSV file with a pair of indispensable plugins from Bob Olde Hampsink: Import Export Do the ...

View answer
Specifics on ImageMagick and animated GIFs
Accepted answer
4 votes

For Craft to use it, yes the ImageMagick PHP extension is required because Craft uses PHP's bindings in the library they're using. Depending on the host's OS, it should be a package manager update ...

View answer
Best way to bulk email an attachment?
4 votes

As someone who's run a mail server professionally, thought I'd expand on a comment. Brad's answer goes over the technical details of sending with Craft, I suppose this answer is more "philosophical"? ...

View answer
1
2 3 4 5
8