Would be a nice feature, if its not possible yet,
I know, I go and make Jira
issues :-)
Thanx,
Wouter
On Fri, Sep 23, 2011 at 2:44 PM, Vincent Massol<vincent(a)massol.net> wrote:
On Sep 23, 2011, at 2:40 PM, Vincent Massol
wrote:
Hi Wouter,
On Sep 23, 2011, at 2:21 PM, Wouter de Vos wrote:
> Hi all,
>
> While gathering information on the simplify my wiki subject, I stumbled
upon
> the RSS makro and tried it out, works great.
> But is there a way to have the RSS Links that the RSS Makro displays
open in
> a new window?
>
> I know there are discussions on the sensibility of opening links in a
new
> window, but in this project I will have to do
so.
>
> I tried putting rel="blank" in somewhere, but nothing worked.
> I tried putting a java class objekt in, but I guess since the rss feed
is in
> a makro, this did not work either.
>
> Is it possible, and if yes, how?
Right now this feature is not part of the RSS macro. It could be
interesting to
add it though.
Now we could imagine some workaround but they
require a bit of work.
Basically:
* create a wiki macro with the same name
"rss"
* In the content of this wiki macro, use Groovy to lookup the original
rss macro,
execute it, then get its XDOM and find all LinkBlocks, then add
rel="blank" in those blocks.
It's only about 6-7 lines of groovy script in
total but it may be easy or
hard depending on your current knowledge of xwiki
components/rendering.
Actually a slightly cleaner version is simply to write a Transformation
(since this is what it's for! :)). So you don't need to overwrite the wiki
macro. All you need is to add a new Transformation.
Thanks
-Vincent
PS to self: we really need to add wiki components since adding a
transformation is a nice use case for it.
Otherwise you could create a jira issue to
request this feature.
Thanks
-Vincent
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org