WCM and documents (pdfs)

We have a client who is in the process of upgrading from eCM to WCM, In this process, we've identified a plethora of pdfs that are valid content items in eCM, but causing us some issues in WCM. A couple questions along the lines of how users of WCM are handling pdfs, if I may:

  1. The document manager doesn't work in WCM - doesn't load, doesn't function - or at least not by default. Has anyone tried turning this on for 15.2+? Anyone aware of a timeline for this to be a functioning appendage to WCM that is turned on by default (if it's even on the radar)?
  2. I'm aware of the Content Link iPart (* see note below), and we will be utilizing this for the majority of the documents. However, how are people handling things like:
    • a list of documents
    • inline links to a document
    • multiple pages linking to a single document
  3. how are access restrictions to documents handled? just done via a separate content or navigation item?
  4. * pdfs from the eCM site have an extra line in the Content Link iPart, usually describing the document - I've not seen this before with 'fresh' pdfs. usually the result is {link} on line1 (url to the document and text from the configuration setting) and the text (Adobe PDF) on the second line. however, the output of the eCM uploaded pdf is line1: {link} line2: "unknown description text" line3: (Adobe PDF)

Just trying to put together some 'best practices' for our clients and consultants! Thanks

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Turning on Document Manager in WCM

I don't have an answer on when or if the Document Manager will be turned on and supported product, but the activation is easy. The following method has worked in WCM 15.2. I teach it in WCM class.

 

1. Add a line to the Net\RadControls\Editor\ToolsFile.xml file. The ImageManager line is already there, just add the Document Manager tag.

 <tool name="ImageManager" shortcut="CTRL+G" />
  <tool name="DocumentManager" />

--- You might be able to create a shortcut for it using the same syntax as for the Image manager, just make sure it is unique ----

2. Edit the C:\Program Files (x86)\ASI\iMIS15Prod\Net\AsiCommon\Controls\ContentManagement\ContentDesigner\ContentHTMLEdit.ascx file. This is how it should look in 15.2. This needs to be reapplied after patches and upgrades, and you may need to adjust the code if future WCM modifies the code.

   <asiweb:PanelTemplateControl ID="HtmlFields" runat="server" ShowHeader="false" FieldSet="true" BorderStyle="None">
<div class="AutoWidth">
<asiweb:SmartControl ID="ShowBorderControl" runat="server" BoundPropertyName="ShowBorder" DisplayCaption="true" PositionCaption="Right"/>
<br />
<br />
<asiweb:BusinessHtmlEditor ID="BodyInput" runat="server" AllowScripts="true" BoundPropertyName="Body" CssClass="HtmlEditor" OnClientLoad="RadEditorSetSize" >
<DocumentManager ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" MaxUploadFileSize="104857600" SearchPatterns="*.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf, *.xml, *.js, *.html, *.swf, *.jpg" />
</asiweb:BusinessHtmlEditor>
</div>
</asiweb:PanelTemplateControl>
 

--- You may wish to change tthe paths entries to a directory of your own making, say ~/ABCORGDOCS.  You can also control the size of files and the types. After you have uploaded the document, you can just click Insert in the document manager and it will put a link to the doc. You may wish to edit the link title, but it will be there. You may add as many docs as you like on one HTML page. ----

 

As to security, the individual links are not secured since they are just links to files, not content. You can supply security on the page that holds the links, but if someone copies or bookmarks a link, it can be displayed unsecure.

 

Hope that is helpful.

Why

Michael,

This was very helpful, thank you. Once I made the changes you outlined (and restarted the AppPool), the document manager fired right up. I did create a new directory specifically for the docs.

Question, do you know what is keeping ASI from supporting the document manager? It appears to be working, it's much easier to work with, control and follow along with compared to the Content File iPart.

p.s. I don't recall going over this in the WCM class, in February

Why???

What goes into the product is the result of thousands of micro-decisions. Usually it is a matter of priorities. If we have 600 possible changes, and this is ranked 345, it may take awhile.

Suggest you post an actual SMR on the ASI website requesting this enhancement or something similar. 

For one thing, using this technique is not very useful for documents that must be secured, like purchased or truly confidential documents. This is a significant issue with the requirments of a lot of customers.

I really am not involved in product development per se, so if you want it, vote for it by posting an SMR.

Mike

thank you

...for the reply. I've got an SMR in already. I do like the thought of being able to add the access settings to a document, that'd be pretty spectacular.

Thanks again,
Eric

15.2.15

In 15.2.15 (and I think 15.2.10) the OnClientLoad method was changed from RadEditorSetSize to InitializeRadEditor, so to turn on in the ...\Net\AsiCommon\Controls\ContentManagement\ContentDesigner\ContentHTMLEdit.ascx file:


<asiweb:BusinessHtmlEditor ID="BodyInput" runat="server" AllowScripts="true" BoundPropertyName="Body" CssClass="HtmlEditor" OnClientLoad="InitializeRadEditor">
<DocumentManager ViewPaths="~/ASSOCdocs" UploadPaths="~/ASSOCdocs" DeletePaths="~/ASSOCdocs" MaxUploadFileSize="104857600" SearchPatterns="*.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf, *.xml, *.js, *.html, *.swf, *.jpg" />
</asiweb:BusinessHtmlEditor>

I like to use the association acronym on the folder names, so I was change the ViewPaths, UploadPaths and DeletePaths to "~/ABCdocs" for Allied Builders Collaboration (ABC).

Has this been tried in 15.2.10?

I tried this in 15.2.10 and didn't get it working. Anyone have ideas.....Below is what I have:

