Bazilisk
-
Posts
75 -
Joined
-
Last visited
Reputation Activity
-
Bazilisk reacted to Ryan Ashbrook in Error in your SQL syntax
Try using the like() method instead. Also, you do not need to pass your query to query() - simply convert $select to an array using the iterator_to_array() function.
$select = \IPS\Db::i()->select( '*', 'news_artcms_news', array( \IPS\Db::i()->like( 'categorynum', 'main', TRUE, TRUE ) ), 'news_artcms_news.num DESC', array( 0, 12 ) ); $results = iterator_to_array($select);
-
Bazilisk reacted to Daniel F in How to send text to second column in template?
What do you mean with the second column?
If you mean the sidebar, following code should accomplish this:
\IPS\Output::i()->sidebar['contextual'] .= \IPS\Theme::i()->getTemplate( 'app1', 'module' )->sidebartemplate( $yourVariables );
-
Bazilisk reacted to Daniel F in How to send text to template with html tags
{text|raw} won't escape the text. But please be very careful 😉 NEVER do this with usergenerated content