Fluid Styled Content – uploads element with translated file title

write your own uploads.html partial and substitute this

<f:if condition="{file.name}">
	<a href="{file.publicUrl}">
		<span class="ce-uploads-fileName">
			{file.name}
		</span>
	</a>
</f:if>

with this

<f:if condition="{file.title}">
	<f:then>
		<a href="{file.publicUrl}">
			<span class="ce-uploads-fileName">
				{file.title}
			</span>
		</a>
	</f:then>
	<f:else>
		<f:if condition="{file.name}">
			<a href="{file.publicUrl}">
				<span class="ce-uploads-fileName">
					{file.name}
				</span>
			</a>
		</f:if>
	</f:else>
</f:if>

enjoy

Leave a Reply