Is there any known way to get all the entries from a certain channel? I dont want to do this in a view but in PHP since i need to do a bulk update of an attribute to all the entries in a certain channel.
I would like to add a custom button in the right section of a channels entry form in the CMS.
The this button needs to go to a custom url of the plugin that I have created. The link should contain entry ID so that I can use this ID in my plugin.
I'm building a plugin that adds blocks to a matrix in an entry from the front end. I got it up and running by following the answer in this post:
How to save a matrix content of a new entry in my plugin?
How do I check if the matrix already has…
I am a Joomla developer who has been asked to start developing Craft plugins and I'm afraid my brain is so moulded to the joomla way of doing things that I cannot even see how the template links to the plugin and fires events
I'm especially…
In the main Plugin.php file of my plugin, I can retrieve the plugin's settings like this:
$this->getSettings()
How do I retrieve those same settings from elsewhere in the plugin?
I want to reference those setting from my Service.php file.
After updating to Craft 2.6.2778, my plugin is causing these deprecation errors:
PathService::getTemplatesPath() has been deprecated. Use TemplatesService::getTemplatesPath() or TemplatesService::getTemplateMode()…
When it comes to naming files within a plugin - is it preferable to follow PluginHandle_SomeController, or stuff everything inside a single PluginHandleController file?
This is probably a subjective question for the most part - but in building out a…
I have just started to build my first plugin with Craft CMS.
Im at the part where I want to defne my database table.
http://buildwithcraft.com/docs/plugins/database
For the method definedAttributes() what values will the array accept.
It looks like…
I'm trying to wrap my head around when to use a Model and when to use a Record (or both?).
I have both my Model and my Record. In my Controller I call my Service that creates my new Record instance before running the ->save(); command to save my new…
I’m currently considering options for a project that will require a standard sales site, commerce features and a user database. The user database will require a web frontend and an API for communication with a mobile app (read and write).
My dilemma…
Is it possible to implement PHPUnit into Craft CMS? If so, where can I find a good explanation or tutorial? I already tried a Github link for a plugin (testing the plugin).
But I am new to both but really want to TDD the plugins. Any example pages…