BEA's Publisher - Display Published Content Items

I'm using BEA's Publisher product with ALUI. I want to have a simple portlet that just displays Content Items that I've published, but after playing with it for a couple of hours, I find myself stuck.
I have a Data Entry template that just takes a name and a file, and a presentation template associated with that. But I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template.
I tried using the Tag Helper and I saw that the file properties were available, e.g. name, location, length, however I can't get the template to actually display the information.
Also, since I can't publish said presentation template (you aren't allowed to publish a presentation template associated with a data entry template), I have to make ANOTHER presentation template, and include the first one, and then make a new portlet that displays that second template. Is this how it's supposed to work? It seems awfully complicated for such a simple task.
I would greatly appreciate any input anyone can give. Thanks!
Edited by: user10704201 on Dec 12, 2008 12:32 PM

" I can't figure out how to make the presentation template display a list of published content items associated with the Data Entry template. "
While I believe that this is a correct statement, you can't use pcs:foreach to get all items associated with a DET, I think that what you really want is to display all the content items in a folder or in a list. The 2 ways I most commonly do it are:
use a list
1) create a DET for the main portlet item (for example, news stories) with a property of type list
2) create a DET for the type of item that goes into the list (for example, news article)
3) create a Content Item based on your main portlet item DET
4) add items to the list
5) iterate through the list in your presentation template (pcs:foreach expr="item.myList" var="mylistvar"...)
You can also tell each news article to automatically add itself to the news stories list. (Look in the DET for this setting)
use a folder
you can also just create your list items in a folder and then loop through the folder (pcs:foreach expr="folderByPath(item.folder,"folderName")"...

Similar Messages

  • Editing a previously published content item results in no workflow applied

    Hi,
    We have developed numerous workflows, which are configured as default from New menu configurations.
    We are seeing two issues:
    1) Copying an existing content item, the assigned workflow to the New menu is not applied. This is apparently by design in 11g (did work in 7.x) according to Oracle support. We have raised a product enhancement request
    2) Editing a content item which has passed through its workflow stages and has been published, the previously assigned workflow is not assigned.
    Issue 2) is what we are looking into now. Apparently (again) this is by design.
    Is there a common approach that people are using to resolve this issue, in that editing a previously published content item, those changes will be subject to the original workflow stages before it will be re-published?
    We have heard mentioned of listeners or further stages in the workflow...
    Thanks

    then use SPD to customize the task process to lock them out upon starting and give them rights again upon rejection.
    http://office.microsoft.com/en-us/sharepoint-designer-help/use-the-task-process-editor-for-approval-workflows-HA101863538.aspx
    Please mark my response as an answer if appropriate.
    Learn.SharePoint.com
    Hi
    How was this resolved in the end. I to want to disable editing of document whilst workflow in progress. In SPD how is this achieved?
    Thanks

  • Publishing Content Items through API

    Hello,
    I am currently using EDK 5.3 for publishing content items. I have been sucessful in editing an existing content item using APIS. However It looks like APIS doesn't have a way to schedule to publish content items for a future date.
    I tried to do some reverse engineering and found out that this information is stored in pcsscheduledcontent and pcsscheduleitems tables. I was able to figure out how to change the dates as this are stored in pcsscheduleitems table,however can't find out where are the values are being stored for time.
    Say, I want to publish the content item for 08/28/2008 4:00 pm using the APIS, I am able to get to the date from the above 2 tables but really can't find out where the time is stored. I have tested from the User interface that the time is also retained based on the options we pick.
    And also I have seen that the Loadid keeps on increasing for every change I make.
    Can someone please help me/ guide me in the right direction?
    Thanks.

    pcsscheduledContent table. schedule something to be published in the future and then do a select on that table with an order by clause of :
    ORDER BY ITEMBEGINDATE DESC
    The itembegindate column contains the date AND time of the publishing schedule. you may just not be converting the value correctly.
    hth,
    Robert

  • Publisher Content Item has become corrupt

    Hi Team,
    I am a newbie here.
    I have Publisher 6.5. I have a content item that has become corrupt and is not editable any longer. However it can be accessed i.e seen on portal pages.
    We have decided to delete this content item and recreate it again. However the problem is, this content item is used by multiple portlets. If we delete the content item then the connection with other portlets will get broken, I guess.
    How best can I recreate the content item and how should I rejoin it to the broken portlets

    Could you be more descriptive about what you mean by "corrupt"?
    If you haven't already, I would recommend creating a help desk ticket.

  • Display content items into custom remote portlets

    Hi, I need to dinamically display content server items in a custom portlet, using the EDK, but I did not find any way to get this result. Is it poossible to get an object (in my case a published content item) within an ObjectManager and display it's content (in our case a simple HTML content).
    I need to do this because whe have to format the home page of the portal in order to display the first half in three columns and the second half in two columns and we are trying to do this implementing a custom portlet (in the content canvas area) containing a three columns table displaying each a different content item.
    Thank you.

    There are basically two ways that I have done to open the content item editor.1) From a content presentation template you would call a JavaScript function like:
    <script>
    function edit_article$$TOKEN$$() {
    var width = 700;
    var height = 527;
    var left;
    var top;
    left = window.screenLeft + 10;
    top = window.screenTop - 30;
    if ( (left + width/2) > screen.availWidth ||
    (top + width/2) > screen.availHeight ) {
    left = 0;
    top = 0;
    var params = "height=" + height + ",width=" + width + ",left=" + left + ",top=" + top + ",screenX=" + left + ",screenY=" + top + "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1";
    window.open("<pcs:value expr='pcs_location'></pcs:value>/published_tools/content_item.jsp?ciid=<pcs:value expr='pcs_id'></pcs:value>&title=ContentItemEditArticleTitle", '', params);
    </script>
    2) The other way is using the content Item API. You get the editor url from the content item, which you already have. Now what you are doing below is almost correct. The importance of the pt:objectid is crucial. Take a look at the web docs on Plumtree ([url[/url]http://www.plumtree.com/edoc/Enterprise_Web_Development_Documentation.htm) under portlets/adaptive portlets/transformer tags/links. So the reason yours is not working is that you are missing some ptargs. The pt:objectid needs to be the objected of the "Content Administrator" portlet. This is for 2 reasons. One is so that you get the correct PTargs and the second is that it will use the basic auth information stored in its web service. So if your objectid of the portlet was 201 then it would look like this:
    lblHref.Text = "<pt:gatewayLink xmlns:pt='http://www.plumtree.com/xmlschemas/ptui/'pt:ObjectID='201' pt:href=\""+ url + "\" target='TinyURL' onclick=window.top.open('','TinyURL'," + WindowOpenParams + ");>"+myContentItem.Name + "</pt:gatewayLink>";
    Andrew Morris | bdg | [email protected]| www.bdg-online.com
    Like blogs? Check out bdg's Plumtree blog at http://bdg-plumtree.blogspot.com.

  • Displaying content item -(IContentItem) in portlet using Content Server API

    Hi,
    I am using the latest Content server API in my remote server to get the published content items. I have to display the content item in the JSP portlet.
    So how to display the content item in the portlet, if you have the IContentItem Object retrieved from the content server ? Is there any mechanism to get the HTML code/JSP code that corresponds to the IContentItem object?(All the content item will be an html or jsp )
    Currently we are extracting the publish url and opening an http connection to retrieve the html, which is not a good solution if you have mutiple portlets in the same page. So please suggest how can I display the content item (IContentItem Object) in the portlet.?

    Hi Anand,
    I am facing the same problem on IBM WebSphere Portal 5.1.
    Did you find a solution to your problem ?
    Thanks
    Ganesh

  • Content Items and the Knowledge Directory - 3 questions

    1) Does anyone know of a way to set the default KD folder where all items in a Content folder should publish?
    2) Is there some code I can put in the data entry template to force any content item published to automatically publish in the default KD directory I specify?
    3) And on previously published Content items, is there a way to publish all items in the articles folder en mass to a specified KD folder without going to each one and selecting "publish to directory"?

    Hi,
    If you are seeing the documents in the Knowledge Directory and in edit mode, but not browse mode then check/try the following. What exactly were you doing when you got the error? Were you in Publisher or in the Knowledge Directory and running the Simple Submit task?:
    1. Try to approve the documents in edit mode.
    2. Go to the Administrative->Intrinsic Operations and run the following jobs.
    --> Search Update 1
    3. Make sure you have proper permissions on the folder in the Knowledge Directory and Publisher Folders.
    4. Check the permissions on the Content Source for the Knowledge Directory
    I need a little more information to get your better help.
    tnx
    James

  • How to publish a File Content Item via EDK?

    I'm trying to publish a "File Content Item" via the EDK.
    CS EXPLORER
    Recall, that a "File Content Item" is different than a (regular) "Content Item" in that (via CS Explorer) it's a content item with no user-defined data entry template (when you right-click, the "Edit Data Entry Template..." menu item is not listed). Yet, somehow, it can still be published (via the Explorer), --which is great because I need to FTP this file to another server.
    EDK
    However, even though the (file) content item's EDK "Publishable" property indicates "true", it cannot be published via the IContentItemManager.PublishContentItem() method, which is returning the following error message...
    The required object was not found... content item... containing Data Entry Template... with attached Presentation Template (with UUID null)... (DataItemUuidNotFound...)
    In other words, the File Content Item has a (system defined) "/Definitions/File" data entry template, which has no attached presentation template. This leads me to believe that File Content Items are published differently (than Content Items).
    Or, is there a flag that I can pass along to "file_upload.jsp" to get it to auto-publish the File Content Item it creates?
    thanks,
    Michael

    Hey there,
    Animate doesn't publish to HTTPS, but this is something you can control on your own when uploading to a secure server. Also be aware that the Animate runtime is served over HTTP so you'll have to upload this component to serve from your server as well.
    Sarah

  • Error occurred while publishing the content item to the Knowledge Directory

    We are receiving the following error upon publishing non-binary content items to the knowledge directory:
    Error occurred while publishing the content item to the Knowledge Directory. Contact your portal administrator.
    Ironically, in the KD, we call see all content items located in Publisher when we are in Edit mode -- even though they haven't been published to the KD yet. In Browse mode, we can't see any content items.
    Has anyone see this error before? What could be the cause?
    We are using ALUI 6.1.

    Hi,
    If you are seeing the documents in the Knowledge Directory and in edit mode, but not browse mode then check/try the following. What exactly were you doing when you got the error? Were you in Publisher or in the Knowledge Directory and running the Simple Submit task?:
    1. Try to approve the documents in edit mode.
    2. Go to the Administrative->Intrinsic Operations and run the following jobs.
    --> Search Update 1
    3. Make sure you have proper permissions on the folder in the Knowledge Directory and Publisher Folders.
    4. Check the permissions on the Content Source for the Knowledge Directory
    I need a little more information to get your better help.
    tnx
    James

  • High Response Times with 50 content items in a Publisher 6.5 portlet

    Folks,
    Have set up a load test, running with a single user, in which new News Article content items are inserted into a Publisher 6.5 portlet created of the News Portlet template. Inserts have good response times through 25 or so content items in the portlet. Then response times become linearly longer, until it takes ten minutes to insert a content item, when there are 160 content items already.
    This is a test system that is experiencing no other problems. There are no other users on the system, only the single test user in LoadRunner, inserting one content item at a time. The actual size of the content item is tiny. Memory usage in the Publisher JVM (as seein on the Diagnostics page) does not vary from 87% used with 13% free. So I asked for a DB Trace, to determine if there were long-running queries. I can provide this on request, it zips to less than 700k.
    Have seldom seen this kind of linear scalability!
    Looked at the trace through SQL Server Profiler. There are several items running for more than one second, the Audit Logout EventClass repeatedly occurs with long durations (ten minutes and more). The users are publisher user, workflow user, an NT user and one DatabaseMail transaction taking 286173 ms.
    In most cases there is no TextData, and the ApplicationName is i-net opta 2000 (which looks like a JDBC driver) in the longest-running cases.
    Nevertheless, for the short running queries, there are many (hundreds) of calls to exec sp_execute and IF @@TRANCOUNT > 0 ROLLBACK TRAN. This is most of what fills the log. This is strange because only a few records were actually inserted successfully, during the course of the test. I see numerous calls to sp_prepexec related to the main table in question, PCSCONTENTITEMS, but very short duration (no apparent problems) on the execution of the stored procedures. Completed usually within 20ms.
    I am unble to tell if a session has an active request but is being blocked, or is blocking others... can anyone with SQL Server DBA knowledge help me interpret these results?
    Thanks !!!
    Robert

    hmmm....is this the ootb news portlet? does it keep all content items in one publisher folder? if so then it is probably trying to re-publish that entire folder for every content item and choking on multiple republish executes. i dont think that ootb portlet was meant to cover a use case of multiple content item inserts so quickly. by definition newsworth stuff should not happen to need bulk inserts. is there another way to insert all of the items using publisher admin and then do one publish for all?
    i know in past migration efforts when i've written utilities to migrate from legacy to publisher the inserts and saves for each item took a couple of seconds each. the publishing was done at the end and took quite a long time.

  • Publisher 6.4 to 6.5 - unable to check out content items

    Hello,
    We upgraded from publisher 6.4 to 6.5 and now are having issues with existing content.
    When trying to check out a content item - the browser hangs - checking task manager IE is hung but continually grabbing memory.
    Eventually it comes back as a Windows Internet Explorer error - Out of Memory at line 21 - then it just ignore any other clicks to the 'Check Out' link.
    Previous to this I got an error that said
    "Stop running script?
    A script on this page is causing Internet Explorer to run slowly.
    If it continues to run, your computer may become unresponsive."
    So I did this http://support.microsoft.com/kb/175500
    But now I get the out of memory error.
    I cannot even check out the content item to see what the issue is. It is not all content items just this one. Trying to find a way to edit it...
    Suggestions? Any thoughts?
    Thanks,
    V

    Did you check the publisher log files? Logs should be located here ptcs\6.5\logs
    you could also try increasing the amount of memory publisher uses by changing the min/max settings in this file.. ptcs\6.5\settings\config\service.conf
    After you change the memory settings you may need to uninstall and reinstall the publisher service using the ptcs\6.5\bin\service.bat -remove and -intall....
    Hope that helps.

  • ALUI Publisher 6.4 - deleting of content items after expiry date

    Hi, We have a requirement to delete content items from Publisher after the expiry dates. Is there a process to do this within ALUI Publisher 6.4? Appreciate any suggestions or thoughts. Thanks.

    I work with publisher for a long time now, and I don’t think that there is an automatic process that dose that, you have to manually delete it when it is expired.
    -Lilach

  • How to configure CSWP on Category page to show the Published Catalog-item page on Publishing site in a Cross Site Publishing scenario?

    I have created a Cross Site Publishing Environment in SharePoint Online. After connected
    to my catalog. 2 pages automatically created. But in "Category" page, if i click on an item it will bring me to the original path/item located in Authoring site. How to configure Content Search Web Part on Category page to show the Published Catalog-item
    page on Publishing site?
    Can we do this by changing the property mappings?

    Hi,
    According to my understanding, you want users to be redirected to pages in the current site instead of the source page of the search results in a Content Search Web
    Part.
    By default, the hyperlinks of the search results in a Content Search Web Part will point to the source page where the data comes from, when the hyperlink of each result
    is clicked, user will be redirected to the corresponding source page.
    If the data comes from other sites, what page do you want to display when user clicks a search result in the Content Search Web Part?
    Property Mappings can help to control the content of each part of a display template, however, there seems no such property in the search result can help to redirect
    to the pages of the current site, thus, it might not be able to meet your requirement.
    More information about customizing the Content Search Web Part:
    https://www.martinhatch.com/2013/02/customising-cbswp-part1.html
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Publisher Content to the Knowledge Directory

    Hello,
    I want to publish a single portlets published content to the knowledge directory. Let's call the portlet 'Policy Info'
    So I created a publisher crawler. Unfortunately, it would not let me drill down to the exact portlet. I only gave me a choice at the root level of all the portlets. (I don't want all publisher portlet content item to show up in the KD).
    I tried to create a filter that would grab only info from that specific portlet. But the filter does not have a property to specify the portlet name. I can create a filter on each content item, but that means adding or deleting a filter every change.
    Any ideas how to get the published content from 1 specific folder into the KD?
    Thanks,
    V
    Computers are like Old Testament gods; lots of rules and no mercy. ~Joseph Campbell

    Vivek,
    It should allow you to do so. You can drill down to the exact portlet folder and configure that folder in the Publisher Crawler.
    Note: All root level folders are Hyperlinks, when displayed while creating a publisher crawler. Click on the root folder and navigate to your portlet folder.
    Thanks,
    Bharat
    Bharat Karthik
    [email protected]
    http://www.eminenttech.com/

  • Opening Publisher Content Inline (inline refresh)

    Hey all!
    All of our publisher portlets open content items in a new window.
    Instead, I'd like to experiment with opening them within the existing window.
    I know that Web Service objects have a "Use Hosted Display Mode on Gateway Pages" option which will load content in essentially a 1 column layout portal page but I don't like the idea that the only way to navigate back is with the main header navigation.
    Is there any other way you could recommend to easily provide a "back" feature to the users? My concern is if a user was on page 3 of a community, opened a content item (which essentially overwrites the page) and now they have to navigate back to the community, and then to the page.
    Is it possible to load the content directly within the portlet itself? How would that be done?
    How do you load content at your company?
    a) in a popup?
    b) using the hosted display mode
    c) within the portlet
    Any opinions on which works best from an end user perspective?
    Thanks

    Yes, but its harder than you would hope. There are a few options:
    The easiest one is using "hosted display mode". Basically the portal just injects the portal header on top of your news article. Downsides are that you are no longer in the same community, and other portlets cannot be displayed alongside the news portlet.
    Another method that is actually quite common is to append a parameter to the portal url, which is read by a portlet on another page in the community. So, for example, the user clicks on a link and gets taken to &open=514&objID=12345&mode=2&newsArticleID=54321. On page 12345, there will be a portlet that looks for newsArticleID=54321 and shows that. Unfortunately to accomplish this people use a modified version of the pt:standard.openerlink (i'm sure there are other ways too) which i'm not sure is publicly available.
    If you feel this is the route you need to take maybe someone can provide you with the tag.
    Probably a third way would be to set the current news article via session pref or something, but then you can't bookmark it.

Maybe you are looking for

  • Re: BATTERY ISSUE

    Hi, i am new to forum so excuse me if I'm in the wrong place. My iPad 4 has done the new 7.1 update and the battery life is only half what it was. I see lots are saying the phones have the problem but not so many talking about iPads. Mine is so bad t

  • Inbox Rules in OWA 2010

    Hi, When accessing OWA, the Inbox Rules tab is not present under Organize Mail or Options. Can anyone explain why? Thanks

  • Cannot import RAW from Canon Powershot S50

    Hello, I am trying to import RAW files from a Canon S50 and I get a message stating that the files are unreadable. I can open them in Photoshop if I move them from the microdrive to the system. Any ideas. Erik

  • JPCSC and Omnikey Cardman 5x31

    Hi There, I am using the JPCSC with an Omnicard Cardman 5x31 and trying to communicate with a Mifare 1k card. I just tried the code that comes with the package and tried the following code, private static String cardDomainAIDString = "A0000000030000"

  • Cant save the skills profiel in ESS

    we have ess mss 1.0 sp10 in our EP 7.0. If we log in to ESS and try saving the new skill addedd then the portal is throwing up an error. com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException: Screen output without connection to user.