Skip to content

Instantly share code, notes, and snippets.

@hidixit
hidixit / change-to-secure-url
Created January 10, 2017 13:23
Change-to-Secure-url
<script>
{% if {{globals.user.isLoggedIn}} == "true" %}
window.location = "https://expattaxonline.worldsecuresystems.com/my-acc-detail1";
{% endif %}
</script>
@hidixit
hidixit / customTextCatalog.txt
Created January 3, 2017 19:16
Show custom text when Catalog has no products
{% if {{pagination.totalItemsCount}} == 0 %}
<p><strong>We are currently arranging products in this Category</strong></p>
{% endif %}
@hidixit
hidixit / tag_blogtaglist.txt
Last active December 30, 2016 09:01
Sort-tag_blogtaglist
<h4>Tags</h4> {tag_blogtaglist, collection="myData" template=""}
{% assign myVar = myData.items | sort: 'name' %}
{% for item in myVar %}
<a href="/blog-computer-related-articles/tag/{{item.name}}">{{item.name}}({{item.count}})</a>
{% endfor %}
/*Note: You will neeed to replace the "blog-computer-related-articles" with your Blog's Url i.e rcks-talk */
@hidixit
hidixit / Custom-String-based-on-Webform-ID
Last active November 23, 2016 13:35
System-Page-Webform-Custom-Message
{% if {{globals.get.WebFormID}} == "613500" %}
<p><strong> "You are getting this message because Webform ID is 613500" </strong></p>
{% else %}
<p><strong> "This message is for Other forms" </strong></p>
{% endif %}
@hidixit
hidixit / Replace_Reply_With _Custom_text.txt
Created November 18, 2016 14:08
Change_Reply_Text_in_Forum_Individual Post Layout
{% capture myVar %} {tag_replypostlink} {% endcapture %} {{myVar | replace: 'Reply' , 'My Custom Text for Reply'}}
@hidixit
hidixit / Webapp_Rendering_item_ReleaseDate.txt
Last active November 11, 2016 22:46
Sort+CheckYear+Webapp+Render
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<link href="MYSTYLE.css" rel="stylesheet" type="text/css">
</head>
<body>
{module_webapps id="37467" filter="all" collection="myData" template=""}
@hidixit
hidixit / key-value-pair_Webapp.txt
Created November 10, 2016 15:42
key-value-pair-example-weabpps
<!DOCTYPE HTML>
<html>
<head>
<title>key-value-webapp-pair</title>
</head>
<body>
<h3>Example for key-value-webapp-pair </h3>
@hidixit
hidixit / globals_redirect.txt
Created November 10, 2016 11:23
Redirect using Liquid based on globals
<!DOCTYPE HTML>
<html>
<head>
<title>redirect-using-liquid-js</title>
</head>
<body>
<h3>Redirect using Liquid-Js</h3>
@hidixit
hidixit / Login-Logout-StatusforMenu.txt
Created November 9, 2016 13:58
Menu_Login_rendering
{% if {{globals.user.isLoggedIn}} == "true" %}
<div>{module_menu menuId="14623"}</div>
{% else %}
<div>{module_menu menuId="2127525"}</div>
{% endif %}
@hidixit
hidixit / Module_news_Pagination.txt
Last active March 21, 2018 14:10
module_data for Resources= News
<!DOCTYPE HTML>
<html>
<head>
<title>news-perpage-bctest</title>
<meta name="robots" content="noindex" />
</head>
<body>
<h3>Showing items as per News Module</h3>