Most Popular
1500 questions
4
votes
3 answers
How can I export or move content from one Craft system into another? (with exactly the same configuration)
Our client build tons of articles in our craft system instead of his. Both systems have the identical structure, in fact, his system is a exact copy of ours, which runs on a different server. How can we move all his content on our craft system…
Reinhard
- 101
- 1
- 2
4
votes
1 answer
The requested URL was not found on this server
I've cloned an existing Craft site into MAMP Pro, set up my database in sequel pro and am able to access the site's homepage when I go to the URL I set up in MAMPS hosts. But whenever I click on a link, or try to access /admin, I get the…
Davers
- 67
- 1
- 5
4
votes
1 answer
When to use "if" or "without"?
When is it advisable or prudent to use without rather than a conditional statement to exclude something, eg a set of entries, based on one parameter?
For example, say I have real towns and fictional Towns that are listed on a related Regional page.…
Steven Thate
- 687
- 4
- 20
4
votes
2 answers
Gallery block inside a Matrix
What's the best solution for having a 'gallery' block inside of a Matrix? By 'gallery block' I mean an ability to have multiple images, with captions, alt, and link, presented as a gallery on the front-end, but as part of a parent Matrix (the user…
Matt Wilcox
- 3,199
- 1
- 14
- 28
4
votes
1 answer
What are useful guidelines for Craft CMS security on VPS (virtual private servers)?
We have the choice of engaging services like Forge and ServerPilot, or rolling our own.
Besides pricing, the opacity of what the services are actually providing can be a question -- just how well do they protect?
Would it be equal or better to…
narration_sd
- 1,707
- 10
- 23
4
votes
2 answers
Identify immediate siblings block type in matrix
I have a type of content that i use on the homepage of a site I am building, the code is shown here:
-
{% for point in entry.keyPoints %}
-
…
Christopher Healey- 1,378
- 1
- 11
- 27
4
votes
1 answer
Pass variable into include
I have a snippet within a template which I want to pass a variable into:
page.twig
{% set lightswitchTest = entry.aktivesProjekt('1').find() %}
{% include '_snippets/thingy' %}
thingy.twig
KSPR
- 3,786
- 2
- 29
- 52
4
votes
1 answer
multi-select OR values to filter entries
preface: i'm new to craft so may get terminology incorrect
basic idea: i would like to show entries of a particular channel which have multi-select field values which intersect with another set of values. e.g. given set ['a','c','e'] it would show…
jay
- 141
- 2
4
votes
1 answer
Best practice for channels and structures
I am wondering if there is a best practice around using channels and structures. When you have a single section you can link to that section by selecting the entry for it. For channels and structures there is no "entry" that represents the landing…
jpoiri
- 231
- 1
- 5
4
votes
1 answer
Is it possible to get a tweet image when using Twitter plugin
I'm using Dukt's very nice Twitter plugin and it's working nicely returning the most recent tweet as I want, however I cannot seem to access the tweet's image. Is this possible?
{% set tweets =…
André Goldstein
- 257
- 2
- 6
4
votes
2 answers
Fire event first time future dated entry goes 'live' from 'pending'
Is there a way I can run some code from a plugin when a future dated entry goes 'live' from 'pending'? I am trying to send an email update that a new entry has been posted. The related post below helped me with this, but it doesn't seem to cover…
Rob McFadden
- 73
- 5
4
votes
2 answers
How to build a great multi-lingual navigation with channels, structure, and manageable in the CP
I'm working on a complex website with multi locales, channels, structures and different designs per page. And the site needs a breadcrumb path.
My client needs to manage and add items the to menu.
This is a simple overview of the…
Johannes Lamers
- 2,022
- 1
- 19
- 34
4
votes
1 answer
Is it possible to listen for Yii events?
I want to listen for Yii events like onBeginRequest and onEndRequest. I've tried the following but nothing happens :(
\Yii::app()->onBeginRequest = create_function('$event', 'die ("YO") ;');
and
craft()->attachEventHandler('onBeginRequest',…
pythic
- 569
- 2
- 9
4
votes
1 answer
How can I upload separate 1X and 2X images?
I want my site to serve 1X and 2X images depending on the browser using something like Picturefill, and I don’t want the 1X version to just be automatically generated using a transform - I want to be able to upload separate 1X and 2X versions, and…
Brandon Kelly
- 34,307
- 2
- 71
- 137
4
votes
2 answers
How long will it take Pixel and Tonic to release Craft 3?
I am just wondering, when will Pixel and Tonic release Craft 3 stable version?
postsrc
- 227
- 1
- 5