30: LWC Navigation In Community Pages (Hindi) || Salesforce Experience Cloud || Salesforce LWC

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 29

  • @bakshirocks
    @bakshirocks 2 роки тому +2

    Why did you not use pagereference to get the state variable from the URL? That is the officially supported method right.? Instead of using the Window.Location..

    • @SalesforceNoob
      @SalesforceNoob  2 роки тому +1

      Correct u can also use currentPageRenfrence using below code to get caseRecordId from url👇👇👇👇👇
      import { CurrentPageReference } from 'lightning/navigation';
      currentPageReference = null;
      @wire(CurrentPageReference)
      getStateParameters(currentPageReference) {
      if (currentPageReference) {
      this.caseId = currentPageReference.state.caseRecordId;
      }
      }

  • @zakeermohammed9817
    @zakeermohammed9817 9 місяців тому

    Thanks for your detail video. I have a requirement, after logging need to redirect to a custom page of sites. Already implemented using navigation service but facing the issue instead of opening in a current window, its opening a new window. Could you please suggest?

  • @anshumishra07
    @anshumishra07 Рік тому

    I am new to experience cloud and got a requirement to navigate to another page when community users click on a display card like yours. I was wondering if there is an out of the box component or not and landed up here.
    Although, I am not a developer, I really liked the way you explained everything and also trying to help others by sharing codes in comments as well. Thank you so much.

  • @amlanpatel6210
    @amlanpatel6210 2 роки тому +1

    Exactly what I was needing. You put me out of my problem. Great video

  • @swarnikaswarnkar270
    @swarnikaswarnkar270 8 місяців тому

    @Salesforce Noob Can you please guide how we can navigate from one page to another in LWR sites? I am facing error - lwr_bootstrap_locker: Routing error: A URL cannot be created to navigate to route

  • @hritikthakur4974
    @hritikthakur4974 11 місяців тому +1

    Can we redirect any url when click on the community tab in navigation menu

    • @SalesforceNoob
      @SalesforceNoob  11 місяців тому

      Yes you can learn that from this video - ua-cam.com/video/WT_LLDoxjAU/v-deo.htmlsi=2qNrlZP9flVxZdJH

  • @tinolbhoyar4646
    @tinolbhoyar4646 Рік тому

    bhai mujhe state me recordID pass karni hain dusre community page pe aur use variable me store karna hain

  • @shivanik6497
    @shivanik6497 8 місяців тому +1

    Hello,
    How we can append recordId dynamically to the Site URL

    • @SalesforceNoob
      @SalesforceNoob  8 місяців тому

      that's what i explained in this video

  • @Gauravkumar-ue3cx
    @Gauravkumar-ue3cx 9 місяців тому +1

    Please create a complete playlist on experience cloud creating public website.

    • @SalesforceNoob
      @SalesforceNoob  9 місяців тому

      Already created playlist on Experience cloud which will consist videos about making public sites - ua-cam.com/play/PLVILwsgb1PonFOtSYoLCrxQfJNTJPBxY0.html&si=xeFVII-DsI1esYyM

  • @kennethkim1221
    @kennethkim1221 2 роки тому

    Hi! I followed your video even though I do not speak Hindi but I am not able to open a community page that I created :( When I click my LWC button, it shows a pop up
    "Page doesn't exist. Enter a valid URL and try again". My button component has the same NavigationMixin.Navigate as the one in your video to open community page. Can you help me with my error?

    • @SalesforceNoob
      @SalesforceNoob  2 роки тому

      Hi,
      You have to drop that lwc button on Salesforce community page and then give the reference of another page where u want to redirect

  • @akash4jadhav
    @akash4jadhav 2 роки тому +4

    Banao Bhai detailed videos playlist

  • @andalumandula878
    @andalumandula878 2 роки тому

    I want to redirect to home page using dynamic url. I have replaced name attribute with 'home' api name. Seems not working. Please guide if i need to use any state properties

    • @SalesforceNoob
      @SalesforceNoob  2 роки тому

      Hi,
      if u want to navigate on home page in experience cloud,then u can use the below code :-
      JS code:-
      import { LightningElement,wire } from 'lwc';
      import { NavigationMixin } from 'lightning/navigation';
      export default class ClassName extends NavigationMixin(LightningElement) {
      navigationToHomePage(){
      // Navigate to the About page
      this[NavigationMixin.Navigate]({
      type: 'comm__namedPage',
      attributes: {
      name: 'Home'
      }
      });
      }
      }

  • @Hindi_motivational_creator_EH
    @Hindi_motivational_creator_EH 2 роки тому +1

    Very informative 🙏🙏👍

  • @ahmadshadab6829
    @ahmadshadab6829 Рік тому

    Please make videos on experience cloud too

  • @Gaurav-x3y
    @Gaurav-x3y Рік тому

    yes, i want to learn Experience clould how to create a website

  • @ankursharma192
    @ankursharma192 Рік тому

    can you provide GitHub repository

  • @gaganpathak1897
    @gaganpathak1897 2 роки тому

    Please page pagination video in lwc and also with and without pdf pagination in that

  • @skmukleshali7683
    @skmukleshali7683 2 роки тому

    Bro I am watting next video please upload or any update

    • @SalesforceNoob
      @SalesforceNoob  2 роки тому +2

      It will be uploaded soon on creating, updating and deleting records in salesforce with and without calling apex from lwc🤘

  • @suprithn6593
    @suprithn6593 Рік тому +1

    Please create a complete playlist on experience cloud creating public website