Questions tagged [craft3]

For use with questions relating to the Craft 3 version of Craft CMS, including the Beta and RC releases.

Filter by
Sorted by
Tagged with
2
votes
1answer
80 views

Revisions limit

To extend the revisions limit I currently edit the "vendor/craftcms/cms/src/templates/_includes/revisionmenu.html" file. But I have to do it after each Craft CMS update. Is there a better way to do ...
2
votes
1answer
23 views

Invalid KML file using SmartMap Plugin

I'm using SmartMap for Craft3 to develop this filterable map for Columbia, Missouri. Here's the staging site: http://visionzerodev.org/map-alpha/ This works brilliantly. Huzzah. Now, I also need to ...
1
vote
1answer
32 views

Group by related entries field

I have a channel of Musical Compositions: Now all these Compositions have a Composer. All the composers are stored in a separate channel and then linked with their respective compositions trough a ...
2
votes
1answer
39 views

Craft's control panel search function returning inconsistent results

When I search for titles of entries in the Craft control panel, I get odd results: I have an entry called Fake Story about the Economy. If I search for that exact title, I get no results. If I ...
1
vote
1answer
66 views

Craft CMS 3 Rich Text Editor

Is there a rich text editor for Craft CMS which supports both HTML source code edit as well as adding images by URL (not uploading to assets)?
1
vote
2answers
98 views

Flat pricing for different currencies with sales

