Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
retrieving different versions of a file in staging
cheeku
How to retrieve different versions of a file submitted in staging area.
Team site 5.5.2
Find more posts tagged with
Comments
Michael
In the workarea select the file and choose View -> History
Click the Revert button on the version you wish to revert to.
Cheers
Michael
cheeku
No not from team site , i want to get older version in program. is there any command line tool
Michael
Sorry, I don't understand what you mean sorry. Can you explain what you mean in a bit more detail?
Cheers
Michael
Michael
hmmm perhaps you are saying that you don't wish to use the TeamSite GUI, you wish to get the previous version programmatically.
In that case, yes there is a CLT -- check out the TeamSite Command Line Tools manual for
iwrevert
.
Best of luck!
Cheers
Michael
Adam Stoller
If the version you want was published in a named edition, and you have access to the TeamSite server's local files system - you can access the file by going through the path to the edition - e.g.
/iwmnt/default/main/www/EDITION/ed_003/some/path/filename.html
or:
y:\default\main\www\EDITION\ed_003\some\path\filename.html
If the version you want is not known to be specific to a particular edition (and you still have access to the TeamSite server's local file system) you can use iwrlog to view the history of the file, and that will show you the "hidden" edition's name associated with the submit event for each particular version of a file - e.g.:
iwrlog /default/main/www/STAGING/some/path
file /default/main/www/STAGING/some/path/filename.html
working revision /main/www/5
----------------------------
name /some/path/filename.html
revision /main/www/5
last modified Thu May 6 08:09:38 2004 by fish in area #422
size 18863
objid 0x00001008411b4d8d40000069
submit event objid 0x000022580000000000005c42
Made some change to this file for yadda yadda yadda ...
----------------------------
name /some/path/filename.html
revision /main/www/4
last modified Wed Apr 21 08:56:55 2004 by fish in area #401
size 18859
objid 0x0000100800005a7400005a53
submit event objid 0x000022580000000000005a72
Did such-and-such to mumble mumble in order to so-and-so ...
----------------------------
...
======================================================================
total revisions: 5
======================================================================
Thus if I wanted version 4 of this file, I could access it as:
/iwmnt/default/main/www/EDITION/#401/some/path/filename.html
or
y:\default\main\www\EDITION\#401\some\path\filename.html
All of this
without
changing the version of the file that exists within your workareas or staging (i.e. no revert)
If you
want
to revert the copy in a particular workarea, you could, as was suggested, use something like:
iwrevert /default/main/www/WORKAREA/waname/some/path/filename.html main/www/4
and that will replace the version of the file in your workarea with a copy of version
4
identified as version
5+
.
If you don't have direct access to the TeamSite server's local file system (i.e. you want to do this remotely from a client machine), you would either have to learn how to perform these operations through the CSSDK or create a client/server application which can perform these operations for you (the server part being on the TeamSite server and the client part being on your client machine) but it's probably a bit more involved than what I've already outlined (as you may have to deal with authentication issues, accessible ports, etc.).
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com