Public
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Occasional Advisor

How to generate URL's in Custom Content

Hi everyone,

I'm pretty sure my question is quite simple 🙂  I have some custom content fields that I am creating in my stage environment. All the links that I am making work in my stage environment of course work because they are hardcoded. But when I move to the production environment, my links won't look like community-stage.company.com anymore, they will be community.company.com. How can I autogenerate the community.company.com part without having to update my links manually. Is there a variable I can use here?

2 Replies 2
Highlighted
Honored Contributor

@Nconforti 

Are you using this in "custom content" or "custom component"?

Since admin is different for both stage and production, so as is "custom content". on which you can that manually into it.

you can also use relative url's in link like the one below with example.

  <a href="/t5/Khoros-Community-Discussions/How-to-generate-URL-s-in-Custom-Content/td-p/581534">How to generate URL's in Custom Content</a>

 

.......
Do you know we work with Kudos and Accepted Solution.
Highlighted

Yea, the relative URL was what I was looking for. Thanks!

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Lithium customer? For direct assistance from our Support team, please visit the Support Forum.