I am trying to implement flat pricing for Craft (ie. different fixed prices for products, based on the currency). I have it working thanks to this post (Craft Commerce: Hard code different product ...
1
vote
1answer
162 views

Imperavi Article (WYSIWYG editor)

Any plans on adding Imperavi's Article WYSIWYG editor to Craft CMS, like Redactor?
1
vote
1answer
98 views

Calling unknown method: craft\models\Section::hasUrls() - Craft 3 upgrade

I am migrating a site from Craft 2 - Craft 3. In my sitemap template I have the following code; {% for section in craft.sections.getAllSections() %} {# We only care about sections that have URLs #} ...
1
vote
1answer
87 views

Craft CMS 3 - Manual database backup

Since my hosting provider is blocking mysqldump on its server, I'm trying to do a manual backup of my database in order to import the DB into my test environment. I'm stuck on the elements to ignore ...
1
vote
2answers
1k views

ext-zip trouble

Issue: craftcms/cms 3.3.9 requires ext-zip * -> the requested PHP extension zip is missing from your system. Details: I am running on MAMP Pro 5.3. Currently using PHP 7.3.3 (but previous versions ...
1
vote
1answer
30 views

order and limit the occurrences of related categories

I'm generating a list of all related categories of the entries listed on the page. {% for entry in entries %} {% set categories = craft.categories.group('functieGroep').level(2).relatedTo(entry)....
1
vote
1answer
19 views

$order->dateOrdered returns a string value the first time and DateTime after that. [Order got through event]

I am using the Commerce 2 plugin and I am experiencing a very odd issue. Once an order is complete I want to use the dateOrdered property to create a csv which I send through a request endpoint. That ...
1
vote
1answer
48 views

project.yaml synchronize error (not usable anymore)

I had a table field and created a new super table field to try something. After that I removed my table field and gave my super table field the same handle like the old table field had. I did it ...
1
vote
1answer
35 views

\ns\prefix\Plugin::getInstance() returns null from another plugin in Craft 3

I'm building a plugin that extends the functionality of the Contact Form Tuner plugin and customize the email recipients based on different scenarios. The email addresses need to be managed in the ...
1
vote
0answers
43 views

Prevent Redactor from stripping tags like <span>

Is there any possible way to prevent <span> tags from being stripped from a Redactor field? I've tried all I can using custom Redactor and HTMLPurifier configs to no avail. Basically what I'm ...
1
vote
1answer
83 views

Choose not to save an element on EVENT_BEFORE_SAVE_ELEMENT

I want to do some server side checks to see if the entry should be saved or not. In my plugin I have something like that Event::on( Elements::class, Elements::EVENT_BEFORE_SAVE_ELEMENT, ...
0
votes
0answers
25 views

Craft3 DateTime is updating todays date on element save

I have an issue where my new element is saving with the current date and time. I won't want it to save with any kind of date/timestamp. Does craft just automatically put in the current date and time ...
1
vote
1answer
28 views

Can't import a complete url into an url field with feed-me

Description I have a JSON feed which contains an external URL like "https://example.com" (entries/external_link/url). There is no error in feed-me logs when I run it, all the text data and assets are ...
1
vote
2answers
100 views

Matrix field within a matrix field

I am working on a product page where I want to give the option to the user to select between which sections they want to use eg banner section, description section, video section etc. Now since the ...
1
vote
1answer
28 views

Strange Link Problem

I am creating a blog with an index page that links to individual blog show pages. I'm having a weird issue where when I click on the title on the index page instead of it linking to: ...
0
votes
0answers
38 views

Toggle class on any tag in Redactor

Is it possible to toggle class on ANY tag in Redactor? This is my current code but it also switches tag to <p> (I guess that's default tag if no "tag" argument is set) when class toggles: { ...
1
vote
1answer
20 views

Image thumbnail generation (on S3/Cloudfront integration) returns blank when first generated

For a client site with S3/Cloudfront integration, we are seeing that images will not be able to load for the first time if they have not been generated before. I'm guessing this is because it takes ...
1
vote
1answer
47 views

Cannot go to site URL while logged in without index in URL

For some reason I can no longer go to my default site URL while I am logged in. Going to http://localhost:3001/craft-site/web/ gives me the following message in Chrome: ERR_TOO_MANY_REDIRECTS ...
1
vote
0answers
24 views

Is any way to add translations for Braintree Gateway dropin interface?

The correct way to add translation to an instance of braintree.dropin is to add options.translations array when calling the braintree.dropin.create method, for example: if ($dropinUi.data('locale') =...
2
votes
1answer
159 views

Is it possible to execute ./craft via cron?

I'm trying to execute Craft 3.3.X CLI commands via cron. I can execute ./craft from ssh no problem, but the same type of commands triggered via cron do not execute. These command works via SSH: # cd ...
1
vote
2answers
248 views

HTTP 503 – Service Unavailable error

I've cloned a Craft 3 repo that was created by another developer and I'm trying to get it running on my local server but I get HTTP 503 – Service Unavailable – craft\web\...
1
vote
2answers
373 views

Generating Webp Images - Webp Installed but not Generating Images

I'm struggling to generate webp images on my forge server. Here is my process in Craft 3. ssh in to the server (forge) Install wepb sudo apt-get install webp Check it is installed and getting piacked ...
1
vote
0answers
38 views

Cannot get asset from custom user field, with no-admin account

I would like to get a file of custom user field, which is "asset", and provide a link to the file for the user. However, the asset file cannot be gotten. The length of the asset field is zero. In ...
1
vote
0answers
26 views

Craft Table/Tabular static entry input field

Is there a way to set up a Craft CMS entry field to have a table with predefined rows and columns? I have tried with the native Craft Table field, but it allows users to add rows or edit default ...
0
votes
0answers
96 views

Craft and Algolia

I am trying to implement Algolia into Craft 3 and am having a few headaches. I am using scout to update my indexes which seems to be working as expected and am using the instantsearch.js ...
1
vote
1answer
58 views

GraphQL private schema returning public schema scope

I am setting up GraphQL on my Craft project, v3.3.16.3 I have a public schema exposing a public entry type, and a private schema exposing a private entry type. When I switch between them in the ...
1
vote
2answers
57 views

Is there a way to make conditional input fields in Craft CMS?

I'd like to use conditional fields in my CMS instance. I found an old plugin called Reasons. I'm not sure it's compatible with Craft 3, so I'm looking for a workaround.
0
votes
0answers
23 views

ElementAPI: How to trigger the Custom service php file when a endpoint is loaded

I am Using Craft 3.3.11 version I have a php file in plugin/elementapi/src/services/EapiServices.php and the same file within vendor/craftcms/element-api/src/services/EapiServices.php When ...
1
vote
1answer
65 views

Delete entries from database

I believe I made a mistake by creating about 15,000 entries in a Structure section. It has caused a lot of problems and so I decided to start again with a Channel section instead. I tried deleting the ...
1
vote
0answers
59 views

Craft 3 memcached session storage in load balanced environment

I'm getting the good old session expired popup every minute in the admin panel which is odd given that memcached should be properly configured: php.ini session.auto_start = 0 session.save_handler=...
1
vote
2answers
177 views

How to get previous and next entry using the native GraphQL API?

How do I turn these Craft queries into a GraphQL one? // entry.twig entry.getPrev({ section: "contentHub" }) entry.getNext({ section: "contentHub" }) I want to get the previous and next entry using ...
0
votes
0answers
16 views

Cart total before shipping and tax (but with discounts)?

Wanting to check this out but it appears that there is no property or method to get a total of all lineItems in a cart plus any discounts (so without any tax or shipping (ie. other adjustments)). It ...
1
vote
1answer
127 views

Template not found error when template file does exist

I am getting a Template not found error. Template not found error: case-studies/_category However the template does exist (see screenshot). I have tried clearing the template cache but still the ...
0
votes
0answers
48 views

Set redirect URL according to some conditions

I implemented an API and in one controller I need to open a webview for the user to enter some data from another site and then come back to my site. I am having trouble setting the redirect URL since ...
2
votes
0answers
38 views

Using multiple elementTypes in Element API

I am currently trying to create an autocomplete search with the element-api. I need results from two different elementTypes: Product::class Entry::class How do I get results out of both elementTypes ...
1
vote
1answer
63 views

Craft 3 on new MAMP Pro 5 installation: “iconv(): Unknown error (22)” problem in /vendor/twig/twig/src/Extension/CoreExtension.php

I have been fighting with a Craft 3 upgrade of a Craft 2 site on a local dev environment for a while now, though much of the time the problems turns out to be MAMP Pro 5 and/or FastCGI PHP. I'm not ...
1
vote
1answer
90 views

Verbb Navigation Plugin Assistance needed

Good morning and thank you in advance. I have one Verbb navigation called main. Underneath that, I have three nodes (see image). Under those nodes are regular links. I want my template to pull only ...
0
votes
0answers
35 views

Save and log in a user from event callback

I'm trying to build a plugin wherein after a user is created via the normal means via a front end template, the user is immediately logged in. My module is watching for the after save event on ...
0
votes
0answers
22 views

Craft using over 1000mb of memory: HTML Purifier and Yii db

I've been getting warnings from my host lately that my Craft website is using around 1000mb of memory and they've had to kill processes (my limit is 512mb). I'm curious, is this normal? Seems to be ...
1
vote
1answer
78 views

Fields Missing. Gone from Database as Well as Control Panel

Recently the organization I work for started a podcast and wanted to add a section on the site where people could find some information about the podcast, some links to subscribe, and more details ...
1
vote
1answer
23 views

Replace # with entry.title

Good morning and thank you in advance. How can I replace '#' with the entry.title. I have tried everything and I keep getting hash errors. Current code is this: <h3>{{ wordBoldTitle|replace({'#'...
0
votes
0answers
12 views

Set the redirect url for a request from a plugin

I implemented an API for my Craft 2 site, One of the requests requires me to open a webview where the user can fill in some forms. What happens is that he enters some info from the app that will be ...
1
vote
1answer
86 views

ERROR: relation “info” does not exist

Be warned this is sort of Docker related question too. I try to build local development environment using Docker (nginx 1.16.1 + postgresql 12.1.0) running Craft 3.4.1. I've came up to a point where ...
1
vote
1answer
25 views

Hide navigation from one entry but not others

I am looking to hide the main navigation for entries that have the lightswitch 'showMainNavigation' disabled. The problem I am facing is when I disable for one entry, the navigation is hidden for all ...
1
vote
1answer
67 views

Securing a Generated PDF

I recently purchased the Digital Download plugin for Craft. I'm wanting to secure a PDF download generated by another plugin called Enupal Snapshot. Reviewing the Digital Download documentation I'm ...

1
4 5
6
7 8
31