This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="mh" | |
# Uncomment the following line to use case-sensitive completion. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Template naming convention: | |
* | |
* field colelction field -> field_collection_field_name | |
* field example -> field_name | |
* | |
* field-collection-item--field-collection-field-name.tpl.php | |
* field--field__name--field_collection_field_name.tpl.php | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# for Bolt.cm | |
Situation: A chapter contains an undefined amount of items, either with typefield "A" or with typefield "B" | |
(two "levels"). Print these items out in a hierarchical menu with nested ul's (2 levels deep as per "A" and "B" | |
If you need more levels, add -for instance- "C" and add extra checks in the code | |
Goal: | |
Go through the list of items in any chapter and print out hierarchical nested UL's based on these | |
two "levels": the types A and B. | |
#} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: Bolt CMS - Edit link in records | |
{# Edit link old style, but still works: #} | |
{% if app.users.isAllowed('contenttype:%contenttypeslug%:edit:%id%'|replace({'contenttypeslug': record.contenttype.slug, '%id%': record.id})) %} | |
<a href="{{ url('editcontent', {contenttypeslug: record.contenttype.slug, id: record.id}) }}">Edit</a> | |
{% endif %} | |
{# Edit link new way #} | |
{% if record.editlink() %} | |
<span class="edit-link"><a href="{{ record.editlink() }}"><strong>Edit</strong></a></span> - |