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
<!-- Change 1 --> | |
<encodenamereplacements> | |
<replace mode="on" find="&" replaceWith=",-a-," /> | |
<replace mode="on" find="?" replaceWith=",-q-," /> | |
<replace mode="on" find="/" replaceWith=",-s-," /> | |
<replace mode="on" find="*" replaceWith=",-w-," /> | |
<replace mode="on" find="." replaceWith=",-d-," /> | |
<replace mode="on" find=":" replaceWith=",-c-," /> | |
<replace mode="on" find=" " replaceWith="-" /> | |
</encodenamereplacements> |
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
//returns all instances of the selector within find(); | |
$("#vacations").find(".america"); | |
//returns only the first of all similar DOM items | |
$("#vacations li").first(); | |
//returns only the last of all similar DOM items | |
$("#vacations li").last(); | |
//returns the 'next' similar DOM item to the one you previsouly specified. |
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
<!-- HTML EDITOR DEFAULT PROFILE | |
Path to the default html editor profile. | |
Default value: /sitecore/system/Settings/Html Editor Profiles/Rich Text Default | |
--> | |
<setting name="HtmlEditor.DefaultProfile" value="/sitecore/system/Settings/Html Editor Profiles/Rich Text Full"/> |
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
//lets you add something in the DOM directly after the DOM element you target. | |
.append() | |
//lets you add something in the DOM directly before the DOM element you target. | |
.prepend() | |
.after() | |
//lets you place something in the DOM directly above, at the same level the item you target. | |
.before() |
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
/*allows you to filter SOME of a given element with simlar components | |
based upon what those some have that others don't. | |
For example: if you had | |
<ul> | |
<li class="vacation onsale"></li> | |
<li class="vacation onsale"></li> | |
<li class="vacation"></li> | |
<li class="vacation"></li> |
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
<!-- | |
After the </system.web> closing tag, insert the contents below between the <system.net> tags. | |
--> | |
</system.web> | |
<system.net> | |
<mailSettings xdt:Transform="Replace"> | |
<smtp from="test@test.com.au" deliveryMethod="SpecifiedPickupDirectory"> | |
<network host="localhost" /> | |
<specifiedPickupDirectory pickupDirectoryLocation="d:\smtp\" /> | |
</smtp> |
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
/* | |
Use the encodeURIComponent to allow you to switch out all characters to their encoded | |
values. You can then attempt to inject into forms using the encoded values. | |
Example Below: | |
*/ | |
//in Web Tools (F12 in chrome), in the console, enter something like this: | |
encodeURIComponent('<script>alert("please soemthing")</script>') | |
//will return value like this which you can copy/paste into input fields on site to test |
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
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="KnowledgeBaseListing.ascx.cs" Inherits="DigiconNew.layouts.Sublayouts.Controls.KnowledgeBaseListing" %> | |
<% foreach (var kbcategory in KBCategories) | |
{ | |
%> | |
<div class="article"> | |
<div class="article-title"> | |
<h3> | |
<a href='<%= GetURL(kbcategory) %>'><%= kbcategory["Article Title"]%></a> | |
</h3> |
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
Database db = new Database("web"); | |
if (ID.IsID(id)) | |
{ | |
ID itemID = new ID(id); | |
//clear data cache | |
db.Caches.DataCache.RemoveItemInformation(itemID); | |
//clear item cache | |
db.Caches.ItemCache.RemoveItem(itemID); |
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
--it uses It uses the <user>, <login> in that order | |
EXEC sp_change_users_login 'Update_One', '<user>' , '<login>' |
OlderNewer