- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎24-03-2016 11:33 AM
Hi Community,
We generate website frequenlty. We actually have few libraries, for each we generate a website separately (in separate folders)
Everytime we generate the website, We are generating all the files related to that library.
Somewhere in community I read about, generating website only for modified objects. Can anybody give me example (or instructions to acheive this) of generating delta website.
Thanks in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎21-04-2016 07:58 AM
Hi Jerome,
I want to try with some thing else for delta generation.
We have descriptors and corresponding queries in website template. While generating website (before actual generation starts), I want to get all these queries (that are under descriptors) , and add a where condition to it dynmically (this date I'll give as input to the generation script) with some string replace fucniton. like replacing @mydate with yetrdays date in query.
For example if we have below query in descriptor:
Select [Business Process] where [Modified Date] >= @mydate
I'll replace @mydate string with yesterday's date
The code will be as follows
QueryCollection = WebsiteTemplateObject.getCollection("Query Objects")
For query in QueryCollection
querycode = query.getProp("queryCode")
newQueryCode = StringReplace( MyDate, "@limitdate", queryCode )
query.setProp("queryCode", newQueryCode)
Next
Then I start the websote generation. After the script execution I dont commit the transaction, which will revert back my query modifications. Once the generation is done, I'll copy/replace the delta generated files in to previous generation folder.
Also, I have an idea (dont know it is possible or not) to put dynamic date in to @mydate variable thru some erql query.
If it is possible, can you please guide how it can be done.
Thanks and regards,
Venkatesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎29-03-2016 11:35 AM
Hi Jerome,
Thanks for your clear explanation.
I'll analyse more on this and will get back to you for suggestions.
Thanks and regards,
Venkatesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎29-03-2016 09:53 AM
Hello Venkatesh
This a project.
If you want to use repository log to identify recently updated objects, you need to:
- Analyse the log of the period and identify the objects that have been recently updated and that are part of the web site scope
- Compute the scope of a new web site
- Run the new web site
- Get object pages (html files) of objects that have been recently updated
- Patch an existing web site (containing object pages of objects that did not change and index pages for all objects) with new object pages
It is likely that projects have used easier solutions.
I let the MEGA community users share their experiences.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎29-03-2016 07:35 AM
Hello Jerome,
in some post, You've written that, taking repository log and getting all the objects that are recently modified and generating website only for those object is possible.
I need some more instruction to achieve that. Can you guide me ?
Thanks and regards,
Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎24-03-2016 02:04 PM
Hello Colruyt Team
This is not a standard feature with the default static web site template 'Enterprise Portal'
The scope of documented objects select all objects for certain MetaClass
Ex:
select all applications
select all organizational process...
It does not consider recent changes
Ex:
objets updated in the last 2 weeks or after January 1rst 2016
