New answers tagged

0

I haven't seen anything that does what you are asking. Since you're running headless Craft, it seems safe to assume that you have a public API that could return CMS A Glossary Terms. You could then write a custom field type, via a module/plugin installed on CMS B, that hits the CMS A API endpoint and displays the resulting glossary terms in a dropdown field, ...


1

There are a couple of things I'm seeing above that may be your issue. First, this is a question about Sprout Forms and it looks like your email is form-related however the Notification Event you have selected is for Craft Entries ('When an entry is saved'). If you want to trigger an email when a Form Entry is saved you'll want to select the Sprout Forms ...


3

Craft gives you the 'best of both worlds' in this regard with the project config. You can just create fields, sections and entry types through the interface. Every change you make is automatically saved to a declarative config in the form of YAML files in your config folder. Then you can commit the project config directory to git, deploy those in your other ...


0

There's not a native way to do it, and the workaround is pretty hacky. See here for relevant discussion: https://github.com/craftcms/cms/discussions/8707


1

Yes, absolutely, you don't need Docker or Nitro! Docker does make it a bit easier to create a common development environment / setup if you're working on a project with multiple people, but it's absolutely not required. All you need in your development environment are MySQL (or PostgreSQL), PHP, Composer and a local dev server. For my setup at work (on macOS)...


5

nextSiblingOf() and related methods will only work with Structure entries. What you need instead is next() / prev(): https://docs.craftcms.com/api/v3/craft-base-element.html#next (At the time of writing, the 3.x docs seem to be lacking any detail on next/prev methods, but the 2.x docs seem to cover it here: https://craftcms.com/docs/2.x/templating/entrymodel....


1

There's nothing in Craft core that will solve that use case, and I'm not aware of any plugins that would either. To make your current workaround a little bit more resilient, I'd suggest converting whatever field containing the values that you want to use on the entries, into to an Entries (or Categories) field (i.e. that all possible values, such as "...


1

This is a detailed tutorial for installing craft into cpanel: https://www.geniusesforhire.com/blog/install-craft-cms-in-cpanel


5

You can inject HTML to the end of the body using View Events: use craft\web\View; use yii\base\Event; Event::on( View::class, View::EVENT_END_BODY, function() { echo 'Foobar'; } ); The output of this function will appear wherever the endBody() function is placed in the index.twig. The event will even work if the template doesn't contain this ...


1

It's possible that your webhost had server / hard drive issues and rolled back to a previous backup of the site without letting you know. I've also seen cases of hosting companies doing a bad job of migrating customers between servers behind the scenes and migrating an older version of the site. Regardless, if the last modified file date is before you last ...


Top 50 recent answers are included