Skip to main content

Set the color for Micronavigation sections based on portal role?

Comments

5 comments

  • Zendesk API User
    Author: kohlbrecher - 12/13/2017 13:38

    Hi Siva,

    Maybe because of the portal part I'm not able to follow you. Where are you logged in? What do you mean with live page?

    Best regards

    Jan

    0
  • Zendesk API User
    Author: sivaprasad9394 - 12/14/2017 11:07

    Hello Kohlbrecher,

    Thank you for your reply. I should have given the information detailed way.Sorry for that.

    In a company different employees are there like 'Associate','Manager','Human Resource' and for then Roles are available. Like wise only few of the Micro-navigation sections are visible to the Associate based in Role.Other micro-navigation sections are restricted for Associate So that only manager can view it. As shown in the previous image.Like to set the background-color for each migro-navigation sections <a> tag. Color are available from Database.

    Live page is nothing but a web page which the user viewing it.

    Thank you.

    0
  • Zendesk API User
    Author: neumann - 1/11/2018 9:15

    Hi Siva!

    You just need to extract the string from your database and put it into the style attribute of your <a> tag like so

    <a style="background-color: $CMS_VALUE(code to get the colour from your database)$;">

    Is that what you were looking for? Or do you need help with the code extracting the correct colour?

    Regards

    Emre

    0
  • Zendesk API User
    Author: tenter - 1/30/2018 14:19

    Hi Siva,

    was Emre able to help you with his suggestion?

    Regards,

    Hannes

    0
  • Zendesk API User
    Author: sivaprasad9394 - 4/10/2018 11:00

    Time being this issue is on hold .

    Thank you.

    0

Please sign in to leave a comment.