Most Popular
1500 questions
4
votes
1 answer
How do I display a list of assets with the entries they are related to?
Given a list of assets, for each asset, how do I display a list of entries that relate to this asset? So, for instance, if asset A is selected as asset in entries 1 and 2, I want a list to be displayed like this:
Asset A:
Used in entry 1
Used in…
Paul
- 6,338
- 12
- 26
4
votes
2 answers
How does a plugin make use of Assets?
Within my plugin, I have a need to open an Assets sheet and pick a file that has been uploaded and make use of it in my plugin. How is this possible? I am looking for something similar to the EE version of Assets that will allow me to…
Justin Kimbrell
- 1,085
- 6
- 12
4
votes
2 answers
Deploying CraftCMS to Digital Ocean
Currently I'm having an issue deploying to Digital Ocean and would love some advice, i've followed numerous tutorials but they seem to just drop off half way through the process so just need some clarity on this. I've broke down what I've done…
JMKelley
- 1,384
- 10
- 27
4
votes
2 answers
Self-hosting requirements/scaling
Is there any reason the mySQL, CraftCMS, and assets/images/content can't all live on the same server, assuming the server is appropriately sized and backed up?
Are there any sizing/scaling guidelines?
davids
- 41
- 1
4
votes
1 answer
Registration into default group is not working as expected
Here are my settings for user registration:
\
When front end registration completes the users are added fine but not into the default user group as expected. They are just in the system with no group.
I was expecting them to be registered into the…
joomkit
- 2,014
- 1
- 13
- 24
4
votes
1 answer
User registration plugin listening
How can I listen in my plugin to see if
craft()->on('users.saveUser', function(Event $event) {
onsaveUser came from front end creation or control panel ?
joomkit
- 2,014
- 1
- 13
- 24
4
votes
2 answers
Prevent users for assigning permissions
I want to control what users are able to do. For example, prevent access to the CP when the system is off.
How can I prevent users for assigning extra permissions but still allow them to assign users to User Groups?
At present, it would appear that…
Joshua Baker
- 469
- 3
- 11
4
votes
2 answers
Get the author of current entry version?
How would I go about to get the author from the current version / revision of the entry I'm on? Im trying to get "last updated by" in frontend, but authorId on the entry seems to be the original author, not the last that edited it.
carlcs
- 36,220
- 5
- 62
- 139
4
votes
2 answers
Can I set an environment var for SMTP mail servers?
Pretty straight forward here, I'd like to use MailTrap for devMode and then use an SMTP service (Mandrill or like) for production. I looked through the General Config Settings docs but didn't see anything that lent itself to being SMTP related. Is…
Ryan Shrum
- 1,914
- 14
- 22
4
votes
2 answers
Most related articles
I am using the normal relatedTo property to find related articles, but I have an issue which is:
craft.entries.section('section').relatedTo("tags").id('not ' ~ entry.id).limit(3)
Lets say THIS article has 2 tags: "cat" and "animal",
then I use the…
Wobee
- 328
- 2
- 9
4
votes
1 answer
Update cart lineItems through ajax
How do I update the lineItems after I submit the form through ajax? right now it adds the item, but it doesn't show up in the cart, it only shows up when I reload the page.
I am adding an item to the cart through ajax with this…
pinksorceress23
- 63
- 4
4
votes
1 answer
Migrating from WordPress to Craft CMS
I am trying to migrate blog posts from WordPress to Craft CMS through the Feed Me plugin.
First, I export posts in .xml file from Wordpress. Then, I import in Craft CMS.
All things are good except the category and tags. It imports the category and…
Aaradhya
- 41
- 2
4
votes
1 answer
Using plugin template on front end
I'm working on a plugin called modelselector and I want to use a template stored in the plugin templates folder but it should be shown on the front-end of the website.
Currently the following direct URL works for…
Floriskoch
- 349
- 1
- 6
4
votes
1 answer
Better way to find a specific asset?
I'm currently using a route to get a specific asset for a gallery section of my site. URL is similiar to http://craft.dev/place/place-name/gallery/1 (Where 1 is the number in the gallery.)
I'm currently doing the following in the template
{% extends…
Seán O'Grady
- 1,582
- 1
- 14
- 25
4
votes
4 answers
Discussion forum
I know this has been discussed a little bit on here, but I'm asking if any one has successfully implemented a Members Discussion Forum using CraftCMS ?
Or, if anyone knows of an add-on roadmap to include this type of functionality ?
I'm really…
Eric Lyon
- 41
- 2