Highest scored questions

105 votes
8 answers
15k views

What's the best practice for handling data migration and organization across development environments?

This issue becomes especially difficult when there are multiple environments, with multiple developers working on different features that affect the data structure. The holy grail is a git-style ...
Eric Ressler's user avatar
  • 1,149
71 votes
13 answers
149k views

Getting this SQL Error: GROUP BY incompatible with sql_mode=only_full_group_by

I am getting the following error: Internal Server Error CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #18 of SELECT list is ...
user3818623's user avatar
61 votes
1 answer
12k views

How secure is Craft and why is it secure?

What measures have been put in place in regards to securing Craft at the core level. What measures have been put in place in regards to Craft's Plugins which make use of (connect to if you will) Craft'...
Natetronn's user avatar
  • 1,375
42 votes
2 answers
5k views

What are the best practices for using the {% cache %} tag?

I started using the {% cache %} tag and would like to know what the best practices are: . Regarding performance: For example does it make sense.. ..to cache the whole template, or is it better to ...
Victor's user avatar
  • 8,416
39 votes
5 answers
23k views

Reset password with MySQL

Is there a way to reset an admin account's password by modifying the MySQL directly? I've found the craft_users table where the hashed password is stored but I don't know how to hash a string so that ...
bravokiloecho's user avatar
39 votes
3 answers
11k views

How to link to previous/next entries in a section?

What would be the equivalent in Craft of ExpressionEngine's Next/Previous entry linking? I was looking at getNext() and getPrev() (and their aliases next and prev) (via the EntryModel docs), but when ...
Derek Hogue's user avatar
38 votes
5 answers
13k views

How can I retrieve channel data in json format?

I've played around with a few implementations but I still don't feel like either is right. I first came across building the JSON itself. This would be in a file at "craft/templates/entries.json". [ ...
Bill Criswell's user avatar
37 votes
4 answers
7k views

What is the current landscape regarding e-commerce plugins for Craft?

I'm developing an online store. The store needs to be seamlessly integrated with all of the editorial content on both the front and back-end. Craft is obviously a perfect candidate for the editorial ...
35 votes
11 answers
51k views

How can I add a dynamic "active" CSS class to the navigation on any given page?

Just wondering how people approach setting a class of current in their navigation. Is there anything in Craft or Twig where you can set a conditional to check if a page is the current page. Or do you ...
Gareth's user avatar
  • 1,605
34 votes
3 answers
3k views

What's the best practice for upgrading a versioned Craft site?

It's thrilling to click The Button and watch Craft update itself. I take advantage of multi-site configurations with every deploy, and my practice thus far is to... Upgrade Craft in production. Commit ...
Matt Stein's user avatar
  • 4,016
34 votes
1 answer
12k views

What’s the recommended way to set the site URL?

There are multiple ways to set the site URL. What is the recommended way?
Brandon Kelly's user avatar
32 votes
4 answers
22k views

Test for empty field?

How do I check if a field is blank? I thought it was something like {% if article.articleImage is defined %} Which in this case is testing an Assets field (and seems to work). Tried the same for a ...
pumkincreative's user avatar
32 votes
1 answer
2k views

Is there a way I can programmatically download the latest version of Craft?

If you have a base install script that you use to quickly turn out a new base install for Craft, it would be very useful for that script to be able to download the latest version of Craft when doing ...
Brad Bell's user avatar
  • 67.6k
31 votes
2 answers
2k views

How can I prevent my client from auto-updating Craft in production?

How can I prevent my client from auto-updating Craft in production? I don't want them to run Craft updates on the production site, but the "updates" badge seems irresistible to them. I would prefer to ...
Alex Kendrick's user avatar
29 votes
2 answers
4k views

How safe is auto-updating?

I have auto-updating currently disabled using the "allowAutoUpdates" config setting, due to concerns about plugin compatibility and unforeseen breakages, mainly due to experiences with other CMS's. ...
Alex H's user avatar
  • 955

15 30 50 per page
1
2 3 4 5
975