Most Popular
1500 questions
4
votes
2 answers
How do you auto zoom/center Smart Map with multiple markers?
How can I auto center and zoom my Smart Map with multiple markers?
Something like this:
var bounds = new smartMap.map.LatLngBounds();
smartMap.map.fitBounds(bounds);
Johannes Lamers
- 2,022
- 1
- 19
- 34
4
votes
1 answer
striptags not removing tag?
I've seen how you can remove html tags with twig in other posts here so I am using:
')|raw }}
To remove thetag that redactor adds automatically. However for some reason it is not…
Lettie
- 2,033
- 2
- 15
- 26
4
votes
1 answer
Set parent nav to active
I have a navigation like this:
{% set navi = craft.entries.id('2, 4, 5, 6' ).order('id asc') %}
KSPR
- 3,786
- 2
- 29
- 52
4
votes
1 answer
How can I disable sessions for most of my Craft site?
We're running a craftcms-backed site that uses sessions only for the admin pages.
For a few reasons, we'd like to disable session logic for all other urls:
the Set-Cookie header that craft uses to initiate a session makes responses uncacheable in…
Chris MacDonald
- 77
- 2
4
votes
1 answer
The safest way to edit core Craft files?
I've been tasked with adding a column to the Entries screen to show some custom data that gets saved against each new post. To do this, I've edited craft/app/elementtypes/EntryElementType.php and added a new table attribute, which does what I need…
Chris
- 55
- 4
4
votes
1 answer
Select entries starting with same letter from alphabet list
I have a list of all my games using pagination. It works great:
http://www.colorcomputergames.com/games
However, I'd like to add links at the top of the page like:
A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z
And so I want to be able to click…
DevServe
- 303
- 1
- 10
4
votes
1 answer
Is it possible to find what Matrix Block aren't being used
I have a fairly large site with the main content on most pages driven by a Matrix field. That Matrix field has 15 or so different Blocks - we are now doing a tidy up on the site and going to try and reduce the number of blocks available - is there…
mmc501
- 1,779
- 13
- 34
4
votes
1 answer
Smart Map - Setting single map with multiple pins
I have a Smart Map field in a section and am trying to output multiple results (pins) to a single map.
This code will output multiple maps (one map per pin)
{% for mapEntry in craft.entries.section('markets') %}
{% set options = {
height: 500,
…
Micky Kelleher
- 143
- 2
4
votes
5 answers
Plugins wish list
Would it be a great idea to post here your plugins wish list? Just post it in the comments so the community can vote for it. I can collect the wishes here.
Developers can comment if the plugin is in development.
Wish list:
Comment plugin
low is…
Johannes Lamers
- 2,022
- 1
- 19
- 34
4
votes
3 answers
Display Entries in a calendar
I have a section for holding calendar entries stored by postDate in the CMS.
On the front end I want to basically display these in a calendar.
I have code which displays the calendar looping through each day of the month.
For each day it currently…
mmc501
- 1,779
- 13
- 34
4
votes
2 answers
How to add Redactor Image resizing and positioning to the Rich Text field in Craft?
Can anyone provide details on how to add Redactor (II) Image resizing and positioning to the Rich Text field in Craft?
Many thanks!
MGX
- 479
- 1
- 5
- 12
4
votes
1 answer
Changing base currency
I set up a new shop and the base currency is US dollars. However I want to change this to Euro's. How can I do this?
In Commerce --> Settings --> Payment Currencies I can add new currencies but I can't set it as the new default.
Am I looking in the…
Floriskoch
- 349
- 1
- 6
4
votes
1 answer
What's that |t - filter for?
I found this part of code in the documentation
{% set title = "Cocktail Recipes"|t %}
What does |t mean there?
nicael
- 2,382
- 7
- 27
- 48
4
votes
2 answers
Display number based on position in structure hierarchy
I'm stuck. For a new site I need to display numbers before the main h1 title and in the submenu's.
Example:
1 Home
2 About
01 history
02 strategy (active page)
03 profile
etc. etc.
In the active page (strategy) the title needs to be 02…
Johannes Lamers
- 2,022
- 1
- 19
- 34
4
votes
4 answers
Force browser to download latest CSS file
Is there any simple way to automatically add a version number when referencing a CSS file?
Example:
Version could be a timestamp when the style.css was last modified or…
Magnus
- 171
- 1
- 7