Hi,
I did an RSS feeds using auto index slot and everything is working fine exept the link to the items. RSS item nead to have absolute URL and when using “$rx.location.generate($sys.assemblyItem)” it generate relative URL. Is there is a way to generate absolute URL it my case ?
Thanks for your help. I understand what your trying to do with that. My problem is that in my sites definition, I don’t have the full location (http://www.hec.ca) because we have multiple sites that publish in different location. So instead, for publishing purpose, I only have “blank”, “/en” or “/es” (our 3 sites). Is there’s a way I can use the Home Page (URL) of the sites definition ? I would then have this instead :
if ($sys.assemblyItem.context > 0) { $siteBase = Home Page (URL);} else {}
Forget my previous response. I changed our sites configuration to have the full URL under the site addresses and I’m now using a variable for my publishing issue (/en or /es before the folder path).
With your code, I’m now able to have the full URL in my RSS feeds.
I get “0-9-305” instead of only “305” and I have this error message
Unexpected exception while assembling one or more items: Problem when evaluating expression "if ($sys.assemblyItem.context > 0) { $siteBase = $rx.location.siteBase($sys.site.id,"false");} else {};" for variable "$siteBase": Could not find method siteBase for object [com.percussion.services.assembly.jexl.PSLocationUtils@1a1099f] and arguments [0-9-305,false]
If I hardcode “305” instead of calling the $sys.site.id fonction, it work fine.
Thanks,