You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Sang Hyo Lee <sh...@uni-bremen.de> on 2008/03/06 14:24:26 UTC
How to limit link length in Referred Pages Plugin
Hello,
I am relatively new in using JSPWiki. I am using the Referred Pages
Plugin to create dynamic menus in the left menu. My problem is that I
don't know how to limit the length of the links. E. g. I want that the
plugin cuts off all letters after the 10th character. On the Plugin wiki
page there is following suggestion:
The whole output of the plugin is enclosed in a <div
class='ReferredPagesPlugin
<http://www.jspwiki.org/wiki/ReferredPagesPlugin>'> tag, so you can do
any special formatting you want via the jspwiki.css.
Can anybody write me an example what I have to write into the css file,
so I can limit the length of a link to 15 characters?
Thanks in advance!
Best regards,
Sang Hyo Lee.
Re: How to limit link length in Referred Pages Plugin
Posted by Harry Metske <ha...@gmail.com>.
The only option I see is an additional new parameter (maxwidth) on the
ReferredPagesPlugin.
Then you would get something like this:
http://www.computerhok.nl/JSPWiki/Wiki.jsp?page=RefTest
If this is what you want, please enter a JIRA issue, and I'll provide a
patch .
regards,
Harry
2008/3/6, Sang Hyo Lee <sh...@uni-bremen.de>:
>
> Hello,
>
> I am relatively new in using JSPWiki. I am using the Referred Pages
> Plugin to create dynamic menus in the left menu. My problem is that I
> don't know how to limit the length of the links. E. g. I want that the
> plugin cuts off all letters after the 10th character. On the Plugin wiki
> page there is following suggestion:
>
> The whole output of the plugin is enclosed in a <div
> class='ReferredPagesPlugin
> <http://www.jspwiki.org/wiki/ReferredPagesPlugin>'> tag, so you can do
> any special formatting you want via the jspwiki.css.
>
> Can anybody write me an example what I have to write into the css file,
> so I can limit the length of a link to 15 characters?
>
> Thanks in advance!
>
> Best regards,
>
>
> Sang Hyo Lee.
>
>
--
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081
Re: How to limit link length in Referred Pages Plugin
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
D'oh! I need to work on my reading skillz, I see :)
/Janne
On 6 Mar 2008, at 20:54, Harry Metske wrote:
> I think that Sang Hyo Lee means the ReferredPagesPlugin, not the
> ReferringPagesPlugin.
> The ReferredPagesPlugin is not a subclass of AbstractReferralPlugin
> (yet),
> so no maxwidth....
>
> I was just working on that ...............
>
> Harry
>
> 2008/3/6, Janne Jalkanen <Ja...@ecyrd.com>:
>>
>>
>> Add the maxwidth parameter to the plugin. E.g.
>>
>> [{ReferringPagesPlugin maxwidth=15}]
>>
>>
>> /Janne
>>
>>
>> On 6 Mar 2008, at 15:24, Sang Hyo Lee wrote:
>>
>>> Hello,
>>>
>>> I am relatively new in using JSPWiki. I am using the Referred Pages
>>> Plugin to create dynamic menus in the left menu. My problem is that
>>> I don't know how to limit the length of the links. E. g. I want
>>> that the plugin cuts off all letters after the 10th character. On
>>> the Plugin wiki page there is following suggestion:
>>>
>>> The whole output of the plugin is enclosed in a <div
>>> class='ReferredPagesPlugin <http://www.jspwiki.org/wiki/
>>> ReferredPagesPlugin>'> tag, so you can do any special formatting
>>> you want via the jspwiki.css.
>>>
>>> Can anybody write me an example what I have to write into the css
>>> file, so I can limit the length of a link to 15 characters?
>>>
>>> Thanks in advance!
>>>
>>> Best regards,
>>>
>>> Sang Hyo Lee.
>>
>>
>
>
> --
> met vriendelijke groet,
> Harry Metske
> Telnr. +31-548-512395
> Mobile +31-6-51898081
Re: How to limit link length in Referred Pages Plugin
Posted by Harry Metske <ha...@gmail.com>.
I think that Sang Hyo Lee means the ReferredPagesPlugin, not the
ReferringPagesPlugin.
The ReferredPagesPlugin is not a subclass of AbstractReferralPlugin (yet),
so no maxwidth....
I was just working on that ...............
Harry
2008/3/6, Janne Jalkanen <Ja...@ecyrd.com>:
>
>
> Add the maxwidth parameter to the plugin. E.g.
>
> [{ReferringPagesPlugin maxwidth=15}]
>
>
> /Janne
>
>
> On 6 Mar 2008, at 15:24, Sang Hyo Lee wrote:
>
> > Hello,
> >
> > I am relatively new in using JSPWiki. I am using the Referred Pages
> > Plugin to create dynamic menus in the left menu. My problem is that
> > I don't know how to limit the length of the links. E. g. I want
> > that the plugin cuts off all letters after the 10th character. On
> > the Plugin wiki page there is following suggestion:
> >
> > The whole output of the plugin is enclosed in a <div
> > class='ReferredPagesPlugin <http://www.jspwiki.org/wiki/
> > ReferredPagesPlugin>'> tag, so you can do any special formatting
> > you want via the jspwiki.css.
> >
> > Can anybody write me an example what I have to write into the css
> > file, so I can limit the length of a link to 15 characters?
> >
> > Thanks in advance!
> >
> > Best regards,
> >
> > Sang Hyo Lee.
>
>
--
met vriendelijke groet,
Harry Metske
Telnr. +31-548-512395
Mobile +31-6-51898081
Re: How to limit link length in Referred Pages Plugin
Posted by Janne Jalkanen <Ja...@ecyrd.com>.
Add the maxwidth parameter to the plugin. E.g.
[{ReferringPagesPlugin maxwidth=15}]
/Janne
On 6 Mar 2008, at 15:24, Sang Hyo Lee wrote:
> Hello,
>
> I am relatively new in using JSPWiki. I am using the Referred Pages
> Plugin to create dynamic menus in the left menu. My problem is that
> I don't know how to limit the length of the links. E. g. I want
> that the plugin cuts off all letters after the 10th character. On
> the Plugin wiki page there is following suggestion:
>
> The whole output of the plugin is enclosed in a <div
> class='ReferredPagesPlugin <http://www.jspwiki.org/wiki/
> ReferredPagesPlugin>'> tag, so you can do any special formatting
> you want via the jspwiki.css.
>
> Can anybody write me an example what I have to write into the css
> file, so I can limit the length of a link to 15 characters?
>
> Thanks in advance!
>
> Best regards,
>
> Sang Hyo Lee.