Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2012 19:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4227556 to your computer and use it in GitHub Desktop.
Save anonymous/4227556 to your computer and use it in GitHub Desktop.
WebGUI Story date issue
<h2>To restore the original published date to a News item after editing it:</h2>
<ol>
<li>In MySQL, get the original published timestamp by typing:
<pre>select * from asset where assetId='&lt;assetid&gt;';
</pre>
, where <strong>&lt;assetId&gt;</strong> is the actual Id of the asset</li>
<li>Clear out all the excess copies of database entries by finding the Story asset in the Asset Manager, "Changing" the URL by one letter, and then "Changing" it back to the original URL.&nbsp;This will leave you with one entry in each of the three tables that controls the Story's date.</li>
<li>Run the following three (3) queries, substituting the asset's Id and the timestamp you found in Step 1 where indicated:
<pre>UPDATE Story SET revisionDate=&lt;timestamp&gt; WHERE assetId='&lt;assetid&gt;';
UPDATE assetData SET revisionDate=&lt;timestamp&gt; WHERE assetId='&lt;assetid&gt;';
UPDATE assetIndex SET revisionDate=&lt;timestamp&gt; WHERE assetId='&lt;assetid&gt;';
</pre>
</li>
<li>Clear the WebGUI cache.</li>
<li>Clear your browser cache.</li>
<li>Verify that the News item has the correct, original date by viewing it in the individual view template.</li>
</ol>
<p>Good hunting.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment