Most Popular
1500 questions
4
votes
1 answer
Basic ajax - how to?
I am new to Craft. I have done some ajax in the distant past. I have searched this forum and see lots of issues with ajax but it seems that there are a lot of different approaches. Craft docs have very little on Ajax.
I am wondering if there is a…
Eric Snyder
- 531
- 6
- 14
4
votes
1 answer
How to track entry visit?
how do I able to track the visit number of entry?
Something like track view in Expression Engine.
I have try to find but don't have any source.
Hs Tung
- 367
- 2
- 12
4
votes
1 answer
Registering a class library within a plugin
I am trying to instantiate a class from a third-party library from within a controller. Probably not the best place to do this but just testing.
require(craft()->path->getPluginsPath().'myplugin/vendor/ifpk/src/fsdk.php');
$app = new fSDK;
I get…
David A McInnis
- 1,201
- 12
- 26
4
votes
1 answer
Unexpected token "punctuation" of value "." ("end of statement block" expected)
I'm trying to build an array of values from 4 entries so I can lay them out in a comparison chart. I figured the best way to do this would be to add all of the values to a nested array. So I've set this up...
{% set plandata = {
…
user2040962
- 41
- 1
- 1
- 2
4
votes
1 answer
Why is /blog not displaying /blog/index.html?
So basically, my url is mysite.com/blog which should apparently lead to /blog/index.html which is stored under templates/blog/index.html. As far as I can see I don't need to set up any routes to make it work and it should be happening as standard.…
David
- 41
- 1
4
votes
1 answer
Database structure for Craft 3 to import from external source?
Is there any best practice how to import info Craft 3 data from external source, or should I backtrack it from the database?
Visky Máté
- 359
- 1
- 11
4
votes
1 answer
Manual Plugin installation on Craft 3
I'm trying to manually install a plugin Pic Puller for Craft 3 Beta.
My shared hosting won't allow enabling of allow_url_fopen so it can't be done via the plugin store within the dashboard.
Any docs I checked are telling me to add the plugin files…
Christian Rochford
- 43
- 1
- 3
4
votes
1 answer
Craft 3 Multi-site with no "default" site
I have setup a Craft 3 multi-site with the following configuration:
But what I really want is:
Additionally, I want to have a 'default' http://localhost:8888 so I can always redirect to /en or /es based on the browser language, but I don't want to…
Rosana Ruiz
- 523
- 4
- 15
4
votes
5 answers
Craft 3 language switcher
Does anybody successfully implemented a language switch run Craft 3? Trying the Craft 2 variant slightly adjusted but still running into issues: Invalid site handle: nl
-
{% set otherLocales = craft.app.i18n.siteLocaleIds|without(craft.locale)…
Robbie Post
- 411
- 5
- 12
4
votes
2 answers
Mailer config in Craft 3 not getting merged
I have this custom config in config/app.php,
but Craft seems to keep using the default Control panel Sendmail config.
It seems this doesn't get merged in the main.php file. (as promised)
return [
'components' => [
'mailer' => function() {
…
Thaoms
- 93
- 7
4
votes
1 answer
How can I check if a plugin is installed and enabled, in Craft 3?
In a question I asked a few years ago, it was very simple to perform a check on wether a plugin was installed or not.
As of Craft 3, the same methods don't seem to work. The likes of this always returns true:
{{ craft.myPlugin is defined ?…
Mark Notton
- 2,337
- 1
- 15
- 30
4
votes
1 answer
Issues upgrading Craft 2 to 3 - Keep seeing Install Screen not Update screen
I'm trying to update my development site on MAMP from Craft 2 to 3. I've installed Composer and tried both upgrade methods (keeping the current directory structure & using the new structure). But with both options, I keep getting shown the install…
Whale Creative
- 51
- 1
4
votes
2 answers
Does Craft have built-in queue handling for outbound mail?
Does Craft have built-in queue handling for outbound mail? For example if Settings -> Email -> Protocol is set to "SMTP" and the mail server is temporarily down when an email is to be delivered, the email will then be delivered later when the mail…
Magnus
- 171
- 1
- 7
4
votes
2 answers
Need to make a wish list / favourites system
Has anyone made a plugin which allows for a visitor/user to remember an entry and then see a list of them?
I need to make a "short list" page for our new site.
I was sure there was a plugin that did this, but I can't for the life of me find it…
GlennJ
- 575
- 3
- 12
4
votes
1 answer
In Craft 3, (how) can I disable a category on a per site basis?
In the CP, is it possible to disable Category X for site A, and not for Site B? And if so, how?
Paul
- 6,338
- 12
- 26