Most Popular

1500 questions
4
votes
1 answer

Entry Form - Multiple Entries & Entry Type & Parent

I'm building an MVP for a project, I'm using Craft and would like to: Create an experiment (/experiments/) Create multiple cages for the animals within the previous created experiment eg. 5 cages - (/experiments//cages/) Add a number of rodents to…
Graham Winston
  • 303
  • 1
  • 10
4
votes
1 answer

Exporting Entry content

I really spend a lot of time searching for a solution to this problem. When I try using the Export plugin to export some entries with some Matrix fields and Neo fields for content, all that I can get is empty. Seems to me that no one could've…
4
votes
1 answer

How to find out which assets are being used

I want to be able to delete assets that are not linked to. I have adapted the following code from previous examples of this kind of thing, but it doesn't seem to pick up all the related entries, just some of them. Some photos do not show a related…
Paul Frost
  • 1,060
  • 10
  • 23
4
votes
2 answers

Multiple category relationship criteria (or)and(or)

Is there a way to do relatedTo categories where the category is (a or b) and (c or d or e)? I can get (a or b) working using: {% paginate craft.commerce.products.relatedTo(categories).limit(20) as pageInfo, products %} I can separately get (a and…
Matt Shearing
  • 665
  • 3
  • 8
4
votes
3 answers

What is the optimal place to store CSS files?

I'm trying to figure out the best place to keep my one master CSS file in craft. I had the CSS linked in my template as link rel="stylesheet" href="../craft/css/master.css"> But now Blog entries can't get to it, as they are looking in…
kingkelly
  • 337
  • 2
  • 8
4
votes
4 answers

Is there an easy-to-follow tutorial to learn Craft CMS basics?

I am thinking about using Craft CMS for building multiple websites for my organization. A friend recommended Craft CMS, but I am finding it very hard to get started, unlike GRAV, which was very easy to install and use. I am looking for a tutorial…
Per Gol
  • 41
  • 1
  • 2
4
votes
2 answers

_includes/forms documentation on field types

I'm trying to find any documentation on the usable forms from {% import "_includes/forms" as forms %} so for example I have no idea what the difference is between elementSelect and select or how I get the options in there Thanks for your help
maxx
  • 443
  • 2
  • 14
4
votes
1 answer

Craft Commerce: How do I handle quantity based discounts on a product level?

I'm curious what the best way to handle quantity discounts would be on a product/variant level. For example: The base price of a variant is $3 each, but if you buy 10-19 they're $2 each, and if you buy more than 20 they're $1 each. A different…
Peter Tell
  • 1,828
  • 12
  • 19
4
votes
1 answer

With Element API, can I combine two entry types into a JSON object, keyed by type?

I need to return two types of entry to an external service, and am trying to do so in one endpoint. I am able to return all of the instances of each type, but it returns an array of mixed types. "api/myEndpoint" => function() { return [ …
michael_r
  • 61
  • 4
4
votes
2 answers

How can I force a download of entry data to an excel file?

The website I'm building enables users to book places on events. This is simply a form which creates an entry in a channel containing 2 fields: "related user" and "related event". In the control panel I've written a simple plugin which displays all…
darylknight
  • 3,290
  • 18
  • 42
4
votes
1 answer

Sort entries by best match to multiple categories

I've got a channel where entries will be tagged with multiple categories. I want to use those categories to show related content for each entry. So if an entry has cat_a, cat_b and cat_c, I want to pull in any entry that has cat_a, cat_b or cat_c,…
Frank Harrison
  • 183
  • 1
  • 7
4
votes
2 answers

How do I return ALL entries that are singles

I'm trying to generate a sitemap and wish to output all the entries that have a section type of 'single' but can't get the the correct syntax. All of the entries need to return 'single' for {entry.section.type}. {# This query doesn't work but…
jnowland
  • 846
  • 6
  • 16
4
votes
2 answers

Plugins not showing in Admin

I'm experiencing a problem where none of the plugins (2 captchas, and a random bookworm plugin) are showing up in my admin panel. Folders are lowercase. I've also checked permissions; folders are at 755. The corresponding file is at 644. I have…
Shad
  • 451
  • 2
  • 11
4
votes
2 answers

Static page caching using Nginx FastCGI Cache with CraftCMS

This isn't Craft issue per se. But I was wondering if anyone can help me out. I’m trying to enable FastCGI Cache in my server. My nginx server block is coming from this helpful article: https://nystudio107.com/blog/static-caching-with-craft-cms. The…
Anya Dit
  • 356
  • 2
  • 10
4
votes
2 answers

Send email to website owner after user registration

I have a client that wants to get notified whenever someone registers on their website. How can I do this, is there some kind of plugin? If not how would I go about doing this?
Branko
  • 497
  • 3
  • 12