Newest Questions

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
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
20 votes
3 answers
17k views

How can I check on the value of a template variable?

If I'm used to PHP's var_dump() and print_r() to check the value of a variable, how can I evolve to inspect things in Craft where Twig's dump isn't available?
Matt Stein's user avatar
  • 4,016
9 votes
2 answers
1k views

Is it possible to output the name of a Matrix Block?

I'd like to output the Names of Matrix Blocks. I know you can filter by block types e.g. {% for block in entry.myMatrixField.type('text, heading') %} {% if block.type == "heading" %} <h3>{{ ...
Natetronn's user avatar
  • 1,375
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
19 votes
4 answers
5k views

Can I run one Craft install on multiple domains and/or subdomains?

Is it possible to have one Craft install running multiple domains and/or subdomains? For example having the same Craft install running a blog Channel at blog.example.com and also an about Single at ...
Simon Kuran's user avatar
  • 3,015
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
22 votes
4 answers
8k views

How do I import data into Craft?

What's the best known way to import masses of data into Craft? Are there tools that support the migration of content/users from say XML, JSON etc.
Steven Grant's user avatar
  • 1,855
17 votes
1 answer
8k views

How do you list categories in a category group?

I would like to output a list of all the categories in a category group on the front end. How do I do that?
julzmon's user avatar
  • 941
29 votes
3 answers
2k views

How do I configure Varnish to work with Craft?

Has anyone successfully used Varnish with a Craft build? I'm trying to set up Varnish on my server but I'm very new at this. Can anyone share their config file or point me in the right direction? We ...
Carlo Laitano's user avatar
19 votes
1 answer
456 views

Transform Info from Handle?

Can I extract a transform's settings from its handle? I'm trying to avoid upscaling images using the workaround, and I'd like to set my transform handle dynamically within some conditionals. (see this ...
James Muspratt's user avatar

15 30 50 per page
1
971 972 973 974
975