[opencms-dev] Static export cmslink not working as expected
Jose Ignacio Yarza
jiyarza at opensistemas.com
Wed May 30 08:19:45 CEST 2012
Ok, it is working now. Changing the order of some instructions in our
publishing algorithm did it. Previously we had:
1. Publish html content file
2. Publish linked image resources
3. Publish indexes
Publishing first the image resources linked from within the xml content
somehow solved the problem:
1. Publish linked image resources
2. Publish html content file
3. Publish indexes
Cheers,
Jose
On 05/29/2012 06:30 PM, Jose Ignacio Yarza wrote:
> Strange, the second time any content gets published the cmslink is
> exported with the right value, but not the first time.
>
>
> On 05/29/2012 05:37 PM, Jose Ignacio Yarza wrote:
>> Thank you for the answer Marc.
>>
>>
>> I have tried changing userelativelinks to false, but it does not
>> solve the issue. I am getting this html now, plus all the other
>> content links in the page are broken now too:
>>
>> <img class="detail"
>> src="/opencms/opencms/system/modules/com.defend.internet.portal/elements/press/???
>> Detail ???"/>
>>
>> Putting that back to "true", I have tried showing another image field
>> in the same page that we have in the same content (a field called
>> Thumb which is another weak link to another image resource) and it
>> works well with the original setting, so I am guessing there is
>> something wrong specifically with the "Detail" xml field, but only at
>> export time.
>>
>> However, looking at the control code of the html content from within
>> opencms both fields have the correct value. I have no idea why one of
>> them is getting exported right and the other wrong. Here is the html
>> content control code:
>>
>> <Thumb>
>> <link type="WEAK">
>> <target><![CDATA[/sites/default/INTERNET/resources/img/content/press-thumb.gif]]></target>
>>
>> <uuid>a83dc60c-a65f-11e1-84b5-9d9be7e48705</uuid>
>> </link>
>> </Thumb>
>> <Detail>
>> <link type="WEAK">
>> <target><![CDATA[/sites/default/INTERNET/resources/img/content/1338291323815_tree.jpg]]></target>
>>
>> <uuid>650deee7-a982-11e1-84b5-9d9be7e48705</uuid>
>> </link>
>> </Detail>
>>
>> Here is the html after static export, the Detail src field is incorrect:
>>
>> <img
>> src="../../../../../../../opencms/system/modules/com.defend.internet.portal/elements/press/???
>> Detail ???"/>
>> <img src="../../../resources/img/content/press-thumb.gif"/>
>>
>>
>> It is opencms version 7.5.0
>>
>> Any hint will be very appreciated, thanks.
>>
>> Jose
>>
>> On 05/29/2012 01:53 PM, Marc Johnen wrote:
>>> Hi Jose,
>>>
>>> have a look at the userelativelinks-node in
>>> [...]/WEB-INF/config/opencms-importexport.xml .
>>> My guess is that it is set to true.
>>>
>>> Greetings
>>> Marc
>>>
>>> http://www.johnen.biz/
>>
>>
>
>
--
Jose Ignacio Yarza
649 157 537
Open Sistemas
More information about the opencms-dev
mailing list