Most Popular

1500 questions
4
votes
1 answer

What is the Pricing Structure for CraftCMS?

Is the pricing listed on the site for the Pro & Commerce versions of CraftCMS a one time, per-site charge or a reoccurring charge (i.e. monthly, yearly)?
4
votes
2 answers

Q: Freeform - have users update form on the frontend

I was wondering if it is possible to have users update their own entry on the front end with the Solspace Freeform plugin. I get as far as getting all the necessary data of the user (freeform.submission) in a form (freeform.form) and I have added…
Lucas
  • 61
  • 3
4
votes
1 answer

Complex logic on a ElementCriteriaModel parameter?

How would you combine multiple logical expressions on a ElementCriteriaModel parameter? You could query twice and then merge the two returned arrays of entry models, but that probably wouldn't allow me to later use the {% paginate %} tag or methods…
carlcs
  • 36,220
  • 5
  • 62
  • 139
4
votes
2 answers

Multiple URL's for news entry?

For news entries I want both URL's www.example.com/news/678 (where 678 stands for the entry id) and www.example.com/news/some-slug to load the same entry. www.example.com/news/some-slug works fine because 'Entry URL Format' is used for this so the…
4
votes
2 answers

MAMP: Craft can’t connect to the database with the credentials in craft/config/db.php

I'm using MAMP to setup a local environment for CraftCMS on Windows 10. I have followed all necessary procedures and have my local host and my database setup but I'm still receiving the error mentioned above. My db.php is shown as this: return…
HK94
  • 41
  • 2
4
votes
3 answers

Craft Admin assets do not load over https (Apache & Cloudflare)

staging.website.com loads perfectly over https. However, https admin pages immediately break because the assets are trying to load over http. If I navigate to the https asset directly, it loads fine. It would seem that Craft is failing to recognize…
Rjoss
  • 136
  • 7
4
votes
1 answer

Use global values in the Entry URL Format field

I'm trying to use global variables in Entry URLs generated by Craft, but they seem to be empty. Not getting any errors as such, just null. My Entry URL format looks like this: {{siteDefaults.artworksList.first.uri|default}}/{slug} Where…
Johan Douma
  • 165
  • 1
  • 7
4
votes
1 answer

Advanced Search with tags and categories

Been scratching my head for the past day on how to implement search with multiple categories. At the moment, I have product categories as a select dropdown which only allows to search in one category at a time. This is passing the value as a…
Jose
  • 103
  • 6
4
votes
1 answer

Hook into rendered templates?

I am hoping to write a plug-in to cache pages as static HTML. Is there a hook that would give me access to the full rendered HTML of a page?
Matt Fordham
  • 181
  • 4
4
votes
1 answer

Easy way to stage template updates for a live site

Im curious if folks have found an easy way to stage template updates for a craft site thats already live. Locally we have branch in the repo for the new version which works fine but on the server if we want to share them with the client ideally wed…
Keith Mancuso
  • 2,421
  • 16
  • 27
4
votes
2 answers

Redirecting after login based on user group

I'd like to control where a user gets re-directed after login based on the user group. That is, userGroupA logs in and is sent to /templateA/_entry, while userGroupB logs in and is sent to /templateB/_entry. I understand that postLoginRedirect can…
Nathan D Huening
  • 355
  • 2
  • 10
4
votes
4 answers

Search only in entries with own urls checked

Is it possible to search only in entries that have the own URLs option checked. Now i've this code: {% set query = craft.request.getParam('q') %} {% set queryWords = query|split(' ') %} {% paginate craft.entries({ search: queryWords|join(' OR…
Remi
  • 41
  • 2
4
votes
2 answers

Can the Lightswitch field have a default 'on' setting?

I'm creating a new lightswitch field and adding it to an entry type in a section which already has dozens of entries. I want the lightswitch to be default set to 'on'. When I save the entry type with the lightswitch field added to a tab, then…
Adam Menczykowski
  • 1,390
  • 11
  • 22
4
votes
1 answer

How to only show entries older than 12 months

I want to build an archive template where only entries older than 12 months show up. Is there an clean and easy way to do so? I only have strange calculations in mind. Something like this would be nice :) {% for entry in…
Rattikarl
  • 393
  • 2
  • 9
4
votes
3 answers

Unchecking Rich Text option to clean up HTML still cleaning?

We've unchecked the clean HTML feature on a few rich text fields but our attempts to add some html (span tags) keep getting cleaned out. Is there another setting we should be looking for?
CFA
  • 61
  • 2