Link for new template for register - shopify

I am trying to create a second registration form (with slightly different fields). I have copied the template of customer/register.liquid (say customer/register.xyx.liquid). What will be the URL to access this new page? i.e. what should be the link instead of the original link /account/register?

Any new template can be accessed front end by using "?view=" in the webpage URL
For your case try /account/register?view=xyz

Related

Classic Asp - Get html content after generated page/page load

I´m using AspPDF together with Classic ASP to create PDF files and I have a page that is build dinamically based on POST requests.
After that, I need to get this HTML that has been dinamically created and insert all of it inside a variable, so then I can send it to AspPDF method at the end of the page.
(I know AspPDF has a method that converts page based on URL, it does not work for me in my specific case)
Because I have several if statements and loops, I have no idea how to store all current HTML generated in a variable.
Any ideas on that?
Thanks
i am not familiar with AspPDF, but my question is:
can you store everything in some variable and once html completly generated then send content by using
Response.Write VarHTML
Because I have several if statements and loops, I have no idea how to store all current HTML generated in a variable.
like this:
VarHTML = VarHTML & "your html code"
VarHTML -- just variable you create

CRM 2013 WebResource IFrame

I have an HTML web resource in an opportunity that produces a css tab control containing all children opportunity to the current record.
I do this through Ajax and javascript and everything works fine, a new tab is made for each child and it shows an opportunity record inside; the only issue is that it will only show the current record inside of this tab - effectively creating an endless loop.
If I paste the URL from the IFrame into the browser it shows the proper record using the right form that I specify(one that doesn't contain another web resource).
Does anyone know why it wouldn't show the same form as it navigates to? If I try google.com it works, just not for this URL:
http://server/CRM/main.aspx?etn=opportunity&pagetype=entityrecord&navbar=off&id=%7B"+val.OpportunityId+"%7D&extraqs=formid%3DC1EC704C-D29B-4786-806F-195D0A80CF07%0D%0A#255409204
Try constructing the URL with this format:
http://server/CRM/main.aspx?etc=3&extraqs=formid%3dC1EC704C-D29B-4786-806F-195D‌​0A80CF07%7d&id=%7b<EnterOppIdHere>%7d&pagetype=entityrecord
Use the Entity Type Code (etc parameter) instead of the Name (etn) and note that everything after that should be part of the extraqs parameter.

Transfer Sharepoint WebPart data to application page

I have created a visual web part that has one entry form, it contains 10 textboxes and a submit button to insert the data.
Now on click of submit button it redirects to another page(page is application page deployed under layout folder of same site. this page is added in same web part solution by adding new item).
I'm able to redirect to application page using SPUtility.Redirect(). but not sure about best approach to pass the data from web part page to application.
I think that query string is not a good solution. Also enabling session is manual work on each environment(as i experienced that in one server when i created session variable i got an error to enable it, but in other dev server i was able to do that).
I have done this using a public class in user control .cs page and defined all fields as static variables in side the class. now I'm able to access them in application page added inside layout folder of same project solution. Not sure if it is right approach , but it works

Logo for each site in site collection

I want to load different logo in each site in same site collection. For now my logo tag exists in master page. Any idea ?
You can do 2 things.
You can replace the SharePoint:SiteLogoImage with your own.
You can use Master.FindControl to find that control by doing the following
var siteLogo = (SiteLogoImage)Page.Master.FindControl("ID of control goes here");
siteLogo.LogoImageUrl = // Insert logo img url here
If you are using ASP Dot NET then we can have more than one master page, defining logo for each one. You can call you master page at run time according to your site opened!
Please would you specify Are you using ASP DOT NET or defining master page in another lange

Chrome extensions: How can I pass form variables to a url in a newly created tab?

I'm working on my first chrome extension, and using an image-based context menu item to capture the URL of a given image, and want to then display that image at a specific URL in a new tab. So, I need to pass the URL of the image clicked on (using srcUrl) to a specific script that can then render it on that page. Is it possible to perform an HMLHttpRequest from within a chrome.tabs.create() call, or must this be done some other way?
Thanks for any help.
You would need to create an HTML page containing that script and put it into your extension folder. Then you can just pass image url to it as GET parameter:
chrome.tabs.create({url: "local.html?img_url=...");
If url parameter is not enough, you would be also able to communicate with that page using chrome.tabs.sendRequest():
chrome.tabs.create({url: "local.html", function(tab){
chrome.tabs.sendRequest(tab.id, {img_url: "local.html?img_url=...");
));
With the request listener in that page:
chrome.extension.onRequest.addListener(function(request) {
console.log(request.img_url);
});