Hi
What I am trying to do is to dynamically generate a list of articles. The 
title and abstract of each article should be shown. The title of the article 
is also a link to the full article (story). Normally, this is not difficult 
to handle, for example the news example application shows you how to 
accomplish this. However, my articles are static html pages that I need to 
link to. These static articles are generated from mmbase. In mmbase each 
article has an url associated to it (it represent the physical (static) 
location of the article). I need to dynamically create those links. Below is 
an example of what I am talking about.

<a href="....">title</a>
abstract

<a href="...">title</a>
abstract

<a href="...">title</a>
abstract


I guess what I am trying to say is how do I dynamically (using taglibs) pull 
the corresponding url of each article from mmbase and use it as an hyperlink 
to the article full story.

I hope this make sense,

Curtney


On Saturday 31 July 2004 10:28 am, Kees Jongenburger wrote:
> Hi
>
> MMBase as-is encourages the reuse of content. a news item might be used
> in different context (pages), therefore it is usualy not possible for
> mmbase to generate links to other internal content. to solve this
> problem different aproaches are followed. for every content type you can
> create a generic page
> /generic/news.jsp
> /generic/images.jsp
> so that it's possible to link to other pages. In that case the url
> object is not used but a news item is "related" to an other news item.
> If you want the layout of the news item to be different sometimes you
> might want to try and use tree/leafparts
> http://www.mmbase.org/docs/reference/taglib/treeinclude.jsp
>
> if you modeld the navigation in mmbase you can get the url of a item by
> following it's relation to the navigation
>
> newsitem->related->newsitem->navigation  |
>   ----navigation
>
> for the vpro I created a dynamic sitetree that helps to map content to
> url and vire-versa.
>
> What are you trying to do? it sounds like a lot of advenced features!
>
>       -----Oorspronkelijk bericht-----
>       Van: Curtney Jacobs [mailto:[EMAIL PROTECTED]
>       Verzonden: za 2004-07-31 5:12
>       Aan: [EMAIL PROTECTED]
>       CC:
>       Onderwerp: Using a URL object in construction of a link
>
>
>
>       Greetings!!
>
>
>       I have a few urls that are associated with a news items. How I
> do use those
>       urls in a construction of a link. For example, having a news
> headline be
>       linkable. <a href="">headline</a>. I know RichText support
> something like
>       this, which I am using. However, is there a general way to do
> this?
>
>       _Curtney


Reply via email to