Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Footer in Events Portal Home Page / Event Page

Posted on by 2,946

I am trying to modify the footer with 2 additional links in Events Portal.

I modified the "Footer Content Snippet" as below.

pastedimage1592369401600v1.png

the footer in home page  / event page is not impacted. It still show default as below ( i dont know where is this footer text coming from. It shows as 2018)

pastedimage1592369540327v2.png

But the footer text in sing in page / profile page is impacted as configured in content snippet

pastedimage1592369669320v3.png

How to deal with this. Where is the default footer in home page coming from and how can i configure to my requirement.

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Footer in Events Portal Home Page / Event Page

    Hi ba365guy,

    You could run the event website locally by following tutorials below:

    Part 1: Install Node.js and Angular, then navigate into event website directory and run a command(npm install) to download necessary packages to run the website.

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/event-management-web-application#prerequisites

    The installation of Node.js and Angular is easy, here is process to navigate to the directory and run command.

    1. Open Node.js command prompt window.

    pastedimage1592805756031v1.png

    2. I extracted my event to E:\Dev\Angular\Project\Event folder, so I run commands in the screenshot to navigate to the folder and install necessary packages.

    6283.JPG

    Part 2: Register a web application in Dynamics 365 for Marketing to get token.

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/register-web-application-events-api

    Part 3: Configure environment.ts file(In src\environments folder, this part is only mentioned in self-hosted event website page of doc.) 

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/self-hosted#web-application-environment-configuration

    Part 4: Start the local development server:

    Run "ng serve" command when we navigated to event website folder with commands,

    pastedimage1592807049304v1.png

    you may need to do more steps because your event is portal-hosted, please follow tutorial below for more details:

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/portal-hosted

    Part 5: Deployment

    Run the script in Event\Scripts folder, it will help you to connect to Dynamics 365 for Marketing instance and complete deployment.

    pastedimage1592806835158v2.png

    Regards,

    Clofly

  • ba365guy Profile Picture
    ba365guy 2,946 on at
    RE: Footer in Events Portal Home Page / Event Page

    I got it now.

    docs.microsoft.com/.../portal-hosted

    Thanks.

  • ba365guy Profile Picture
    ba365guy 2,946 on at
    RE: Footer in Events Portal Home Page / Event Page

    Hi cloflyMao

    Thanks for you continued help and support I have not tried the code yet. As we are going to make changes to code / add new code for the portal, it would take sometime for me to implement the steps you suggested I need to get developer. 

    I have seen the link you gave for source code download. Can you help me with a link / instructions for deploying the code once changes are made. I tried searching in Microsoft Docs. unable to find it for now. Will keep searching and browsing through.

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Footer in Events Portal Home Page / Event Page

    Hi ba365guy,

    Could the code work for you?

    Regards,

    Clofly

    Please kindly mark as verified to close the thread if you had found any answer helped, it would be really appreciated.

  • Suggested answer
    ShaileshJain Profile Picture
    ShaileshJain on at
    RE: Footer in Events Portal Home Page / Event Page

    Clofly provided the mechanics to customize footer based off sample website. that should address your original query.

    We'll review the sample website for hardcoding on the year, but we don't consider this glitch as business impacting as we provide all the hooks to customize.

  • cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Footer in Events Portal Home Page / Event Page

    Hi ba365guy,

    From sample event website source code, it seems that currently the year value is hard coded.

    Of course we can make the value dynamically with customization below:

    1. Add a copy of original footer element, remove its appTranslate directive. (In footer.component.html)

    pastedimage1592383176390v1.png

    Modified text will be below, the year variable is a dynamic value.

    <p>Copyright © {{year}} All rights reserved.</p>

    2. Add typescript code to get current year, then assign current year to {{year}} variable. (In footer.component.ts, same folder as html file)

    0358.JPG

    3. Result

    7711.JPG

    However, due to I haven't production type Dynamics marketing application, so I'm not sure whether those two files could be found in Event Portal.

    You could try to find them in your portal, and send a feedback to Ideas forum.

    Regards,

    Clofly

  • ba365guy Profile Picture
    ba365guy 2,946 on at
    RE: Footer in Events Portal Home Page / Event Page

    Is it not supposed to be a dynamic value. It seems the year value is hard coded in some file.

    Do we have to update this every year ?

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Footer in Events Portal Home Page / Event Page

    Hi ba365guy,

    Are there two portals in your instance?(One is Customer Portal/Customer Service Portal, the other is Event Portal)

    If so, the event portal is built with Angular, its source HTML would be different from general portal.

    Due to I have only trial version of marketing application thus I couldn't help you to find the footer element.(The trial version couldn't be integrated with Portal.)

    However, I have changed the footer in sample event website successfully, and you could try to change it with steps below:

    1. Download sample event website:

    https://docs.microsoft.com/en-us/dynamics365/marketing/developer/event-management-web-application#download-sample-event-website

    2. Run sample event website in your local machine by following documentation tutorial.

    3. In footer.component.html, we can find that the footer is associated with a directive: [appTranslate]="'Copyright'".

    (It doesn't work if I change text inside p tag directly) 

    3124.PNG

    4. So we change the value of Copyright in "1033.json" file under Localization folder.(If your event website is English)

    pastedimage1592374965591v1.png

    5. Result:

    1050.PNG

    6. In deployment script, we can find that 1033.json file will be uploaded and synced to corresponding web file in Portal.

    8867.JPG

    So if we modify event website locally, then portal event website shall be updated from our modification if we run the deployment script.

    (You could also try to change 1033.json web file in Portal directly to check whether it could work.)

    Regards,

    Clofly

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans