Most Popular
1500 questions
4
votes
1 answer
Showing the month on an archive page
I've set up an archive page as described in the docs... so my archive page url looks something like this http://mysite.dev/news/2014/09.
How do I then make the title display Archive for September 2014?
The {{ month }} variable is set as 09 and…
markstewie
- 395
- 3
- 10
4
votes
1 answer
How can I get tasks to complete when not logged in to the CP?
I've noticed that tasks only run when logged into the admin panel, is there anyway to avoid this?
For some context: I have jobs scheduled on a cron to run every 30 minutes, when I log in it seems that all of the items get queued up from the last…
Brett Moore
- 63
- 6
4
votes
1 answer
Craft 3 - Save new Entry with Relations (Categories/Assets)
i simply can not get my "job" done. I try to create a plugin for Craft, a simple one. It reads some date and should create new entries out of this data. First i stuck on a stupid save-mistake, someone here helped me get my error :)
Now, i can…
Thomas
- 85
- 1
- 5
4
votes
1 answer
Locked out of my Account, how to get back in?
This really stressing me out!
When trying to log back in to Craft CMS today after som time my password wouldn´t work. I have not changed it and when trying to reset the password I´m only getting: "There was a problem sending the password reset…
jandersson
- 41
- 1
4
votes
2 answers
How does a plugin output JS that can be used within a cache tag?
Google Maps for Craft outputs data into script tags to add markers to map with Javascript. Everything works great until a user goes to cache the output of an entries loop. It works upon first page load, but all subsequent page loads do not contain…
Justin Kimbrell
- 1,085
- 6
- 12
4
votes
3 answers
How to rename filename of asset before (or after) upload in Craft 3
I want to change the filename before the file is stored, to prevent ugly, long and weird filenames uploaded by users.
I've found an example for Craft 2, but because of the changes for events I can't rebuild this for Craft 3 (Change asset name on…
Arjan
- 151
- 4
4
votes
4 answers
Is it possible to stop Craft from logging so much?
I've got a Craft CMS installation that is set to production mode. I notice that my logs get flooded with a bunch of entries which don't seem very useful.
For example, in a matter of several days, I've already got console.log up to console.log.5 - So…
Tyler
- 41
- 2
4
votes
3 answers
Create new users with front end form and put them in a group, need help with start-elevated-session
This has been a long process that I set aside to resolve "later". Well, it's "later" and the clients wants to launch asap.
Only registered users can use this site. There are 2 groups: Manager and Employee. Users in Manager group have permission to…
Amanda Lutz
- 533
- 3
- 15
4
votes
1 answer
How to use the default HTML email template when sending an email from a plugin?
On /admin/settings/email, when the HTML Email Template field is set to a valid template, all system messages are sent using it. They inject the content of the messages inside the {% block main %}{{body}}{% endblock %} variable.
From a custom plugin,…
Romain P.
- 1,818
- 16
- 32
4
votes
2 answers
Craft 3 How to get custom user field values
I have following custom fields for users.
favouriteEntries - 'entry' type field with multiple entries per user
notificationPreference - Lightswitch field
My plugin should email notifications to users who follow that entry when there is an update to…
shakpit
- 55
- 1
- 4
4
votes
2 answers
What's the difference between ElementCriteriaModel and DbCommand?
Forgive me if this is a stupid or naive question...
I generally think of an ElementCriteriaModel as being a "search object". Specifically, it's a search object which revolves around a specific type of element. The model has attributes like order,…
Lindsey D
- 23,974
- 5
- 53
- 110
4
votes
0 answers
Does Freeform Pro save partially completed entries or "drafts"?
I'm building an 8-page registration form or application and was hoping to use Solspace's Freeform Pro. I have some experience with it, but not in all of the capacities I'm hoping to use it for on this project. I know that this plugin allows you to…
Lily K
- 103
- 6
4
votes
1 answer
Alphabetical index for a list of entries
I would like to build an alphabetical list of craft entries, but group them by the initials of one field of each entry. Thus, getting some kind of alphabetical index, like
A
Apples
Ananas
B
Beer
How do I do that?
Urs
- 639
- 4
- 13
4
votes
1 answer
Craft install via composer: install to public_html?
When I do composer create-project craftcms/craft, it will create a web folder. My webroot is called public_html though. Can I change this somehow, or should I make a symlink?
Or simply don't use composer to install in that case?
Urs
- 639
- 4
- 13
4
votes
3 answers
Getting "Session Ended" popup in admin
Every minute or so I get the "Your session has ended" popup in the admin. Entering my password just pops the message back up. If I reload the page I'm still logged in.
I'm running Craft in vagrant so maybe it's a permissions problem?
It could be…
Curtis
- 118
- 7