Content Server pcs tags

I am just wondering who among you have already come across with combining jsp variables with content server pcs tags. Just to give you a scenario,I would like to access a folder but the folder name is in jsp variable. How could I access the title through a pcs tag. Any idea?Thanks.

One approach I have used in the past is to have a dummy field on a content item which is the selection list. I make the field multi-select, and then check the content item out, select all the possible values in the selection list and check the item back in.
Then, in your presentation template, you can use foreach on that property on the content item, which will loop through all the selected values.
... very ugly, but does the job :-)

Similar Messages

  • Content Server pcs tags - API

    The pcs tags are limited in what they allow us to retrieve in terms of information about an item. We would like to find properties related to the workflow, not only whether an item has be created or published.
    The idea would be to see whether an article has been saved, but not yet submitted to a workflow process.
    Is there any way of doing so from a template?

    This sort of bug usually occurs when the machine hosting your WS Server is different than the one running Content Server.  I'll bet those machines have clocks that differ by more than 10 minutes.  Make sure they are set to the same time.
    By default that method of obtaining a remote session allows it to last for 10 minutes.  If your servers believe they are more than 10 minutes apart, they think the security token has expired.

  • Content Server pcs:html:img tag

    I am attempting to create custom news article presentation & data entry templates. The data entry template includes a text field where the user would specify the filename of an image that will be included in the presentation of the news article. I am having trouble with syntax for the filename property in the presentation image. I found an example the looks like this
    <pcs:html:img expr:src="itemByPath('images/logo.gif').location" attr:border="0" attr:align="absmiddle" style="UNARY" ></pcs:html:img>
    This works great, however I need to use the filename property something like this
    <pcs:html:img expr:src="itemByPath('images/<pcs:value expr="imageName"></pcs:value>').location" attr:border="0" attr:align="absmiddle" style="UNARY" ></pcs:html:img>
    Any suggestion on how to do this is greatly appreciated!

    Hi!
    I get the same error. I think it is a class loading problem. I noticed that both pdkjava.jar and pdkstruts.jar contains the class oracle.webdb.provider.v2.struts.StrutsUtils, but only pdkstruts.jar implements the method isPortalRequest(). The classloader has obviously loaded the other version of the class already.
    Both jar files is in the WEB-INF\lib directory of my war file. Has anyone else found a solution to this problem?

  • Content Server Installed but doesnt respond

    Hi,
        I have installed the Content server on Win2K3 as given in the installation guide.I have installed for file storage on the file system.
        After installation i got the message that everything is ok.But then when i execute the command
    http://<server>:<port>/ContentServer/ContentServer.dll?serverInfo
        I get the response as page cannot be displayed.I want to use the content server for DMS storage so that i can use KPro instead of the vault.
        Same thing when i do
    http://<server>:<port>/
        I get a pop-up asking for the user-name and password but when i give the user name as administrator and password it doesnt allow access.
        Please advise
    Regards
    Ankan Majumdar

    Note Number : 361123
    Symptom
    You want the SAP Content server to work properly.
    Other terms
    Signed URLs, AdminSecurity, SsfVerify failed
    Reason and Prerequisites
    The SAP Content Server was installed in accordance with the installation guide. For new installations, we recommend that you use the latest released version of the SAP Content Server, regardless of the SAP System release to which the SAP Content Server is connected.
    Solution
    This note provides additional information on different aspects of security when using the SAP Content Server.
    Security against data loss
    •     The SAP server content stores the contents of the confidential document either in an SAP-DB instance or in the file system. To avoid data loss, the usual measures for databases and file systems are taken. These are only mentioned briefly here: Redundant hardware (mirror disks, raid systems and so on), regular backup (log files, backup). When you back-up the Content Server, note that you also have to save the ContentServer.ini configuration file as well as the Security directory in addition to backing up the database instance or the directories of the file system used for document content.
    •     Note 319332 describes backup strategies for a Content Server with database folders.
    •     SAP does not have a tool for backing up file system folders. In this case it is the responsibility of the customer to select and convert the backup strategy. Here you should note that, for a complete and consistent backup of a file system folder, it may be necessary to shut down the Content Server for the duration of the backup.
    Security against unauthorized accesses on filed contents
    •     Before you access the content server, an authorization check usually occurs in the SAP system. However, the content server is usually accessed using a disclosed HTTP log. To make sure that only authorized accesses are possible, 'signed URLs' must be used. Signed URLs are URLs that were signed by the SAP system. You can recognize signed URLs because they are considerably longer than unsigned URLs and contain additional parameters. The signed URL, in particular, contains the additional parameters expiration (expiry time) and secKey (digital signature). A signed URL is only valid if the expiry time has not yet been exceeded and if it contains a valid signature. In order that the signature can be checked by the content server, the public key (certificate) of the SAP system must be stored on the content server and tagged for the corresponding repository. Transactions OAHT, OAC0 (as of 4.6C) and CSADMIN (as of 4.6C for SAP content server) are used to transfer the certificate. The certificate must be activated on the content server for the repository. Use CSADMIN to do this (for SAP Content server).
    •     In order that the digital signature of the SAP system can be used properly, EVERY SAP system must have its own unique certificate. To ensure this, a 'PSE' must be generated once in every SAP system after this SAP system is developed. Use transaction PSEMAINT to do this (note 354819).
    •     To protect the connection between the Content Server and its SAP-DB instance, the name and password of the database user can be changed and stored in encrypted format in the configuration of the content server. For details, see note 661852.
    Access control for the administration
    •     The content server is partly administered from within the SAP system, and partly from outside it. When it is administered from outside, you must ensure that only authorized persons have (administrative) access to the server on which the content server is running. The (administrative) access to the database (note 212394) must be restricted accordingly.
    •     In order that administrative accesses from the SAP system are only possible for authorized persons, the parameter AdminSecurity must be set to 1 in the content server. You will find details on this in the installation documentation of the SAP Content Server.
    Protection against server hardware outage
    •     The Windows version of the SAP Content Server can also be installed in an MSCS environment (Microsoft Cluster Server). For more detailed information, see "SAP Content Server 6.20 in an MSCS Environment", dated March 4, 2003, in the "News" section on the SAP Service Marketplace (http://service.sap.com/ha
    •     The duration of the non-availability of content servers, cache servers and alias servers can be reduced with the automated operator intervention described in note 484459.

  • Content Server not working after 5.0.2 upgrade

    We upgraded the plumtree to 5.0.2. After upgrade, content server portlets not working properly. When I publish my portlet, Interface says it is published, HTML file generated at the published location, but log says
    com.plumtree.search.UnknownTypeException: IndexManager.enqueue() : Could not find PTDocMaker for key PTCONTENT
    Portlet displays
    Error: No Url is available for this portlet. It may not have been published.
    Any Idea ?

    Hi Ravi, from the Release Notes for Content Server 5.0.2, there's this note "Publish Dialog does not show any error when search index fails but an error "com.plumtree.search.UnknownTypeException: IndexManager.enqueue() : Could not find PTDocMaker for key PTCONTENTTEMPLATE" is recorded in pcs.log. (Issue #27541) "
    So you should make sure that the search server is running (just by doing a banner search). Assuming that's fine (it probably is), the likely culprit is an installation problem. Check the Content Server pcs.log file (located in PT_HOME\ptcs\5.0\settings\logs) for any error messages related to search api initialization. This cryptic error you're observing occurs when the search api initialization fails for some reason, the error is not gracefully caught and surfaced to the user. The pcs.log file may give a clue.

  • Pcs:if tag error in Content Server presentation template

    This probably isn't the right discussion group, but I couldn't find a group to which this inquiry applies.
    Anyway, I'm working on Content Server (5.0.2) presentation template code, using a pcs:if tag, that looks something like this:
    <pcs:foreach var=&#034;item&#034; expr=&#034;itemList&#034;>
         <pcs:if expr='item == &#034;Cats & Dogs&#034;'>
              Print something
         </pcs:if>
    </pcs:foreach>
    After clicking &#034;Save&#034; or &#034;Validate&#034; (to validate my code), I receive the following error message:
    Error: Expected to find an apostrophe (') ending the attribute value, and did not.
    <pcs:if expr='item == &#034;Cats & Dogs&#034;'>     // <--- the ampersand is highlighted
    In other words, the validator doesn't know how to escape the ampersand (&) inside my string (&#034;Cats & Dogs&#034;).  I've tried numerous ways to escape it, but, so far, nothing has worked.  Replacing the ampersand with &#034;&&#034; effectively changes the string, so that doesn't work either.
    Please let me know if you have a solution to this.
    Thanks,
    -Jose

    Hi,
    I am new to this field.
    Kindly bear with me & guide me how to verify the password in SM59.
    I went there,but not sure of it.Please let me know.
    Regards,
    john.

  • pcs:insert not working correctly in Content Server 6.0

    Hello,
    I'm having a difficult time getting the <pcs:insert> tag working in Content Server 6.0. In the previous version of Content Server, I used <pcs:insert expr="mycontentitem"></pcs:insert> and the content item that I want inserted shows up fine. Now when I try it in Content Server 6.0, the inserted (child) content item tries to reference the parent's content item variables, giving me nothing. Also, I have tried using <pcs:insert path="mycontentitem"> to the same result.
    Any help, or example of a working <pcs:insert> for Content Server 6.0 would be a lifesaver!
    Thank you,
    PK

    We have the same problem with "INSERT" tags not working in the newest version CS6.0. I am a bit surprised that anyone had replied to your post to give us some explanations or directions how to solve the problem. It looks as a serious problem to me.

  • Metadata fields like Tags, page ID etc not available for a Content in Content Server info.

    Hi,
    Am trying to build a Webcenter Portal application with the help of a tutorial. This requires to upload files to Content Server and use these files to build the app. and to link the navigations for menu and sub-menus.
    I have checked in the files manually into Webcenter Content but when checked  for the Content Information, metadata fields like Tags, Page ID, Websites etc are not displayed.
    These fields are necessary to relate to the Content Management Interoperability Services (CMIS) query used in application.
    The tutorial link am referring to is : Connecting to and Managing Content Repositories - 11g Release 1 (11.1.1.6.0)
    Content Management system server version is: 11gR1- 11.1.1.7.0
    Please let me know if am missing something.
    Thanks in advance!
    Regards,
    Nivedana

    Thanks Naresh. It worked.
    Can you please suggest few good links to gain more knowledge on UCM. I have tried a few, but not good enough.
    Thanks,
    Nivedana

  • Get Content Security Role using PCS tags in Presentation Template

    I'm trying to determine what content security access(role) a user has in Publisher using PCS tags in the Presentation Template. Basically I need to check whether a user has access or not to a content item in Publisher and before an action. I've looked through all documentation can't find anything related to this, I know I could do this using remote API but I'd rather use PCS tags if possible.
    thanks

    Vince,
    I don't think this is possible directly, however we have enabled this in publisher by checking if the user is in a specific group, or content manager and doing a check with the following code if it helps.
    <pt:standard.choose xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>
    <pt:standard.when pt:test="stringToACLGroup('group=1,<pcs:value expr="groups"></pcs:value>;').isMember($currentuser)" xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'>
    </pt:standard.when>
    </pt:standard.choose>
    You could do the same with users. We added a select tree to choose the users and groups within publisher.
    Hope this helps.

  • Accessing pdfs through jsp content tags from content server!!!!!

    hi,
    i have uploaded few images in content server which i can access by dis syntax
    <ad:adTarget query="adAltText='intraday'" height="200" width="200"/>
    or
    <ad:adTarget query="image_name=='first'"/>
    but for accessing pdfs..
    <ad:adTarget query="title=='InsuranceDataSheet'"/><br>
    dis syntax doesnt work..it only provides me a link on the jsp page on click of which i can go to that pdf..
    what should i change?
    kindly help..

    By default, only image and text content have configured renderers for <ad:adTarget>, <ad:render>, and <ph:placeholder>; for all others, it does just print a link, as you're seeing. However, you can write and configure additional content renderer classes for other mime types (e.g. appliation/pdf). See http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14238/placeholders.htm#i1006120 for details.
    Greg

  • Dynamically Updating Content Server Portlets

    [urlHi, I am currently having difficulty dynamically updating content server portlets.  I have a portlet of the following form:[/url]
    ArticleName Author Title Date mystory author1 title1 04/05/01
    story2 author2 title2 06/07/04
    story author3 title3 01/02/03
    So I have this table where each one of the line items is an article in the content server. So, for example the first line item is an article "mystory" by "author1", with title "title1" and date "04/05/01" additionally there is an article text field, but this isn't displayed unless I click on the article name.
    I can set up the basics of this portlet, but when I try to add any real functionality I run into one of two problems.
    First Problem: Passing Information
    I cannot find a way to pass information between content portlets. For instance, if the user would like to "re-sort" this table based on "date", I would like to have the user click on the "date" column heading and then reload the page. To do so, I would have to pass the section name back to the page so that it could resort based on this data. I have not found anyway to effectively pass information to a content server portlet. I am building these pages through use of the presentation template framework (so I can have access to the content items) but that seems to change the way portlets are handled.
    I got around this limitation with a regular portlet by creating an intermediary page which captures passed information and stores it to the session state. Once the information was in the session state, it is accessible to the portlet on the first page. However, this only works because remote portlets do not change their session id once loaded. Content Server portlets, on the other hand, change their session id after every reload of the browser or page change. I can send information from a content server portlet to an intermediary page, but I cannot send it back to the portlet because the session id has changed so I have no idea of knowing where to send the information. I can write it to a session state, but by the time I return to the portal page, the content server has changed its session id so it does not know where to look any longer.
    I suppose it would be possible to create an application state variable and append it with some static token (if there is some static variable per portal session) but I would rather not have to deal with application variables if at all possible.
    Second Problem: Dynamically Updating PCS Tags
    Even if I were able to the pass information back to my content server portlet, I run into another issue. The easiest way to sort content server items is using the filter command in the pcs:foreach tag. So, if I wanted to sort by author name, I could do something like the following <pcs:foreach var="item" expr="filter(folderByName('content'), filtered.name == '"name")" or something like that (the syntax may be incorrect, I just wrote this off the top of my head). However, it appears that the way the presentation templates are compiled goes in the order of PCS tags THEN JSP. So I would have no way of dynamically changing the variable on which I sort. For example, if I clicked on "Date" above in my table, I would like to be able to dynamically change my code so that I sort on date, and not name. I cannot find a solution to this problem.
    My workaround is to use the pcs tags to write out all the possible sortings to java array objects. This gives me access to the data on a JSP level and based on whatever the user will chose, I could then display that array. While this works, it is extremely ghetto and inefficient. Any help or suggestions would be fantastic.
    Thanks a lot,
    Jason Grauel

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Content Server - Publish to Directory Feature

    Is there anyway to automatically publish content items to a folder in the Knowledge Directory in addition to the publishing target within Content Server? I see that you can rclick on individual "articles" and publish them to the KD. We just want that to happen automatically whenever an item is published.

    The "reference" Content Item would use a Data Entry Template that had an item reference property, and a Presentation Template which just used the Insert tag on that item property, e.g. <pcs:insert expr="My_Item"></pcs:insert>.
    Then you could create "reference" Content items that refered that item you want published multiple times, placing those "reference" Content items in a folder with a different publishing target. Thus when that "reference" item is published, it will effectively publish the item to which it refers to a different location. You could also employ the Related Item Publishing feature contained in the Data Entry Template in order to automate this somewhat, so that when one item is published the other is published automatically as well.
    But this is all a bit of a hack and awkward. If you need to rely on identical published content existing in multiple places in a production setting, I still recommend using a file replication utility.

  • JavaScript and Content Server Portlets

    Header, footer, news, custom, doesnt matter. Can you use javascript in them and if so, to what extent? For mouseovers, animation, div tag management and manipulation, etc...

    You can use just about any javascript you want in any Content Server presentation template including ones that are used for portlets.
    However, you should be careful to name javascript functions and global variables uniquely so that they do not conflict with any other javascript on the page. To do this, you can append the item id to function and variable names, for example,
    function doSomething<pcs:value expr="pcs_id"></pcs:value>() {
    return true;
    Randy

  • Internationalization in content server

    I am developing a portal application that needs to support English/French. So far I found ways to translate everything except content coming from content server.
    I was planning to create entry templates where content authors would enter the content in both languages, in the presentation template I was going to use a pcs tag to display the proper content based in user locale. Is that possible?
    I haven't found a way to pass/read user properties in content server?
    Is there any other way to do internationalization in content server?
    Thanks

    The Content Server's Presentation Template is only evaluated at the time of publishing. This generates a file that is stored outside of the Content Server which is generally accessed through a webserver. This means that you cannot use the Presentation Template language to change the content based on the user viewing the page.
    The Content Server does not currently have tools dedicated to supporting localization of published pages. You can use the Content Server to manage content in multiple languages. By publishing a Content Item as a JSP or ASP page you can dynamically choose the content to display to the user. Or you could create two Content Items, one representing each language, and direct the user to the appropriate page.

  • How can I retrive current user information in Content Server's presetation template?

    We need to determine current user is the item's created user or not, so we want to know how to do this?
    we can use <pcs:if expr="'Luke' == createdBy">....,but the 'Luke' is static string,
    so, how can I retirve current user name in Content Server's presetation tempalte?

    I don't know that this is possible in a direct fashion. (and, btw - thank you for asking this question. I realized we'll eventually need exactly the same thing so looking at this helps me as well :).
    I'm quoting dev support from another posting on making community comparisons dynamic:
    "This won't work because the pcs: tags are evaluated on the Content Server during the publish operation, resulting in a static HTML file that still contains the raw pt: tags. This same HTML file will be displayed in all of your communities. The pt: tags are evaluated on the portal server right before it returns content to the user, this allows the single HTML file to show a different name in each community. "
    So the gist of things is that content server acts dynamic to you and I through the editing UI, but is really publishing static content. The values at run-time are not directly available to the PCS operators because...well...the PCS stuff is already done. It produced the static HTML showing up in the portlet.
    There appear to be two immediate options:
    Use the transformer tags to publish the user's name at run-time. Have the PCS and Transformer tags write their values into javascript strings and then compare this client-side. My response: "meh" Not for the purist, but I'm so far down the non-purist path at this point it just doesn't matter any more to me. Simple and to the point, but has known risks. Probably the easiest way to go.Publish your page as ASPX or JSP and then use the EDK server-side to manage the comparisons. Definitely more server-centric, but does require you do a quick bit of content server configuration. Just set the publishing target for the portlet to a directory on a web server and then set the publishing file extension to .ASPX or .JSP. I've done this with ASP and it works nicely. :)Not entirely the answer you or I were looking for, but I think it makes sense.
    The PT transformer tags you'll want if you go with option (1) are:
    Get the user's full name
    <pt:userinfo xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" name="FullName" />
    Get a custom user setting "myUserSetting"
    <pt:userSetting name="myUserSetting" xmlns:pt="http://www.plumtree.com/xmlschemas/ptui/" />
    Plumtree - am I off base on this one?
    Thanks,
    Eric

Maybe you are looking for