All Questions

1
vote
1answer
19 views

Mobile page support

Is there any good practice to how to serve mobile pages differently from Twig? What I would like to achieve is the following, right now we have pages like: http://myawsomecraftpage.com/stories/aaa-...
1
vote
1answer
18 views

Can you hook into a Redactor field before render?

I am wanting to hook into all my redactor fields content before rendering and update any inline links to include a title="" attribute. Is it possible to hook into the field before it is rendered? With ...
0
votes
0answers
22 views

How to save a file to an asset folder from the frontend?

I have a frontend canvas element that users can draw on that outputs as an SVG. If the users clicks a share button I want to save that SVG to an asset folder to then display a collection of all the ...
0
votes
0answers
16 views

Craft CMS 3 - Can Login Using Chrome - Cannot Login using Firefox

deployed this website on a shared Hosting and: 1) Can Login Using Chrome 69.0.3497.100 (Build ufficiale) (a 64 bit) EVERYTHING WORKS exexpt for An unknown error occurred. when saving entries (get ...
1
vote
2answers
42 views

URI for nested categories in Craft 3

I am trying to set up the URIs for some nested categories in Craft 3 but am having some issues. My structure is basically: service-one |-subservice-one-a |-subservice-one-b service-two |-subservice-...
0
votes
1answer
18 views

“An error occurred while generating this PDF.” in Commerce 2

Like the title says, I cannot output order PDFs in Commerce 2 and not sure how to debug this. Anyone else encountered the same issue?
0
votes
1answer
47 views

Matrix field validation on guest entry submission

First I illustrate the way I set up guest entry form. Let's say I have channels blog product and comment cart. Guest entry submits to the comment cart channel. Form lives in template which I use to ...
0
votes
0answers
62 views

Object of class DateTime could not be converted to string

I am seeing the following error when I try to submit a front-end entry form, but I cannot find the cause. Object of class DateTime could not be converted to string Below is the error result from ...
1
vote
0answers
26 views

How can I set an auto respond email based on drop-down?

We have a freeform form on a site's contact page. In that form there's a dynamic recipient drop-down field for Subject which emails a different person on the team depending on the subject (...
1
vote
1answer
14 views

User Account Form Dropdown

I have a Countries dropdown menu for signing up that i didn't have before. It used to just be a text field where they can input their own country. It works on the front end sign up form properly, but ...
1
vote
1answer
23 views

Craft 3 Multi Site - Have a related entries field relate to another site, but respect localization

I am trying build a hub of sorts using Craft 3. I want the main site to be the hub which manages most of the data, and then subsequent sites are built on top of that, relating where necessary so as to ...
1
vote
1answer
18 views

Pagination: Next/Previous related to author

I'm having trouble limiting next/previous links in one channel to articles by the author. next/previous links are working correctly on the regular blog but when included on the DJ blog I get unknown ...
1
vote
1answer
26 views

Multiple cart fields/notes

First time using Commerce and made pretty good progress, but... I need to collect a few bits of information at the cart stage. The site is selling conference tickets, and I need to know: if the ...
0
votes
0answers
13 views

Why would a domain name change to IP address temporarily

Oddly my website links changed back to ip addresses. Re-saving the entries triggered the entry urls to change back to the domain name. Just trying to understand why this could have occurred? No ...
1
vote
1answer
9 views

Forward users to the right template according to the current active site's language

I am using Craft 2 and trying to forward users to the right template according to the current active site's language when they reset their password. The problem is that the reset URL that Craft ...
1
vote
1answer
14 views

Update an order afterwards

Have to update an order afterwards cause the client can choose a retail partner. <form method="post" name="submitOrder" style="width: 100%" onkeypress="return event.keyCode != 13;"> <...
2
votes
0answers
20 views

Add custom column to the orders list page

Does anybody know if it is possible to add a column to the orders list page? I can choose the 'Foo' label, but when the page want to show the orders list I get the following error: "{"error":"An ...
1
vote
1answer
34 views

Element API - Entries Related to a Category

In Craft 3, I want to list all the categories in a group and all the entries related to them. How can I do this?
2
votes
1answer
16 views

Post to Sprout Forms plugin from an app or another website

Is it possible to post a form to Sprout Forms in Craft 2 from a desktop app or another website? The AJAX example in the docs mentions this - sproutForms/entries/saveEntry What would the full URL be? ...
1
vote
1answer
23 views

Connection between twig template and website content

I am new to Craft and I am basically inheriting a site that I now need to maintain. I am a developer, not really a web designer, and my current task is to change the layout on the homepage. ...
1
vote
2answers
31 views

Calling Craft API from node.js

I really love working with Craft, especially around how easy and user friendly it is. However, I do work with React/Vue and usually I setup a node server/app that will do some routing, render views ...
1
vote
1answer
20 views

Grabbing the existing address data to use with Smart Map

I'm new to Craft CMS, so pardon me. I've been using the VZ Address plugin to handle all our address entries, and have a couple hundred of workshop address entries already. I'm trying to use Smart Map ...
1
vote
1answer
28 views

Is there a way to allow users to control alignment of images in the Redactor plugin using Craft 3

I'm looking to let editors determine the alignment of images in a Redactor field. I wasn't sure if it worked out of the box with Craft 3 (I'm using 3.0.9). I did find this plugin: https://github....
1
vote
1answer
17 views

Push/Add asset to Entry by asset filename

I have spreadsheet that i'm parsing and I have available to me a Entry ID and the Asset filename. Can I add the asset to the entry by the filename? Im targeting the product entry with: $product = ...
1
vote
0answers
37 views

Craft 3 language switcher with same domain

Is it possible to create a multi language website in same domain? In the admin settings, I created a second site with the same domain, but with a different site language. templates/ ├── index.twig ...
1
vote
1answer
28 views

How do you use the Element API plugin to output Assets from Matrix block for an entry?

I have Single Section(entry) with Matrix field which contains Assets in blocks. I'm trying to fetch assets from a single Matrix block. My element-api.php code is: <?php use craft\elements\Entry; ...
1
vote
0answers
22 views

Correct Multisite MultiLanguage Approach

I am having a website with 4 languages and has two main sections B2B and B2C. So the final URLs will look like this: @web/b2b/de @web/b2b/ @web/de (b2c uses no indication in the link - is default) @...
1
vote
2answers
21 views

Sending Error Message to Template With No Logged In User - Craft 2

I'm working at getting error messages sent from my plugin to my template (on the front end), when there is no session (no logged in user). The plugin is for LDAP authentication. Edit: For ...
1
vote
0answers
8 views

Excluding entries based on a tag across whole site

I'm trying to exclude entries that are tagged "DO NOT PROMOTE" on any page where craft.entries is used minus their actual entry page. What I've come up with so far is this: public function init() { ...
1
vote
1answer
17 views

API - Update Asset Volume

Im trying to figure out how to move asset(s) to a different volume. Also if I move it will that affect the entries that are using the asset? Here's what im using to target the asset: $resourceImage = ...
0
votes
0answers
13 views

Craft\Imager_ImgixModel and its behaviors do not have a method or closure named “getSource”

I'm looking at updating an existing Craft 2 project that uses the imager plugin for resizing and replacing it with imgix. Currently imager is doing the resize operations and storing them in resized ...
2
votes
1answer
32 views

Attempting Craft 2 -> 3 Upgrade | An Error occurred while handling another error

I'm trying to upgrade Craft 2 -> 3. I can install Craft 3 no problem, but when I try starting over/upgrading I'm hitting this error. The Craft 2 site is running the latest version of Craft. MacOS ...
1
vote
0answers
23 views

Viewing expired entries and live one with the same template

Working with Craft 2, I have a channel for events that each entry has an expiration date. Live entries should show the upcoming event info and expired entries should show archive info. I have ...
2
votes
0answers
30 views

Commerce 2 Multi-site Support

I'm currently working on a multi-market Craft3 project with Commerce2. Each product can and will have a different fixed price on each page. Product A project.tld/de-de - € 120 project.tld/en-gb - £ ...
1
vote
2answers
53 views

Commerce 2 Subscription Prices

We've currently got Subscriptions setup on a site which works a charm, but my main issue is outputting the price of the subscription, after the user has subscribed. From the docs/templates I can even ...
1
vote
1answer
21 views

Permissions needed to “edit image”?

What permissions do users need in order to access the "edit image" menu in assets? Some users can't access this, but I can't see a specific permission for this listed under: Settings > Users > User ...
1
vote
1answer
22 views

Craft redirects to domain.tld/domain.tld/ on logout

I have a logout button on my site that points to the logoutUrl. While the logout works and ends the user session, the user is brought to a page with the URL similar to domain.tld/domain.tld/ where ...
1
vote
1answer
43 views

How to edit a global footer link

In the footer at the bottom of my page, www.soldierswish.org, there are two links for 501c3 and Form 990. Is there no way to edit these from the GUI? How do I edit these links?
1
vote
1answer
23 views

Do field values get serialized before validation?

I am learning to write my first plugin for Craft CMS 3.x I have a field that gets displayed as a string, but is stored in the database as binary. When I validate it, I write: public function ...
1
vote
1answer
25 views

Allow users to edit user account email from front end form in Craft 3?

Is there a way to allow users to edit their email address via a front-end form in Craft 3? My understanding is this would require an 'elevated' user session. Which I'm guessing can only be achieved ...
1
vote
2answers
29 views

Filtering by categories AND tags with full match

We're trying to filter by categories AND tags in the one form. However can't seem to get things working as we would like. Essentially, we have a form that pulls in the tags and allows multiple ...
1
vote
0answers
53 views

How can I edit multiple entries via multiple front-end forms using Vue.js?

I found this post. However, writing a plugin in currently not an option, and I'd like to do this with Vue.js since I'm already using it for form validation & other stuff. Also, this involves ...
1
vote
1answer
32 views

Translate labels in CP with Craft CMS 3

I was wondering if it was possible to translate the labels, like "Singles","Entries" in the CP I know it's possible with Craft 2, but I didn't find with Craft 3. Do you have any ideas? Thanks!
1
vote
1answer
35 views

Sprout Import Doesn't Recognize Asset folderPath Property

I'm trying to import entries with an Asset inside a subfolder. Since I don't know what the new Craft subfolder ID will be for each Asset I tried to use the folderPath property from Craft's Asset ...
1
vote
2answers
40 views

How can I use the entry UID in the entry URI

The entries in my Craft app need a unique ‘non-guessable’ URL, so I figured I could use the UID in the URI of the entry. So in the section, where I need to provide the URI format I entered "section-...
1
vote
1answer
37 views

Focal point: more control?

I originally had this setting in twig for gallery thumbnails: {% set square150 = { mode: 'crop', width: 150, height: 150, quality: 75 position: 'center-center' } %} <img width=...
2
votes
1answer
26 views

RelatedTo “and” and arrays

I have something I can not get my head around. This works as expected: .relatedTo(['and',{targetElement:22},{targetElement:33}]) But when I am building an array to use as relation criteria like so: ...
0
votes
1answer
20 views

Set Password on Test User Account in Localhost

I'm trying to set the password for a 'test' user account on my localhost test site. I don't have an email server to send the reset emails, so I've been using the copy URL method. When I do go to the ...
1
vote
2answers
24 views

Individual Content dripping per user

I am building a site where I need to give each individual user access to site content according to the user progression of content consuming. For the example, User A has access to watch entry no.1, ...
0
votes
1answer
21 views

Case Sensitive username

Is craft's username field case sensitive when logging in? I'm importing 80 users into the database and when emailing the users I want to be sure how this works so we don't hit issues when they all ...

15 30 50 per page