Hi,
Couldn't changing the skin/look and feel of a page be done from a menu pull
down/ selection to make that functionality more accessible to non-coders?
Regards,
Richard
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]On Behalf
Of Sergiu Dumitriu
Sent: 15 March 2008 05:59
To: XWiki Users
Subject: Re: [xwiki-users] changing some layout details in a single page
[Ricardo Rodriguez] Your EPEC Network ICT Team wrote:
> Guillaume Lerouge wrote:
>> What you can do is to append ?skin= at the end of your page name to
>> force it to use that given skin, for instance :
>>
>> mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross
>> <http://mywiki.com/xwiki/bin/view/Main/WebHome?skin=albatross> (or
toucan)
>>
>> Then you can add this code to your selected pages (it's not clean but
>> it will work) :
>>
>> #if(!$request.skin || $request.skin && $request.skin != 'myskin')
>>
>> #set($skin = '?skin=myskin')
>>
>> #set($url = $xwiki.getURL($doc.fullName))
>>
>> #set($pageurl = $url + $skin)
>>
>> $response.sendRedirect($pageurl)
>>
>> #end
A shorter code:
#if("$!request.skin" != "myskin")
$response.sendRedirect($doc.getURL("view", "skin=myskin")
#end
>
> Oh! How powerful is this stuff! The "only" problem is to know how to use
> all the resources this framework provides us.
>
> Don't you think this must go to Code Snippets?
>
> Thank you so much,
>
> Ricardo
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail
is confidential. It may also be legally privileged. It is intended only for
the stated addressee(s) and access to it by any other person is
unauthorised. If you are not an addressee, you must not disclose, copy,
circulate or in any other way use or rely on the information contained in
this e-mail. Such unauthorised use may be unlawful. We may monitor all
e-mail communications through our networks. If you have received this e-mail
in error, please inform us immediately on +44 (0) 1749 672081 and delete it
and all copies from your system. We accept no responsibility for changes to
any e-mail which occur after it has been sent. Attachments to this e-mail
may contain software viruses which could damage your system. We therefore
recommend you virus-check all attachments before opening. A business of
Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business
Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No.
868273
The XWiki development team is pleased to announce the release of XWiki
Workspaces Milestone 1,
Go grab it at http://www.xwiki.org/xwiki/bin/view/Main/Download
XWiki Workspaces is a new product focusing on easy collaboration through
workspaces and their applications : Wiki, Blog, Photo Galleries and Files
sharing. This first milestone implements the initial feature set of
Workspaces, you can find more about it on http://workspaces.xwiki.org
For more information about this release, including links to installation
instructions and to Workspaces JIRA project, read the releases notes at
http://www.xwiki.org/xwiki/bin/view/Main/ReleaseNotesWorkspaces10M1
Thanks,
-The XWiki dev team
Using Xwiki Enterprise 1.3 I defined this in my wiki page
{rss:feed=http://www.reybango.com/rss.cfm|full=true|count=3}
In my wiki page I get
rss: Error processing http://www.reybango.com/rss.cfm: www.reybango.com
I think this is because xwiki is behind a firewall and I need to specify a
proxy but I don't know where I would specify my proxy server. Seems like I
will have the same problem with Swizzle Plugin since my Jira isn't behind
the firewall with xwiki. Any ideas?
Any help would be greatly appreciated. - Glenn Everitt
In my log file I get this
2008-03-15 20:44:12,174
[http://coe.portal8.stg.covisint.com/xwiki/bin/view/Development/Reference]
[TP-Processor8] WARN filter.MacroFilter - MacroFilter: unable
to format macro: rss
java.io.IOException: Error processing http://www.reybango.com/rss.cfm:
www.reybango.com
at com.xpn.xwiki.render.macro.rss.RSSMacro.execute(RSSMacro.java:101)
at com.xpn.xwiki.render.filter.MacroFilter.handleMatch(MacroFilter.java:90)
at
org.radeox.filter.regex.RegexTokenFilter$1.handleMatch(RegexTokenFilter.java:91)
at org.radeox.regex.JdkMatcher.substitute(JdkMatcher.java:48)
at
org.radeox.filter.regex.RegexTokenFilter.filter(RegexTokenFilter.java:89)
at org.radeox.filter.FilterPipe.filter(FilterPipe.java:169)
at
com.xpn.xwiki.render.XWikiRadeoxRenderEngine.render(XWikiRadeoxRenderEngine.java:92)
at
com.xpn.xwiki.render.XWikiRadeoxRenderer.render(XWikiRadeoxRenderer.java:118)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:252)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:176)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:145)
at
com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:134)
at
com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:418)
at com.xpn.xwiki.api.Document.getRenderedContent(Document.java:371)
at sun.reflect.GeneratedMethodAccessor254.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
.
.
.snip
--
View this message in context: http://www.nabble.com/Xwiki-RSS-macro-problem---newbie-mistake--tp16072389p…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi everybody!
I see a problem with prototype 1.5. I use TableKit in XWiki which was
written by prototype 1.5. When I run, it display error message: "Stack
Overflow".
Please help me!
KhanhVk.
Hi,
Please, allow me to repost this question as a new thread although it is already posted deep in a previous one.
I see updateName() extensively used in XWiki to remove spaces and "forbidden characters" from document titles.
I was wondering if this XWiki helper javascript method could be used to remove spaces from
any other string. If it is possible, please, could anybody post an example of how to use it?
Thank you.
Best regards,
Ricardo
--
Ricardo Rodríguez
Your EPEC Network ICT Team
Thanks Glenn,
I *think* I did that - any idea how I could test it? Is there some sort of
status / troubleshooting page for XWiki, where I can see what's working and
what's not?
From: Glenn Everitt <Glenn.Everitt(a)compuware.com>
> Subject: Re: [xwiki-users] installation problems
>
> You also have to manually create the xwiki user in MySql. Don't forget to
> give the user all required permissions. - Glenn Everitt
___________________________
Yishay Mor, Researcher, London Knowledge Lab
http://www.lkl.ac.uk/people/mor.htmlhttp://yishaym.wordpress.comhttps://www.linkedin.com/in/yishaymorhttp://www.google.com/calendar/embed?src=yishaym%40gmail.com
+44-20-78378888 x5737
I searched XWiki.org and found some proposals related Google
Gadgets support but no volunteers.
I believe XWiki would benefit greatly in support for Google Gadgets/Open
Social. If anybody else agrees perhaps we can collaborate.
I also saw that in one of the proposals it was mentioned to leverage the
Widget API, but looking through the API documentation I didn't find anything
called the Widget API, so a little guidance there would be appreciated.
Now I was able to put a Sprout onto an XWiki page with no trouble, so I
would guess GUG/OpenSocial isn't going to be difficult.
Ollie
Thanks Ricardo,
My server's 8080 is behind a firewall, but I can see it and have no problem
running other JSP / servlets.
thanks for reminding me about hibernate.cfg.xml
I also realized that I hadn't installed a MySql driver in WB-INF.
However, even though I fixed these two issues, I'm still getting a blank
page.
Also, I wasn't sure with settings to use in hibernate:
<!-- settings commented out in original file -->
<property name="connection.url
">jdbc:mysql://localhost/xwiki?useServerPrepStmts=false&sessionVariables=sql_mode=''</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver
</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.provider_class">
com.xpn.xwiki.store.DBCPConnectionProvider</property>
<property name="connection.pool_size">2</property>
<property name="statement_cache.size">2</property>
<mapping resource="xwiki.hbm.xml"/>
<mapping resource="feeds.hbm.xml"/>
<!-- instructions from
http://platform.xwiki.org/xwiki/bin/view/AdminGuide/InstallationMySQL -->
<property name="connection.url">jdbc:mysql://localhost/xwiki</property>
<property name="connection.username">xwiki</property>
<property name="connection.password">xwiki</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver
</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
Date: Wed, 12 Mar 2008 01:29:07 +0100
> From: "[Ricardo Rodriguez] Your EPEC Network ICT Team"
> <webmaster(a)environmentalchange.net>
> Subject: Re: [xwiki-users] installation problems
> To: XWiki Users <users(a)xwiki.org>
> Message-ID: <47D723D3.5070304(a)environmentalchange.net>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi, Yishay,
>
> Yishay Mor wrote:
> > Hi all,
> >
> > I'm trying to install xwiki 1.3 on a Mac XSERVE Leopard (osx 1.5)
> > server, and I'm not getting very far.
> >
> > I downloaded the war, opened http://localhost:8080/manager/html, and
> > deployed.
> > My manager shows XWiki up and running.
> > I click http://localhost:8080/xwiki and get redirected to
> > http://localhost:8080/xwiki/bin/view/Main/WebHome
> > and then I get a blank page.
> > same for http://localhost:8080/xwiki/bin/admin/XWiki/XWikiPreferences
>
> Just to be sure, have you edited your hibernate.cfg.xml? It is a bit
> strange that you get a blank page instead of an error, but...
>
> Another doubt, does XServe Leopard has a firewall? Is port 8080
> accessible?
>
> My 2 c.,
>
> Ricardo
>
> --
> Ricardo Rodr?guez
> Your EPEC Network ICT Team
>
>
___________________________
Yishay Mor, Researcher, London Knowledge Lab
http://www.lkl.ac.uk/people/mor.htmlhttp://yishaym.wordpress.comhttps://www.linkedin.com/in/yishaymorhttp://www.google.com/calendar/embed?src=yishaym%40gmail.com
+44-20-78378888 x5737
Hi all,
I would like to set a given panel with a different background. Let's
say, white, instead of the default #384554 in Albatross skin.
I read in macros.vm panels' entries...
## Note: We pass the Panel name as an HTML class attribute so that it's
possible to style
## the Panels selectively using CSS.
Does this means that it is possible to change the background on a per
panel basis by using CSS?
In any case, I've tried to create a new macro assigning a different
background color. This way...
#macro(panelhiddenheaderwhitebackg $title)
#set ($specialClassAttribute = "")
#if ($paneldoc && $paneldoc != "")
#set ($specialClassAttribute =
$util.convertToAlphaNumeric($paneldoc.name))
#end
<div class="panel expanded $specialClassAttribute">
<h5 class="xwikipaneltitle hidden"
onclick="togglePanelVisibility(this.parentNode);">$title</h5>
<div class="xwikipanelcontentswhitebackg">
#end
Class for the div holding the content is set to
xwikipanelcontentswhitebackg. I've created this class in
colorsblack.css, imported by style.css, but there is no background shown
for this panel. Using Firefox/Inspector, I can not see colorsblack.css
referenced when inspecting this element.
Please, is it possible to do this? Where am I wrong?
Thank you so much,
Ricardo
--
Ricardo Rodríguez
Your EPEC Network ICT Team