Top new questions this week:
|
I want to be able to upload and play videos on my Craft CMS website.
I created a volume and field to hold these videos.
So far so good, but whenever I want to output the video in a video tag I'm not ...
|
Section handle: players
field handle: teamName
The checkbox field has two options:
Cubs
Tigers
Not all players will have the teamName field checked.
I want to order players who are Cubs or Tigers ...
|
I have a section called Library, and a category group called libraryYears. The categories in that group are just years (2021, 2020, 2019...)
Each entry in the Library is related to a year in the ...
|
I am trying to get the label from an object instead of its value to use as the automatic title for my entries.
For example: I have an entry that contains a dropdown with the handle exampleOne with ...
|
I have a custom SiteModule that is used inside scout.php to deliver indexing data to Algolia.
I have followed CraftQuest's tutorial on creating a custom SiteModule for handling the indicies.
The setup ...
|
I'm trying to pass an entry field type "Formfield" into a template. I have it working without passing any custom values through but when I do it outside of the render tag, No matter what I ...
|
I now know the answer to this but I’m posting it here as a note to myself and in case it helps people.
Let's say you are looping through some entries and storing values in a hash…
{% set myHash = {} %}...
|
Greatest hits from previous weeks:
|
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.
...
|
I have a field in a matrix block that is used for video embed codes. I want to output the contents of that field directly as HTML. However, it always seems to get entity-encoded (ie. the < and > ...
|
I tried installing Craft 3.0 using composer (php composer.phar create-project craftcms/craft PATH)
And when I try to access the /web folder it's giving me the following error. I have tried removing ...
|
Problem
I'm building a .json file for a search component of a used cars website. The file needs to be built from the output of two sections within CraftCMS, Used Cars and Vans & Trucks. It ...
|
I have a date field, and I want it to be possible for this to be empty. How it works now is that if you don't enter a value, it takes today's date. Any suggestions?
|
When doing a composer update in a Craft project on MacOS Catalina, I suddenly get the following error:
***** requires ext-zip * -> the requested PHP extension zip is missing from your system.
Any ...
|
Is there any way to use a macro in twig to define a variable outside that macro?
For example, say you want to use a macro to set a variable that stores an entry's parent (I know you can do this much ...
|
Can you answer these questions?
|
I'm trying to make some fields unavailable for a certain user group when they create or edit a new entry. These fields should only be available to admin users.
I had implemented this by extending the ...
|
What if two people have the same item in the cart and it is the last in the stock one of those people finishes the purchase, then technically that product is no longer in the inventory that happens ...
|
I have developed a module which overrides the entries page in the admin control panel as we need some custom fuctionality on that page. It's mostly working, however when I set the element type in the ...
|