25
Views
3
Comments
Solved
can't able use site properties in default applicationTitle block

in my application i created 2 site properties and i am trying to use those in,  default applicationTitle block but its not showing, any reasons ?





2022-07-11 14-05-36
Jeroen Barnhoorn
Solution

It depends a bit on your exact use case, but your best option would probably be to create a server action to retrieve the site property value, indeed.

2022-07-11 14-05-36
Jeroen Barnhoorn

Hi Priya,

Site properties are only available on the server side. It seems like you're trying to use them in some sort of client side logic here, which does not have access to server side information. You'll need to retrieve the data from the server first, before you can use it on the client side.


2024-06-03 11-04-24
Priya Naveen

yes in client side only, based on if condition i need to redirect different urls,     so now since i cant use site properties here 

1)so either i need to hardcode urls

or 

2) i need to create one server action and there i need to get siteproperty value

and as output ?

please suggest

2022-07-11 14-05-36
Jeroen Barnhoorn
Solution

It depends a bit on your exact use case, but your best option would probably be to create a server action to retrieve the site property value, indeed.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.