This content has been marked as final. Show 7 replies
For pagelet editors where you want to return to the homepage, use one of the following methods:
This will open the homepage in a frame just like you described UNLESS you set the editor page's CREF template to the Homepage Designer template. This is how delivered pagelets work.
%Response.Redirect(GenerateHomepagePortalURL(%Portal, %Node, %HPTabName));
Can you please provide an example to use iscript in a page to call homepage.
I haven't used it till date so new in this topic.
In fact there is an entire chapter in PeopleBooks dedicated to iScripts, which provides in detail with examples how to go about with iScripts
PeopleBooks > PeopleTools 8.52: PeopleCode API Reference > Internet Script Classes (iScript)
I know Jim is a big fan of iScripts and has written a lot of blogs on iScripts. It has no use of me writing in a couple of sentences what iScripts are when Jim has already done this in detail.
Jim is good at most of the things in peoplebooks.
I have done it after reading peoplebooks but unable to close the link in same window. A new window is opening everytime :(
Hope I will get it done tomorrow and buddy thanks for the help.
Thank you for the compliment. If I understand correctly, now instead of seeing double headers, and the homepage opening inside the iframe/frameset, it is opening in a new window. Is this correct? Can you share your iScript or HTML? Perhaps we will be able to see what is causing it to open in a new window instead of replacing the existing window.
I just had the same problem which I was able to solve today after much Googling. First, I created an HTML object as follows:
Then, in an iScript, I did the following:
&targetUrl = GenerateHomepagePortalURL(%Portal, %Node, &homePage); //&homePage contains the name of the homepage
This allows you to break out of the duplicate frame that you would see if you were using %Response.RedirectUrl(&targetUrl);
I hope this helps.
That is exactly what I was recommending. Thank you for posting the full solution.