All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Database Exception – yii\db\Exception

I created a plaintext field called 'researchYear' that was add to a section called 'research'. I added a record to the section. I went back to the field, renamed it to 'researchDate' and made it a ...
0
votes
0answers
7 views

“Template not found” in live-preview

I am using docker for my local webdev and am new to Craft CMS. Currently I have a simple setup running, however, my Live-Preview does not seem to work and throws the "Template not found" error. Yet, ...
0
votes
0answers
7 views

Which twig file is being used and how?

I have a page in Craft (2.x) that displays several links and I was able to find which twig file had those links by searching the code base of twigs. Those links point to some Angular code with links ...
0
votes
0answers
4 views

Update issues on local laravel valet

When I update any plugins ( and I mean any not specific) the vendor package vlucas (Php DotEnv) is removed and the site subsequently breaks complaining it cannot find the DOT env file. Manual update ...
0
votes
1answer
8 views

Local DB SQL 'CDbException' Errors on Craft 2 site

Just tried to get a local site working again but getting all sorts of issues. I have updated the website online and downloaded the database, installed locally. I have also the craft/app folder to my ...
0
votes
1answer
18 views

How to insert widgets in Rich Text field

I want to insert widgets in arbitrary positions in one of my rich text fields. A good example would be a contact form inserted in the middle of the content. These widgets would be ad units, forms and ...
0
votes
0answers
5 views

Element Api: Create list of sites

I'm trying to provide a list of sites in a multisite environment as a JSON Feed for a Vue component. My current solution is to loop through the sites in the template with twig and pass it back to ...
0
votes
2answers
26 views

Deploying and syncing project.yaml

I have a Craft CMS site set up that deploys through TeamCity and am trying to set up a build step to auto run "./craft project-config/sync". I keep getting an error saying the file can't be found, I'...
1
vote
1answer
17 views

Element API - Markdown in JSON

I'm a little bit stuck using the Element API. I managed to get my JSON file going pretty easily which was great but I've reached a point where I want to include some formatted copy as it would be ...
0
votes
0answers
14 views

Craft 3 Multi-site with no “default” site AND where control panel login route remains intact and additional directories not necessary

Maybe one of you can help me out? I've tried setting up a multi-language site with no "default site" as per Craft 3 Multi-site with no "default" site. So far so good, except the control ...
1
vote
1answer
14 views

User profile page

I'm looking to setup a profile page, displaying a users details (address etc) and they're current membership status (which will be down the Stripe Payments plugin.) I'm having some trouble getting ...
1
vote
1answer
21 views

CraftCMS: Search entries by title in CMS

In the CraftCMS admin page at /admin/entries/, there is a search bar at the top: This search bar appears to only search the Body field of Entries. Is it possible to make this search bar match ...
0
votes
0answers
16 views

Editing Entries are not working

I am not sure if anybody has come across this, but after clicking "Settings" in the Admin Center all of my "Pages" entries are un-editable. When I click to edit them, all that shows is the title, the ...
0
votes
0answers
13 views

Integrity constraint violation - Not null violation

Looking for some help here - I'm working on a site that is using a PostgreSQL db and am running into an issue. When saving a large Matrix field with multiple block types I was receiving the following ...
1
vote
1answer
7 views

Install license key for plugin

can someone explain how I can install the license of a plugin in my installation? concretelly I have the craftql license key in https://id.craftcms.com/licenses/plugins and I want to setup that into ...
1
vote
1answer
15 views

Element API: How to get entries up to a certain page?

I have a query that is pulling entries from a structure with elementsPerPage' => 3 If my pagination looks like this: Page 1: Entries: A, B, C Page 2: Entries: D, E, F Page 3: Entries: G, H, I ...
1
vote
2answers
17 views

Search question: dot (period) and partials

We have a job inventory where the jobs are being saved as entries. When searching against jobs by keyword we search against two fields: the title and a job description field. However we are ...
2
votes
1answer
15 views

Installing CraftQL plugin

