In the CMS, from within the current asset if you have a link to another asset and the other asset has not been published yet. The current asset will have the link disabled when published. In some cases even content will not be displayed as well. To prevent this from happening you can use this trick:
Now the href will be enabled regardless of whether the asset being reffered to has been published or not.
asset.setPram "filter_status", "*"
href = asset.getLink("path or id")
Now the href will be enabled regardless of whether the asset being reffered to has been published or not.
Comments