Summary
This article contains notes from Ticket #966222 where I used an older revision of an article to see formatting HTML codes to fix the current version.
How-To
Task: Copy HTML source code from an older revision of a TDx KB article
Instructions
Step 1 -
Step 2 -
Step 3 -
Outcome
----------- Text copied from ticket #966222 ----------------
Jim had updated the content the way he wanted, but the formatting was messed up.
This is what I did. First, in the TDx KB in a browser, I:
- Went into Edit mode > Content tab > Source view. Copied the HTML Source of the Current Version and saved it in a separate text file.
- Looked at the Revision tab and found the last version before he started making changes.
- Compared that old version with his current version. Took screen shots to understand where things had changed, but I ended up not needing them.
- Viewed the old version and used the browser "view source" option. Copied and saved all that source to a different text file.
Then, in my text editor (I use Notepad++, available in company portal for managed machines)
- In the "view source" code that I saved from the older version of the article, which contains ALL the TeamDynamix headers, footers, side bars, styles, etc., I searched for "table" to find where the messed up table was.
- Copied and saved the table "div" section into its own text file so I could see/copy the formatting from the old version that worked.
- Also copied and saved the HTML source code from our "Summary" down through the "Need additional help?" footer into yet another text file - that is the source code we would see in the "Source" option of the KB WYSIWYG editor.
- In a COPY of the HTML Source code of the current version of the article, edited the table properties to match the formatting from the older version where the table looked good. In this case, using:
- scope="col" style="text-align: left; vertical-align: bottom;" in the "th" tags for each cell in the header row
- style="white-space: nowrap;" in the "td" tags for the first cell in each data row
- style="width: 25%; text-align: left; vertical-align: top;" in the "td" tags for the second cell in each data row
- Also found in the old article version the anchor link and added it back into the new version I was making.
- Saved my NEW version of the HTML code.
Back in the TDx KB WYSIWYG editor, replaced the HTML Source code with the code I had just saved in my text editor. Went back to normal view and saved as a draft. And that fixed the table!
Reviewed draft, approved and updated the article to a new, fixed revision.
Let Jim know in Teams that it is all set.
Resolving this ticket.
----------------------------------------------------------------
Further Readings
Need additional help?
Visit the TeamDynamix area in the Knowledge Base
To request service, report an issue, ask questions, or request training, submit a TeamDynamix Application Administration Support Request