On 23/11/2009 01:59, "Matteo Pelucco" <[email protected]> wrote: This is what I would do:
1) Extend the tree displayed by the internal link button, adding search capabilities I modified configuration:/modules/adminInterface/pages/linkBrowser to a custom class that exposes the search feature. The search displays a List page from which I am able to select the desired node. 2) Leave the link to that node and "wrap" it by a virtual uri mapping (a regex v.u.m.) that redirect to a JSP page passing in the url the path of the node (or the UUID), like this: - link is: /data/your/bookshelf/your-book - virtual uri mapping looks for that links and redirect to: /your/path/your-page.jsp?book=/data/your/bookshelf/your-book I have not been able to get this part to work. Where should I add the virtualURIMapping? I added it to our books module as: config:/modules/books/virtualURIMapping/book/class = info.magnolia.cms.beans.config.RegexpVirtualURIMapping config:/modules/books/virtualURIMapping/book/fromURI = /ucp/books/book/[A-z0-9]+/(bo[0-9]+)$ config:/modules/books/virtualURIMapping/book/toURI = redirect:/books/book.html?bookId=$1 The book nodes are stored under /ucp/books/book/A, /ucp/books/book/B/ etc parent nodes, and all the nodes are prefixed with bo followed by the RDBMS primary key value. The /books/book.html is a simple page in the website built using a JSP template (should I point directly to the JSP template instead of the book?). I edited a book, and added a link to another book. The link appears in FCK editor as ucp/books/book/A/bo5437490.html. The actual URL for the link shows up as just that (http://localhost:8080/ucp/books/book/A/bo5437490.html). How to get this to actually point to something like http://contextPath/<path>? I assume this is the primary reason why my virtual URI mapping has not kicked in for this. Thanks Rakesh ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
