cancel
Showing results for 
Search instead for 
Did you mean: 

Version dependent custom pages

otrebor79
Champ in-the-making
Champ in-the-making
Hi,
with the release of the new Alfresco 4.2.d and its new header my Share custom pages don't work well: they still show the old-style header.

Having to guarantee the retrocomplatibily with the old Alfresco versions (from 4.0.e to 4.2.c), I wonder if there is a way to make my pages FTL templates parametric to Alfresco version.

I found out the alfresco webscript
   alfresco/service/api/server
that returns the informations that I need, but I still haven't found a way to pass them to the pages templates: the webscript behind my pages run AFTES those who are behind the header.

There is a way to do what I would do, possibly without change alfesco's files?


Thank you,
otrebor79
1 REPLY 1

ddraper
World-Class Innovator
World-Class Innovator
Hi,

Presumably this is because you've defined page templates that include the old "header" and "title "regions? If this is the case then it should be possible to dynamically replace those regions with the new "share-header" region. You could do this with a module and write a custom evaluator that checks the server for the version (and only swaps out the regions for version 4.2+). A module evaluator will only run once per page load so shouldn't be too expense.

Regards,
Dave