Most Popular
1500 questions
4
votes
1 answer
Is there a way to re-use field groups/layouts?
Coming from Wordpress and using ACF plugin...it's really nice to be able to have say a field group called "SEO Fields" that contains all the custom fields for SEO needs (title, description, OG stuff, etc) and then maybe another group called "Hero"…
kevindeleon
- 135
- 8
4
votes
1 answer
How do you import hierarchical data that uses the adjacency list model into Craft Structures or Categories?
Craft makes it nice and easy for us to have hierarchy in Structures or Categories. Many other popular CMS platforms support hierarchical data as well but some support it using a different data model.
Here's an overview of managing hierarchical data…
Ben Parizek
- 13,448
- 1
- 33
- 98
4
votes
2 answers
How to set SMTP Enrcyption with an environment variable
The official Craft documentation says it is possible to set the "Encryption Method (SMTP)" , Snipped from the documentation, with an Environment Variable.
I think i am missing something but i cant seem to find the exact .env Variable Name Craft is…
Leonardo
- 451
- 3
- 13
4
votes
3 answers
Get array of titles instead of whole collection of entries' attributes
I know that to get the entries I can do:
craft.entries.all()
but instead of getting the whole collection of entries, I would like to get an array of titles from those entries (or any other field).
Sort of like craft.entries.all('myCustomField')
How…
Paloma Martinez
- 137
- 10
4
votes
1 answer
Is it possible to Filter entry types via the URL?
I'm wondering if it's possible to dynamically filter a section list by entry type based on a url segment?
I'm hoping to avoid assigning a category to every entry.
Jesse Bennett-Chamberlain
- 209
- 1
- 6
4
votes
1 answer
Modified A-Z grouping
I'm trying to output the alphabet where certain letters are enabled/clickable based on whether any entries from a specific section start with that letter. Here's the UI:
Getting the A-Z is easy enough:
{% set letterArray = 'A'..'Z' %}
And I'm able…
A Herrera
- 309
- 1
- 12
4
votes
1 answer