Jump to content
[MUST READ] Forum Rules ×

How to change SiteBuilder link


Pto

Recommended Posts

Your solution will work, however, here's another solution that will modify the actual array as well as allow you to modify search text etc.

 

<script>
function fr(k, u, d, a) {
	for (var i=0; i < a.length; i++) {
		for (var x=0; x < a[i].items.length; x++) {
			if (a[i].items[x].feature === k) {
				if (d === 'url') a[i].items[x].url = u;
				if (d === 'itemdesc') a[i].items[x].itemdesc = u;
				if (d === 'searchtext') a[i].items[x].searchtext = u;
			}
		}
	}
}

fr('sitereptile', 'https://google.com', 'url', PAGE.appGroups);
fr('sitereptile', 'My Builder', 'itemdesc', PAGE.appGroups);
fr('sitereptile', 'build', 'searchtext', PAGE.appGroups);
</script>

 

This will change the SiteBuilder URL to "https://google.com", the text to "My Builder" and the search text to "build".

 

I did a quick test and it worked fine.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...