<%@ control language="C#" inherits="AsiCommon_Controls_ContentManagement_ContentDesigner_ContentHtmlEdit,

Asi.Webroot.AsiCommon.Controls.ContentManagement.ContentDesigner" %>
<asiweb:PanelTemplateControl ID="HtmlFields" runat="server" ShowHeader="false" FieldSet="true" BorderStyle="None">
    <div class="AutoWidth">
        <asiweb:SmartControl ID="ShowBorderControl" runat="server" BoundPropertyName="ShowBorder" DisplayCaption="true"

PositionCaption="Right"/>
        <br />
        <br />
        <asiweb:BusinessHtmlEditor ID="BodyInput" runat="server" AllowScripts="true" BoundPropertyName="Body"

CssClass="HtmlEditor" OnClientLoad="RadEditorSetSize" />

<DocumentManager ViewPaths="~/Images" UploadPaths="~/Images" DeletePaths="~/Images" MaxUploadFileSize="104857600" SearchPatterns="*.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf, *.xml, *.js, *.html, *.swf" />
    </div>       
</asiweb:PanelTemplateControl>
 <script type="text/javascript">
     // Set the size of the RadEditor so that it fills the available space.
     function RadEditorSetSize(editor) {
         var rwindow = GetRadWindow();
         if (rwindow == null)
             return;
         var height = rwindow.get_height();
         // Min height of 400
         height -= 200;
         if (height < 400) height = 400;
         editor.setSize("100%", height);
     }
 </script>

15.2.10?

I have not tried this in 15.2.10 yet, will give it a shot.

It may be an artifact of the HTML editor on this site, but one thing to be sure is to not break tags with a hard return. I have found ASP.NET a little sensitive to formatting. I carefully only replaced the part I listed above as well. I have seen the code for ContentHTMLEdit change from version to version.

will let you know if I successfully activate on 15.2.10.

thanks.....I have tried it

Thanks for replying the format is a bit different this came from cutting and pasting thru internal emails. In previous versions you would have added the document manager language between <asiweb:BusinessHtmlEditor ID="BodyInput" runat="server" BoundPropertyName="Body" CssClass="HtmlEditor"> document manager code here.
</asiweb:BusinessHtmlEditor>

The closing tag for the asiweb:BusinessHtmlEditor does not exist in the current file so that I am not sure of placement of the code. Any help would be greatly appreciated.

I have it working. Like most

I have it working. Like most other web related tags if you change '/>' to this '>' you can then add a closing tag and embed stuff in between. I have it working in 15.2.10. See below.
Regards,
Joe John
John Consulting
----------------------------------
Change this:

to this:

It is cutting off my reply -

It is cutting off my reply - You need to make it look like it did in previous version where it has a closing tag and put your document manager tag inside.

Document Manager

Hi guys

I tried everything in this post howver when the document manage comes up I get nothing in the window - ie folder structure / files not showing...

Any ideas? 15.2.15.4667

Cheers
Ash

In imis, under the NET

In imis, under the NET folder, create a folder that is not named generic - for example 'NCPHA_Docs'

Then make sure your reference in the ContentHTMLEdit.ascx iPart matches.

ViewPaths="~/NCPHA_Docs" UploadPaths="~/NCPHA_Docs" DeletePaths="~/NCPHA_Docs"

This should fix the problem.

Hmmm

Thanks guys, but still didn't work

I verified the folder was in the NET folder and this is my entry - however still nothing when the document manager pops up

asiweb:PanelTemplateControl ID="HtmlFields" runat="server" ShowHeader="false" FieldSet="true" BorderStyle="None">
div class="AutoWidth">
asiweb:SmartControl ID="ShowBorderControl" runat="server" BoundPropertyName="ShowBorder" DisplayCaption="true" PositionCaption="Right"/>
br />
br />
asiweb:BusinessHtmlEditor ID="BodyInput" runat="server" AllowScripts="true" BoundPropertyName="Body" CssClass="HtmlEditor" OnClientLoad="InitializeRadEditor" />
DocumentManager ViewPaths="~/Docs" UploadPaths="~/Docs" DeletePaths="~/Docs" MaxUploadFileSize="104857600" SearchPatterns="*.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf, *.xml, *.js, *.html, *.swf, *.jpg" />
/asiweb:BusinessHtmlEditor>
/div>
/asiweb:PanelTemplateControl>

Yep, as Joe said - if you're

Yep, as Joe said - if you're not seeing anything in the document manager when it comes up, it's most likely because you're pointing it at a folder that doesn't exist in your Net directory.

same problem

Thanks for posting these. Will try fix later today.
I've been having real problems doing lots of things on the html content editor.
But not being able to get the document manager to show up when you are adding a link to another webpage has been a major pain - especially if you are trying to encourage other staff members who know no html to be able to edit their own pages.

Any fixes

Hey guys

STILL having issues with this, has anyone been able to fix in 15.2.15.4467?

Fixed 15.2.15.4467

Put opening tags in


asiweb:BusinessHtmlEditor ID="BodyInput" runat="server" BoundPropertyName="Body" CssClass="HtmlEditor">
DocumentManager ViewPaths="~/docs" UploadPaths="~/docs" DeletePaths="~/docs" MaxUploadFileSize="104857600" SearchPatterns="*.doc, *.txt, *.docx, *.xls, *.xlsx, *.pdf, *.xml, *.js, *.html, *.swf" />
/asiweb:BusinessHtmlEditor>

Get rid of the Initialize Rad Eitor line - replace the whole thing with that above.