I wanted to know if there is any way to install markhuot/craftql via the command line. I tried to follow the one-liner instruction here: https://github.com/markhuot/craftql#installation composer ...
0
votes
0answers
8 views

Craft 2.7.4 - Creating staging, blank screen

We have a live website running with Craft CMS 2.7.4, now I want create a staging environment so I made a copy of the live website files and the DB, I changed all the links from https://www.website.com ...
1
vote
2answers
27 views

How do I set up Craft 3 to web server in WAMP?

I'm very new to Craft CMS, and I certainly love this concept! However, I keep trying to run it locally onto my computer following the documentation here https://docs.craftcms.com/v3/installation.html ...
0
votes
0answers
17 views

Craft 3 Upgrade, getting 503 on one subdomain

I am trying to upgrade from craft 2 to craft 3 and having a 503 error problem on ONLY ONE of the sub-domains. we are running nginx on Ubuntu on this server. we have 2 sub domains (www.domain.com &...
1
vote
1answer
10 views

Pulling blog entries related to a structure entry field type

fairly new to craftCMS. I've wrestled with this now for hours and exhausted all research avenues. I have three main "service pages" (Web Design, Digital Marketing, Hosting & Analytics) These are ...
1
vote
1answer
24 views

When should I run queue/listen instead of queue/run?

Definitions from the documentation: queue/run: runs all the queued-up jobs queue/listen: listens to the queue and runs new jobs Example case: The runQueueAutomatically config option is set to false,...
1
vote
1answer
12 views

Array from matrix fields without quotations

I am trying to create an array bodyBlocks by looping through all of my matrix fields called blockTextContent: $bodyBlocks = []; foreach ($entry->getFieldValue('pageBuilder')->all() as $block){ ...
1
vote
1answer
9 views

Craft 3 install problem on windows 10

Anyone come across this problem with installing craft3 on windows with MAMP Pro. I have installed composer and this seems to be working fine. The php path I added directs composer to C:/MAMP/bin/php/...
1
vote
3answers
18 views

Show only top level categories assigned to an entry

Having a bit of a brainfart here... If hotspotCategory is my entry's categoryfield and that category group has nested categories, how do I return only the top level categories? {% set entryCats = ...
1
vote
1answer
21 views

New Install, Permission Errors With /storage

I've configured Apache vHosts on a local box and installed a Craft 3 website onto it. This new instance will serve as my "staging" environment for an upcoming website. I've installed with composer ...
1
vote
2answers
14 views

Laravel Forge not honoring Craft 3 maxUploadFileSize config setting

I have a Craft 3 site deployed to a Digital Ocean droplet via Laravel Forge. I have the maxUploadFileSize set to 256B (268435456 in bytes) in my config/general.php like so: <?php return [ // ...
0
votes
1answer
34 views

A desperate plea for `project.yaml` sorting sanity

Y'all. Seriously. What is up with this: Whatever happened to the alphabetical sorting? I mean, I see that the right side state is sorted alphabetically, but how'd it get to the "before" state to ...
0
votes
0answers
10 views

Updating large database from Craft 2 > 3 via command line

I'm migrating a large Craft + Commerce site up to Craft 3. I've completed all the initial steps and get as far as the "To complete the update, some changes must be made to your database. Finish up" ...
1
vote
1answer
26 views

Matrix | Craft 3 Element API / Scout Plugin

I am trying to grab the contents a matrix field (Redactor). Here is the section of code I am struggling with: $bodyBlocks = []; foreach ($entry->getFieldValue('pageBuilder')->all() as $block){ ...
0
votes
0answers
31 views

Passing variables into twig components

Based on this interesting article: DRY templating with Twig and Craft CMS. I found myself trying to update the approach with include instead of macro following reading I had about twig 2 and craftcms ...
1
vote
2answers
33 views

EVENT_AFTER_SAVE_ELEMENT triggered twice after saving an entry

I had this weird issue, not sure if that happens to you guys or not. I'm trying to catch the 'after entry is saved' event, using the following code in my custom module's init() function (The module's ...
1
vote
2answers
32 views

In a plugin, how to get entry status?

This seems like it should be simple to find, but where does Craft store the status of entries (lightswitch for enabled/disabled)? It doesn't seem to be a column in the entries table, and I can't ...
0
votes
0answers
20 views

Include Field in URL

Looking for a way to include a field value in a section URL. Is this possible? It appears to work but always shows 'default' rather than the field value.
0
votes
0answers
16 views

Logging into CP doesn't set authentication cookie

Trying to debug an issue where in a dev environment logging into the cp it doesn't set the CP Authentication Cookie (the hash with the _identity) at the end of it. I believe this is the root cause of ...
0
votes
0answers
12 views

How to get category/entry url and a category url in entry breadcrumbs

I have entries for a channel called ‘resources’ that are related to multiple resource categories. When I call the category specific resource entries in a index, how can I get the url of website/...
1
vote
1answer
20 views

When to create a new asset volume?

I'm not sure if I've been using asset volumes correctly. For each folder inside my /uploads directory, I've been creating a new volume. So they're all relative to /uploads I have volumes for things ...
1
vote
1answer
19 views

3.2 upgrade, drafts table error

When I try to upgrade to 3.2 on my site I get an error saying the drafts table already exists. Does anyone know of any plugins that use such a table? I'm trying to sort out what's going on.
0
votes
1answer
23 views

Request must accept JSON in response

I am getting error message while loading entries from dashboard. Please see attached screenshot - While looking into browser console, I found the error message Request must accept JSON in response (...
1
vote
1answer
19 views

Force SSL on sub folder

I'm having issues forcing an SSL on my website. I think the issue may be that my root folder is my 'web' folder. I've searched online and tried a few variations of htaccess but none of them seem to ...
0
votes
0answers
12 views

EntryModel as model attribute doesn't get populated as model

I've created this custom plugin with a CP interface for a website running latest version of Craft 2. Each record in my custom table relates to an entry using an entryId. I've set up all the records ...
2
votes
1answer
28 views

Use of duplicate slugs, without -1

Is there a way/workaround for using "duplicate" slugs? Example: shop.com/candy (category page with listing of candy's) shop.com/about-us/candy (plain page with info about the production process etc)...
1
vote
1answer
20 views

Max character limit on WYSIWYG text editor plugin?

Is it possible to add a max character limit to CKEditor, Redactor, or any other rich text, or WYSIWYG plugin?? I've searched around, and I'm surprised that I have not been able to find a solution. ...
0
votes
0answers
9 views

Is there an easy way to reset user permissions back to usergroup settings?

Is it a matter of clearing the userpermissions_users table? Background: After initial authoring, we've cleaned up permissions for our usergroups, but the existing users have accumulated manually-...
1
vote
0answers
21 views

Account Verification or Password Reset Error

Craft 2.6 I have a site that's been running for some time and now when trying to do a password reset or account verification error I get the following message. I found this stack exchange thread ...
0
votes
0answers
13 views

Is this to depth for a super table field?

I have a section with products. Then a section where you can create sets with the products. Means a super table field with the field quantity and a entries field. Example: Database Products: ...
1
vote
1answer
12 views

Refused to display/connect when previewing entry on multi-site setup

I run a multi-site setup with four sites; one on unicorn.com and one on all-your-base.com. The way Craft CMS licensing works, you can run multiple sites on different domains on the same license/...
1
vote
1answer
42 views

How to have Craft 3 and 2 on same host?

I have a Craft 2 installation that I'm upgrading to Craft 3. I've got v3 running locally in its own virtual host, but now I need to temporarily put the dev v3 instance in the same hosting account as ...
1
vote
1answer
16 views

What purpose does the site-selector under assets fulfill?

I'm kind of confused about the site selector under Assets, because from what I can gather it actually doesn't do anything? See this screenshot, top left: I was first under the impression that I would ...

15 30 50 per page