Zitat von Henri Kaukola <[EMAIL PROTECTED]>:

Hi,

I put it together in a quite dirty way:
- added a parameter HardLink to a topic; name = "Link Text", value = URL
- added the following to navi-dynamic just behind the output of
  the subnodes:

            $topic=mgd_get_topic($subnode[MIDCOM_NAV_ID]);
            if($topic) {
              $topic_links=$topic->listparameters("HardLink");
              if($topic_links) {
                while($topic_links->fetch()) {
                  ?>
                    <div class="nnbe" style="padding-left: &
(padding_left);;"><a href="&(topic_links.value);" class="nnbr">&
(topic_links.name);</a></div>
                  <?php
                }
              }
            }

Now I get my link button behind the topic the parameter is attached to.
Thats what I needed...

thanks
/ingo

> Hello Ingo,
> 
> Ingo Herz wrote:
> 
> > At 18:59 22.04.2004 +0300, you wrote:
> > 
> > Hello Henri,
> > 
> >> What do you mean with "an item"? Hard-coded link or something else?
> >> Would you need several of these items and possibly different
> >> items in different sections of the site? What about sorting -
> >> would you need to be able to drop this item into middle of
> >> a dynamic listing?
> >>
> >> One of our clients uses "hard-coded" parameters in articles
> >> to create cross-linking inside their site and to provide
> >> external materials for the users. In their case, the "parameter links"
> >> are listed beneath the regular (dynamic) navigation.
> > 
> > 
> > in the moment there is no need for a "link collection". There should be
> > only a hard-coded link to an external site and some internal cross-side
> > links. Is such a feature via topic parameters already implemented in the
> > navigation code?
> 
> Unfortunately you have to implement it yourself.
> 
> It shouldn't be too hard though, just get the real
> current article object and $article->listparameter('hardlink');
> or something...
> 
> See MidCOM template's <(navi-dynamic)> for starters -
> that's the place where our client has it.
> 
> Cheers!
> 
>    //Henri
> 
> > thanks,
> > /ingo
> > 
> > 
> >> [EMAIL PROTECTED] wrote:
> >>
> >>> Hello,
> >>> subject says it all ;-) Do I need a new component or can it be done
> >>> in another way? I simply have to integrate an item into the navigation
> >>> which opens a link.
> > 
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to