cancel
Showing results for 
Search instead for 
Did you mean: 

VARIABLE SPACE

sgomes
Champ in-the-making
Champ in-the-making
Hi!

i have a little problem with my freemarker template….

i use the expression…. <#list space.children as child>

it works sometimes…when i click another link…and back again the space doesn´t work….but if i refresh manually the page several times….it works again…

is there way to resolve this problem?

Thanks!
5 REPLIES 5

kevinr
Star Contributor
Star Contributor
How and where are you calling the template from? The 'space' context variable is only available if you have a "current space" context in the web-client or if you specify one on the URL to the templatecontentservlet.

Thanks,

Kevin

sgomes
Champ in-the-making
Champ in-the-making
i create a template…and aplly to a space custom view…

but i have the problem that i report..  i have 2 spaces with 2 diferents templates….when i click the first, the content is show correctly…. but when i click the second…. the content still the same as previous space…

if i refresh several times the page, the content is show correctly….


thanks

kevinr
Star Contributor
Star Contributor
Ah that is a different problem, it has been fixed in Enterprise and in HEAD ready for the next release:
http://issues.alfresco.com/browse/AWC-1147

The code can be pulled from our public SVN and patched into your build or a nightly build of Alfresco from our website will also have the fix.

Thanks,

Kevin

sgomes
Champ in-the-making
Champ in-the-making
i checkout the UITemplate from SVN… but in my project i have a UITemplate.class…. i can't edit the class… Smiley Sad

how i can use this patch corrector?

i create a own package….with a class that i check out from the SVN, and change the file…. faces-config-repo.xml

<component>
      <component-type>org.alfresco.faces.Template</component-type>
      <component-class>org.alfresco.web.ui.repo.component.template.UITemplate</component-class>
   </component>

to my package my class is that correct?

thank for your help

kevinr
Star Contributor
Star Contributor
It will require some effort - you will need to:
download the Alfresco SDK (which contains all the 2.0 source and the ANT projects to build it)
overwrite the existing Template.java class in the SDK with the one you checked out from SVN.
rebuild alfresco using the build scripts.

There will be another community release shortly which you could also take.

Hope this helps,

Kevin