All Questions

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

Path issue when developing locally - /web/ folder

I'm building a Craft site locally and I'm unsure how to handle a path issue that will occur when the site goes live. My understanding is that in a live implementation, the /web/ folder will become the ...
0
votes
0answers
8 views

Send entry as HTML email

Looking to build a hybrid news service that publishes to a website but also sends an entry to a mailing list. Has anyone done anything similar?
0
votes
0answers
12 views

contact form plugin conditional notification emails

I would like to be able to use case or if statements to include templates for the notification email, as overridden by the contact form extension plugin. However, no matter what I've tried, the first ...
0
votes
0answers
9 views

Has anywhere users successfully run Craft 3 on CyberPanel / OpenLiteSpeed?

I've been trying to get a Craft CMS 3 project running on CyberPanel 2.x (with OpenLiteSpeed v1.6.14). For the most part everything has gone well. Where I get stuck is with the LiteSpeed caching. The ...
0
votes
0answers
11 views

Craft CMS + Nginx redirection

I am using the latest version of Craft CMS with Nginx server. My problem is, in my site settings i setup 4 websites that are as below: German (de-de) [default] German English (en-de) Austria (de-at) ...
0
votes
0answers
13 views

Multiple (dev) sites running locally; session seemingly randomly times out

I've got multiple sites running on XAMPP (I'm on Windows 10). Each has its own domain (eg. dev.example.local, dev.otherexample.local, etc). When I try to have more than one site CP page open in the ...
1
vote
1answer
17 views

Searching on whole title returns no results

When a client site is searched by the whole title, the search results return zero. If I search by a few words in the entry title then the entry is returned in the search results. If i search with the ...
1
vote
2answers
21 views

Offset setting a limit?

If have this in a template: {% for mainLink in section.links.limit(4).all() %} {% endfor %} {% for secondaryLink in section.links.offset(4).all() %} {% endfor %} Which I thought would show the first ...
0
votes
0answers
16 views

Uploading user photo with content-type multipart/form-data

I'm using Vue + Axios to update user information. Everything is working well when the content-type header is set to application/json, but when a user tries to upload a profile image with the ...
0
votes
0answers
11 views

Shipping Rules and Shipping Categories

I'm trying to set up some shipping rules. I've created a new shipping category called "Sample" I can apply it to the product fine. When I set the rules I want and then head to the checkout ...
1
vote
1answer
19 views

Can slug and title changes be propagated to multiple sites?

I'm noticing that if I change the title or the slug of an entry after creation, that change isn't propagated to my other Craft sites. Is there a way to propagate title and slug like other fields?
1
vote
1answer
20 views

Change php.ini to max execution 120

I found the php.ini file, but I don't see where to change max execution to 120. Thank you for your support.
1
vote
1answer
30 views

Redactor: Set a min height and preserve line breaks

I'm looking to set a min height on the redactor text area. The vendor site shows how it can be done, but doesn't specify where to add this code snippet. $R('#content', { minHeight: '500px' }); I ...
1
vote
1answer
21 views

Showing different field layouts for entries within the same structure

I set up a structure for pages that looks like this: - All Services - Service 1 - Service 1 subpage a - Service 1 subpage b - Service 2 - Service 2 subpage a - Service 2 subpage b ...
1
vote
1answer
18 views

Running Craft Console Commands on Webfaction

I'm trying to run a few of Craft's console commands on a Webfaction server to automate running Craft migrations and resolving Project Config changes, and it's throwing an error. Here's what I'm doing: ...
2
votes
1answer
85 views

How to check an entry is in a section within a for loop

I need to display different information depending on the section the entry comes under when I'm displaying all entries within a loop. Use case - I have a feed which will pull in all entries such as '...
1
vote
1answer
19 views

Namespace error with fixture (solved)

I've set up a fixture, but Codeception can't find it. What am I missing or doing wrong? % php vendor/bin/codecept run functional ... ...
1
vote
1answer
13 views

