Hybris - exporting a content page via in ImpEx script - export

Does anybody know if it is possible to export hybris content pages (created in CMS cockpit) using an ImpEx script? I've found some documentation (although not official) online here that describes creating a new page using something like the following:
INSERT_UPDATE
ContentPage;$contentCV[unique=true];uid[unique=true];name;masterTemplate(uid,$cont
entCV);label;defaultPage[default='true'];approvalStatus(code)[default='approved'];
homepage[default='false'];previewImage(code,
$contentCV)[default='ContentPageModel__function_preview']
;;about;About Us;ContentPage2Template;/about
I was wondering if there is a way to export a page using something similar? I'm very new to hybris so any help or guidance would be greatly appreciated. Thanks in advance.

Could you be more specific as to what are you trying to achieve.
As far as your question goes
if it is possible to export hybris content pages (created in CMS
cockpit) using an ImpEx script?
answer is yes it is possible.Impex script that you have written is also alright.
So in hybris your content pages (created from cms cockpit) are of type "ContentPage".
And this type contains some optional and mandatory attributes like uid,template etc. that define the look and content of the page.
Impex are a way to import(export script are there also) data into the type in this case "ContentPage".
For more you can ckeckout HybrisHub

Related

Salesforce: get link from account connected to projects

I have an object "Project" that has a lookup field "Account__c". In the Salesforce experience builder, I want to have a link in the Project Detail page to the connected Account.
Something like "Go back to your account".
But I tried various links like "https://our webite/s/account/{!recordId.Account__c}"
I know that this: "https://* our website"/s/project/{!recordId}" works so I feel that there is a solution to this. I hope someone can help me.
Thanks in advance
I assume you're using standard detail page components and are looking to build a formula field to expose the linked Account URL?
/s/account/{!Account__r.Id} should do the trick as a relative URL.

Salesforce, Lightning Web Components - change code online

Is it possible to change code (html, js, css) in Lightning Web Components online in Salesforce?
Something like this
I don't know to run it according this manual.
Because I would like to check code imported from VSCode. It seems to me that the code/component is not updated.
there is a variety of chrome extensions available to view and edit the LWC code within the salesforce. I am using the following:
To view the code only you can make use of the Salesforce Assitant extension:
https://chrome.google.com/webstore/detail/salesforce-assistant/acpngnlieelljdlljmenkagbonaicccj
.
.
If you want to edit the code as well, then you can consider salesforce advance code searcher:
https://chrome.google.com/webstore/detail/salesforce-advanced-code/lnkgcmpjkkkeffambkllliefdpjdklmi
Currently, you can't "import code online".
To check if your code been deployed correctly you can use chrome devtools and see if your files been deployed and used.
There is a cache machanizam also which you can disable -will reduce performance
https://www.salesforcecodecrack.com/2019/09/disable-browser-cache-during-lightning.html
For more info regarding debugging LWC check out this article:
https://developer.salesforce.com/blogs/2019/02/debug-your-lightning-web-components.html

Google Apps Script : how to resize an image present on Google Drive?

I want to resize some images present on Google Drive thanks to a Google script. How can I do that ?
Thanks !
Unfortunately, there is no native method to do this using Apps Script.
But luckily, you can do this fairly easily thanks to this external library. As explained in the provided link, once you import it, you can access its methods with ImgApp.
One of those methods, doResize(), is what you're looking for. But please be aware of the limitations associated with this method.
I hope this is of any help.

How to scrape dynamic website?

I am a novice website scraper, trying to get a usable list of all past events on Hackathon.io. Any advice would be greatly appreciated. I have been using the chrome scraper extension but it comes up empty/blank for this website. Thanks
http://www.hackathon.io/events
The more button can be enumerated like so: http://www.hackathon.io/events?location=&page=61&term=&time=past&utf8=%E2%9C%93 ; you would just iterate through those and grab the links using the appropriate xpaths.

What is the way to embed Google Spreadsheet into GWT page?

Google AdWords implements embedding Spreadsheet into one of it's page (see Campaings/ Keywords/ Edit in spreadsheet).
I'd like to make something like this in my GWT application to allow users to edit theirs data using embedded spreadsheet.
I can't find any examples on this. Does anyone know how to do it?
The way Google does it is by using a Google Spreadsheets Gadget. The "Examples of Use" link from that page should be enough to get you started. There are many examples, as well as a "Get Your Own Copy" option.
It boils down to iframe element of the following form:
<iframe src="http://spreadsheet/url"></iframe>
Most of the "magic" takes place at the Url specified.

Resources