Hi all,
could someone please help me to find a way to script the creation of new
wiki pages from data/text saved in html files?
I’m trying to (semi)automatically organize and upload data to new wiki
pages, i.e. analyze and plot data with an external program, sve the
information (including page name, etc.) in a html file, and then have some
sort of script take the html file – or objects from it – and create a wiki
page. It doesn’t have to be fully automatic and include a scheduled service
or similar, a script that I can run every day would be fine.
I did look for hints but I guess I’m too much of a beginner to piece
everything together. I found
http://extensions.xwiki.org/xwiki/bin/view/Extension/Create+Page+With+Object
which tells me that I can script a page creation.
Now my naïve question is: Where do I script this? I am not familiar with
Velocity (Python is my only scripting language), but willing to learn. From
what I could see in tutorials like
http://platform.xwiki.org/xwiki/bin/view/DevGuide/XWikiVelocityTraining I
put the velocity text in a wiki page (as opposed to run it in a terminal or
via some application outside of the wiki pages?
Does that mean I create a ‘control’ page with a script that’ll grab data and
creates new pages? I f so, it would be great if someone can point me to an
example.
Thank you
Sebastian
--
View this message in context: http://xwiki.475771.n2.nabble.com/How-to-programmatically-create-pages-from…
Sent from the XWiki- Users mailing list archive at Nabble.com.
I am currently trying to Filter my userlist
#set($users = $xwiki.rightsmanager.usersApi.allUsers)
#foreach($user in $users)
#if(($xwiki.getUser($user).isUserInGroup("XWiki.GroupName"))&& $xwiki.getUser($user).position !="StringExample")
{{section justify="true"}}
It should show me all users except of those with String I defined in if within position section.
sadly the second part of IF is being ignored. Users with String are still shown.
Thanks =)
Oli
I found a nice way to translate $language into pretty language name in the translation desired.
{{velocity}}
#displayLanguagePrettyName("it")
#macro(displayLanguagePrettyName $language)#set($languageLocale = $services.localization.toLocale("it"))$stringtool.capitalize($languageLocale.getDisplayName("nl"))#end
{{/velocity}}
So changing the 'nl' to 'pt' (portugese) it will do
Italiaans (dutch) -> Italiano (portugese)
Ca the same be done for country?
Italië (dutch) -> Itália (Portuguse)
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Hello XWiki users and devs,
The current xwiki.org blog [1] contains mostly release notes announcements,
Bug Fixing Days results and some occasional events that XWiki has taken
part of.
We would like to pump some life into it by encouraging community members to
post articles and news related to the XWiki ecosystem so that everybody can
have a better view of what`s going on.
It can be anything XWiki-related:
* a tutorial / how-to,
* a feature presentation,
* an event where XWiki was presented,
* an extension that you have worked on and published on extensions.xwiki.org
,
* tips and tricks on how to boost productivity with XWIki,
* a real-life problem that was fixed with XWiki,
* news about some public/government agency or even high-profile private
company adopting XWiki,
* etc.
Also, you don`t necessarily have to be a technical person to show your love
for XWiki :)
Anyone interested would have to do it as an individual, member of the
community, using their xwiki.org account. We do not care what company you
are from, as long as your article has content that is interesting/valuable
for the XWiki community.
You should obviously avoid writing SPAM articles, promoting irrelevant
products and generally off-topic stuff.
Here is how to do it in a few easy steps:
1. Log in with your xwiki.org account and go to the Blog Drafts [2] section
2. Create a new sub-page there (use the + button) and write your article.
Don`t forget to save!
3. Contact an XWiki committer either by mail (users or devs list) or by IRC
[3], give them the link to your draft and ask them for a review it.
4. If the review is successful, the article gets moved to the main Blog [1]
and published.
You could view it as a sort of "Pull Request", but for blog articles :)
Note: We also accept cross-posting! You can also share an article on XWiki
that you have written on some other blogging platform. You can post it
entirely or just do a quick summary about it and link to its original
location.
We hope to see some interesting articles and to increase visibility on what
people are achieving with XWiki!
Thanks,
Eduard
----------
[1] http://www.xwiki.org/xwiki/bin/view/Blog/
[2] http://www.xwiki.org/xwiki/bin/view/Blog/Drafts
[2] http://dev.xwiki.org/xwiki/bin/view/Community/IRC
Hello:
I have an app within minutes that is a collection of procedures. I want the
procedures to display differently than the rest of the wiki, specifically I
want to override the title of the pages. So each page is named with a number
like "QP-001"; there is also a field in the class called "title", which is
the actual title of the procedure. By keeping the page name separate from
the title, I can allow the user to change the title without changing the
procedure number (which once created should never change). So What I want to
do is combine the page name and title into one and display it as the page
name, like "QP-001 Procedure of all things".
How do I override the skin for any page that is displayed with the Class
Sheet? is there a worked out example somewhere? I've been reading the wiki
pages on overriding the skin, but I'm not sure how to apply it to my need.
Dan
--
View this message in context: http://xwiki.475771.n2.nabble.com/Overriding-skin-for-a-class-sheet-tp75994…
Sent from the XWiki- Users mailing list archive at Nabble.com.
Using the 'rename' feature, I moved a page from one location from under Home
to under a different page. However, I learned about the tagging feature
after that and thought it would be better to use that. So, I wanted to move
the page back to under Home, but I get the error "Error: A page with the
given name (name of my page.WebHome) already exists. Please provide a
different name". When I try to visit the page under Home, I'm redirected to
the Home page rather than shown a screen for creating a new page (what
usually happens when I try to visit a page that shouldn't exist). How do I
move the page back to under Home?
--
View this message in context: http://xwiki.475771.n2.nabble.com/Moving-a-page-back-tp7599407.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
I think I've made a mistake on my wiki. Since I don't have much content yet, I'd like to delete my wiki and start a new one. However, there are some pages that seem to not exist, yet exist in the sense that they don't show up on any list, but redirect me to the home page when I access them rather than present me with a screen for making a new page, so I can't make new pages under their name. What would be the easiest way to restore my wiki to the state it was in when I first installed XWiki?
Hi
I'm struggling to understand the relationship between the code generated by App-With-Minutes for the Sheet and the Generated translation files; Especially if I want to rename application, page, class) (or copy it to another wiki)
#set ($discard = $services.localization.use('document', 'WaihonaCode.qbgTranslations'))
(% class="xform" %)
(((
; <label for="WaihonaCode.qbgClass_0_date1">$escapetool.xml($doc.displayPrettyName('date1', false, false))</label>
: $doc.display('date1')
...
)))
The space WaihonaCode is where class, sheet and template are located
'date1' is the class attribute we need a translated text
This is what is generated in the translation file:
# Class fields
WaihonaCode.qbgClass_date1=Date
Since we do not see any $services.localization.render("date1") i'm uncertain how the key is created? (what logic is applied?)
Why is there: $escapetool.xml($doc.displayPrettyName('date1', false, false))?
Why escape tool?
what is the function of the method displayPrettyName('date1', false, false))?
Is there any client side functionality (JavaScript) required for this to work?
Gerritjan Koekkoek
Vader van Rai Koekkoek (cdls) en voorzitter vereniging CdLS
Visit our website<http://www.cdlsworld.org>
Facebook<https://www.facebook.com/gerritjan.koekkoek>
email<gerritjan(a)cdlsworld.org>
Hello:
I created an app with App Within Minutes, but I have customized the View and
Edit Class Sheets. Now I have separate View and Class sheets. I wanted a
third Class Sheet only used for printing, because the TOC makes no sense
while printing. I tried creating a third Class Sheet, bound it to the Class,
and then set its SheetDescrptorClass Action to "print" thinking that that
would work. It doesn't. Can this be done?
Dan
--
View this message in context: http://xwiki.475771.n2.nabble.com/Actions-for-Class-Sheets-tp7599424.html
Sent from the XWiki- Users mailing list archive at Nabble.com.