How to display decimals as fractions?

Is there a twig filter to display decimal values as fractions?
0
votes
0answers
26 views

I set up a local environment. I can log in, but if I select the site icon or preview I get a 404 message

HTTP 404 – Not Found – yii\web\NotFoundHttpException Template not found: $DEFAULT_SITE_URL 1. in /Users/brenbauer/morphd/craft3/vendor/craftcms/cms/src/controllers/TemplatesController.php at line 90 ...
1
vote
1answer
13 views

Rating like Like/Dislike

Hello! I need a rating like Like/Dislike. That it would be possible to assign likes and sort posts by them. Are there any ready-made solutions?
0
votes
0answers
10 views

Filter entries in GraphQL

I'm using Craft with Gatsby. I'd like to query a featuredpost, and filter that in my entries. I'm getting the featuredPost slug in gatsby-node, and passing that to createPage, to send a variable to my ...
0
votes
0answers
14 views

Overwrite Matrix data programatically and save

I'm working on a translation plugin. Now I want to translate fields in a matrix and save it to the right site (language). This plugin is called in a after save event. It gets the value of the Dutch ...
1
vote
1answer
18 views

How to make field instructions show as tooltip?

How to turn show as the following style
0
votes
0answers
21 views

Querying entries that have not been related to any other entry or contained matrix element

I have a large amount of content that we are attempting to collect before we migrate to our new site structures. Normally the staff are supposed to relate content back to main entries to make sure ...
1
vote
1answer
23 views

Database backup fails

I'm building my Craft site locally, but need to make it live. When I go into Utilities -> Database Backup and try to create a backup, I get the error "There was a problem backing up your ...
1
vote
1answer
18 views

Why is it when I update an entry within a structure in the admin, it reorders it to the bottom of the list?

I've created a structure and I have about 15 entries in it. They are grouped under an entry named "0234" and each entry below it is named 0234 A, 0234 B, 0234 C, etc. I would like to keep ...
1
vote
1answer
18 views

What is the different between url() and getUrl()

