This file contains hidden or 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
// this used to work: | |
function login_temporary_user() | |
{ | |
if( $this->EE->session->userdata['member_id'] == 0) | |
{ | |
$this->EE->session->create_new_session(1, TRUE); | |
$this->EE->session->userdata['group_id'] = 1; | |
} | |
} |
This file contains hidden or 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 entry in blx.entries.findEntries({ section: 'Blog', limit: '100', order: "postdate"}) %} | |
<li><a href="{{ entry.url }}">{{ entry.title }}</a></li> | |
{% endfor %} |
This file contains hidden or 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 | |
// example incoming data | |
$operator['online_profiles'][] = array( | |
'PROFILE_TYPE' => 'facebook', | |
'PROFILE_DATA' => 'http://facebook.com/foo' | |
); | |
// prep for matrix API | |
// field_id and col_id hardcoded |
This file contains hidden or 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
{exp:taxonomy:nav | |
auto_expand="yes" | |
tree_id="1" | |
style="linear" | |
} | |
{if node_level_count == 1}<ul>{/if} | |
<li class="node_{node_id}{if node_active} active{/if}{if node_active_parent} active_parent{/if}"> | |
<a href="{node_url}">{node_title}</a>{children}</li> | |
{if node_level_count == node_level_total_count}</ul>{/if} | |
{/exp:taxonomy:nav} |
This file contains hidden or 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
{exp:taxonomy:breadcrumbs} | |
{if here} | |
{node_title} | |
{if:else} | |
<a href="{node_url}">{node_title}</a> → | |
{/if} | |
{/exp:taxonomy:breadcrumbs} |
This file contains hidden or 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
{exp:taxonomy:get_node tree_id="1" entry_id="{entry_id}"} | |
<p>This node is {this_node_level} levels deep!</p> | |
{/exp:taxonomy:get_node} |
This file contains hidden or 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
{exp:taxonomy:get_node | |
tree_id="1" | |
key="url_title" | |
val="{last_segment}" | |
} | |
<p>This node is {this_node_level} levels deep!</p> | |
{/exp:taxonomy:get_node} |
This file contains hidden or 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
{exp:taxonomy:nav tree_id="1"} | |
<li> <a href="{node_url}">{node_title}</a> {children} </li> | |
{/exp:taxonomy:nav} |
This file contains hidden or 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
{exp:channel:entries channel="some_pages" limit="1"} | |
{exp:taxonomy:set_node | |
tree_id="2" | |
entry_id="{entry_id}" | |
add_globals="yes" | |
} | |
<p>You are here: | |
{exp:taxonomy:breadcrumbs} |
This file contains hidden or 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
{exp:taxonomy:entries parent_entry_id="{entry_id}" dynamic="no"} | |
<h2><a href="{exp:taxonomy:node_url entry_id="{tx:entry_id}"}">{tx:title}</a></h2> | |
<p>{tx:page_introduction}</p> | |
{/exp:taxonomy:entries} |