Highest scored questions
14,621 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 ...
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 ...
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'...
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 ...
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 ...
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 ...
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".
[
...
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 ...
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 ...
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?
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 ...
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 ...
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 ...
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.
...