Jordan Lev
  • Member for 6 years, 5 months
  • Last seen more than 4 years ago
Is Craft Suitable for Large Public Body website
7 votes

EDIT: When I wrote this answer (in April 2017), I didn't realize this question was asked 2 years ago (I saw it at the top of the list of new questions on the stackexchange site and assumed it was just ...

View answer
Private plugin distribution in Craft CMS 3
Accepted answer
6 votes

I haven't done this with Craft, but with another Laravel project I was able to add a package from a private repo as follows: 1) In composer.json, after the require array, add a new repositories array:...

View answer
Twig replace regex
Accepted answer
4 votes

Try doubling-up your backslashes: https://craftcms.com/docs/templating/filters#replace

View answer
How can I add a dynamic "active" CSS class to the navigation on any given page?
4 votes

I think comparing the entry id's is the best way to go for the current page. But for determining if a certain page is a parent of the current page, I combined answers from @tim-kelty and @carlcs to ...

View answer
Plugin for entries table field
3 votes

This question is from a long time ago, but nowadays there's a great 3rd-party plugin that lets you do this: https://github.com/engram-design/SuperTable

View answer
Sprout Import: Place entries under a parent in structure section?
2 votes

Turns out you can set the "parentId" field under the "attributes" list in the import JSON data to set a structure parent (to the entry id of the parent entry). This probably means you need to chunk ...

View answer
Structure Entry Item's Parent
2 votes

For very simple use cases, I've created a plugin that adds some validation to enforce this type of hierarchy: https://github.com/jordanlev/craft-EnforceDualHierarchy If you'd like to see better / ...

View answer
How do you handle complex navigation in Craft?
2 votes

I've posted a recipe for dynamically-generated nav menus which encompasses a lot of logic to determine the active page/section/etc: Fully Dynamic Hierarchical Nav Menu Template

View answer
Display all the data in one entry
Accepted answer
1 votes

Use craft.entries: {% for job in craft.entries.section('jobs') %} <div> Title: {{ job.title }}<br> Company: {{ job.company }}<br> Email: <a href="mailto:{{ job....

View answer
How to overrule Craft error messages with custom setError()?
1 votes

I recently asked P&T about a similar issue, although it was for the onBeforeSaveEntry event (not onBeforeDeleteEntry) -- it turns out that you need to set the error on a specific field, not the ...

View answer
How would I list all entries regardless of section or structure?
1 votes

In addition to the $49 plugin mentioned in other answers, there's also a more basic one that is free: https://github.com/xodigital/SimpleSitemap

View answer
Is it possible to limit how many times and entry type can be used?
1 votes

This is such a good question! (I'm new to Craft, and am very surprised this isn't possible out-of-the-box.) I figured out a hacky but not-too-crazy way to hide entry types from the select menu (as ...

View answer
Craft WYSIWYG editor and CKEditor
0 votes

This is an old question, but in case it helps anyone else there's a plugin that alleviates some of the limitations of Redactor's absurdly simplistic table button: http://plugins.supercooldesign.co.uk/...

View answer