What is the different between url() and getUrl() Ex: {% set solutionIcon = solution.solutionIcon.one() ?? null %} <div class="img-wrapper mt--3 mb-2 mx-auto"> {% if ...
0
votes
1answer
25 views

Accessing global field values in site loop

I have a drop down select that I am populating with sites. I've added a lightswitch field (handle 'showInDropDown') to the global set 'siteInfo' with the hope of getting the lightswitch value per site ...
1
vote
1answer
17 views

How to filter entries with null value in date field?

I have date field in entry that is empty therefore has null value. I'd like to filter entries that have date field value equal to null. How would I set that parameter on element criteria object? I don'...
1
vote
2answers
41 views

How to filter entries by multiple checkbox field types

I've set up checkbox fields for photos in a photo gallery called "photoColor", "photoSubject", and "photoSize", all of which contain a bunch of options. On the gallery ...
1
vote
1answer
17 views

Outputting SVG from an asset field inside a matrix field with svg()

I've set up an asset field inside a matrix field where a user can upload SVG icons, but I'm having trouble outputting them using the svg() function. {# Correctly shows the path #} {{ callout.icon[0]....
2
votes
1answer
52 views

Commerce: what is the purpose of a line item's snapshot?

Having nearly completed my first real Commerce project, I managed to utilize most of the features offered in Commerce 3. However, I never quite figured out what the use of a line item's snapshot is ...
1
vote
1answer
31 views

Localization Section propagation settings, and related entry field setting “Manage relations on a per-site basis”

Craft 3.4.20. Site is running multiple localizations Sections: Blog Post Propagation method set to, "Save entries to all sites enabled for this section" Blog Category (Structure entry with ...
1
vote
2answers
38 views

How to use entry data?

My question: How can I use entry data in the craft backend? An example for the use-case: Author creates an entry for the section "Generate item". The entry has only a title/single word. ...
1
vote
2answers
17 views

Enupal Backup not backing up assets

I am testing Enupal Backup. In the settings, I can choose to back up assets, templates, etc. But when I run the backup, only the database is acutally backed up. What am I missing here? I submitted an ...
0
votes
0answers
13 views

Showing Reverse Relationships in CP | Products < > Categories

My clients would like to be able to see what products (Artworks) are added to a category (Collection), and vice versa in the CP. Relating on the front end is fine, but on the backend there seems like ...
1
vote
1answer
10 views

Front End Entry Form - File/asset field not saving when ajax submitted

I have a front end entry form which submits and saves fine when not using ajax. But when i do submit via ajax the text fields etc save fine but the file/assets field will not. I have stripped it right ...
1
vote
1answer
43 views

Ajax request returns code instead of result of the query (solved)

I'm trying to answer my own question in this post Basically, I have a bunch of checkboxes in multiple categories and when clicked, I want to use Ajax to filter the results and show them on the same ...
2
votes
1answer
22 views

Dynamic postCpLoginRedirect based on user permissions

I'm wondering if it's possible to set the postCpLoginRedirect config setting dynamically during plugin initialization. Seems like that's a no-go, but wanted to confirm. Ideally, I'd like to ID users ...
1
vote
1answer
23 views

Get field type in templates

I need to get the field type in my templates like I used to do: field.getField.type but that does not seem to be working in Craft 3 anymore. The result is always null. It also seems that the »type« ...
0
votes
0answers
31 views

Can I get a row from a table without looping trough the whole table?

I wanted to use a table to add global glosery, for translation purposes. (The page is in Norwegian, but need to be understandable for the whole team.) Also it should be accessable for copywriter to ...
1
vote
1answer
22 views

Use sequential numbers for entry title

I have a channel where I need each entry's Title include a sequential number, like this: 10003 - Entry Title Is there a way to prepend a sequential number to the entry title?
1
vote
1answer
17 views

How to auto enable a plugin after install?

I am developing a plugin for craft 3 and the plugin just got published to the store. I can browse through the store and install the plugin but it stays disabled. The user will have to goto Settings -&...
0
votes
0answers
11 views

Stripe Payment Plugin - custom amount/quantity

With the Stripe Payments plugin for Craft is it possible to allow customers to change the quantity (and thus the price) then pass this onto the Stripe Checkout page? I can see its possible to allow ...
1
vote
1answer
14 views

Uninstalling a plugin from Craft control panel

I'm new to Craft CMS and I'm having trouble figuring out how to uninstall a plugin. Specifically, it's the "Redactor Custom Styles" plugin. I gather from searching (please correct me if I'm ...
1
vote
1answer
24 views

Equivalent of Records in Craft 3?

Trying to convert a plugin from Craft 2 to Craft 3, not sure what's the Records equivalent in Craft 3. How do I get this to work in C3? class SearchRelationshipRecord extends BaseRecord { public ...
0
votes
0answers
49 views

Multisite with unique domains not working with Forge config

I have a live install with a primary domain of https://marketing.vessul.co/ which works great. When I've added another site to this install and it's location is another folder such as /extra-site it ...
0
votes
0answers
21 views

Custom field not saved after updating Craft

After updating Craft CMS to 3.4.24, our custom fields types aren't saved anymore from the admin interface as well as the saveElement method. This might be related to the delta saves, but setting the ...
1
vote
1answer
26 views

Feed Me logs access from the front-end

So I've created a web portal for a client so they could upload a file which triggers a Feed Me feed (on that file). I handle the upload and triggering of the feed with a custom Module. I trigger the ...
0
votes
1answer
15 views

Craft CLI ./craft - can I tell it to use a specific php version when running composer via the CLI?

With the Craft CLI, is there a way to set which php version to use? The context here is that the server runs PHP 5.4 for another project, but PHP 7.3 is installed at /usr/bin/php73 and is setup in ...

15 30 50 per page
1
2 3 4 5
246