cancel
Showing results for 
Search instead for 
Did you mean: 

Change item properties for display

machtech
Champ in-the-making
Champ in-the-making
Hi all,

I posted something the other day which got a bunch of views, but no responses, so I thought I would simplify the questions and separate them in the hope that someone can help me this time round.

The situation is:
- I have items in a folder, whose names contain a hash to prevent DuplicateChildNodeExceptions on import
- I don't want the user to see the hash

Example:
- I import an item called "Item 1 - 987123afee929832ddfe290832fed" and I only want the user to see "Item 1" in the list

I have tried:
- Inbound rule on the folder to change the name on the way in - this of course results in a duplicate child after the setProperties call in the Action's code and exceptions
- Creating a new JavaFaces Converter and applying to the properties screen, but of course this only helps me in the properties view, and not in the browse listing

How can I change the properties of an item "on the fly" for display to the user?

Any help would be very much appreciated.

Regards,
Johan
1 REPLY 1

zaizi
Champ in-the-making
Champ in-the-making
You can modify the JSP page to display only the first bit in the UI.

But if you have multiple "Item 1" in the UI how would the user know which folder they should be looking at?