Is it possible to "store" a newline in a Pagetext variable like
(:MyPageTextVariable:Line1\nLine2\nLine3:)
so that the content is displayed on several lines ?
Christophe
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/m
> parsing code would have to match this format. If you need to have a
> list limited by date you could use dynamically created pagelist:
>
> (:pagelist order=-time if="date {(ftime %F -7days)}..{(ftime %F
> today)} @{=$LastModifiedTime}" fmt=#YourListFormat:)
>
> where $LastModifiedTime is a page v
>> Is there a way to specify the number of days the RecentChanges pages
>> report changes ?
>
> I'm not sure if this is what you're referring to, but here goes.
> >From the config.php file:
>
> ## $DiffKeepDays specifies the minimum number of days to keep a page's
> ## revision history. The defa
>> I'll keep my comments very short here.
With all respect, I feel this "my wiki is bigger than yours"
discussion should be at least held somewhere else, or better simply
stopped.
Trying not to add even more noise here:
- People make the effort to install and run PmWiki because they find
the act
Is there a way to specify the number of days the RecentChanges pages
report changes ?
Christophe
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> > ImportText is looking very good. My only request is (if its not there
> > already)
> > to put in some hooks to call user-supplied routines to wiki-convert the file
> > contents.
> Good idea, I'll see what I can do. But if someone else wants to
> tackle that feature... be my guest! :-)
I am
Typical PmWiki wiki.d directories tend to become full of "deleted"
pages, especially when expirediff is used to do some cleanup.
Wouldn't it be useful to provide "maintenance actions" like
action=PurgeDeletedPages
action=PurgeHTMLcache
action=PurgePageListscache
restricted by default to administ
> This isn't entirely accurate. The visitors never see their requests
> taking 15 seconds, as the pages are updated in the background _after_
> each visitor's normal request is handled. In other words, visitors
> never see a delay in response time due to the import, unless they know
> exactly wha
> I've just updated the import.php script with an $ImportTime variable
> to indicate the maximum amount of time (in seconds) that the script should
> spend importing files. The default is 15 seconds.
Thanks a lot for further improving this very useful recipe.
> If time expires before import has
> $EnableIMSCaching = 1;
> PmWiki then uses the If-Modified-Since request header to
> (smartly) manage the browser's cache also.
Great, thank you.
The subject of caching and the retaled variables would definitely
deserve their own page in the documentation ;-)
---
> A simple answer might be to simply extend ?action=source so that
> it not only returns a copy of the source to the browser, but
> optionally exports a copy of the text to an export directory
> somewhere.
This would be perfect indeed: action=export could run the same code as
action=source and sav
As far as I understand, PmWiki does all it can to disable local
caching by the client browser, as the pages are exptected to change
at any time.
> $PageListCacheDir = 'work.d';
> $PageCacheDir = 'work.d';
Now that we have page caching and pagelist caching available, is this
approach still the
> > By the way, there is one more action that would ideally complement the
> > "import"... ;-) Guess what ? action=export. This would take the
> > content of the page and copy it as text in an "export" directory.
> If you consider using action=source for that, the feature is already
> available
> > May I suggest to add one more configuration variable to specify a
> > maximum script running time or a maximum number of files to import in
> > one run ?
>
> Sure, we can do that. But note the caveat below...
>
> > This way, the first request could import a first batch of files
> > without rea
> This already exists in import.php, as $ImportFilePattern (no 's').
I am using the new import feature extensively now, and it works great.
However, when you have **many** files to import (as when you have one
page per record in an "emulated database", your often reach the server
timeout when imp
> This already exists in import.php, as $ImportFilePattern (no 's').
I should have checked the source ;-)
Wonderful !
Christophe
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> Following up to my previous post, I should go ahead and
> outline the other ways to get things imported quickly
> without setting $ImportFreq to a low value.
Thanks a lot, Patrick. It is very helpful indeed.
While you are at it, I have one more suggestion for this new recipe:
SDV('ImportFiles
> http://www.pmwiki.org/wiki/Cookbook/ImportText
"Whenever this script detects that the import/ directory has changed,
or at intervals given by $ImportFreq (in seconds), it scans the
import/ directory to see if there are any new files to be imported."
Could you please explain how this works ?
> > Also, it would help to know which you think is more important:
> >
> >- getting an "import feature" to work
> >- getting pagelist to work properly with HTML caching
> Apparently you get both. :-)
This is really great. Thank you so much for your help.
To add something significant in 2
On 23/05/07, Kathryn Andersen <[EMAIL PROTECTED]> wrote:
> A question, though: what if the page one is importing already exists in
> the wiki? Would it simply overwrite it, or would it be treated as a
> conflict?
I would suggest to treat an imported file exactly like a manual edit,
so that versio
> However, the $EnableDrafts capability was always disabling the HTML cache,
> as well as any recipes that happen to call the CondAuth() function.
> I've now fixed this in pmwiki-2.2.0-beta50, just released.
> For long pagelists, it's pretty dramatic.
That was it ! Indeed, the improvement is rea
> It could also check the timestamp of the import directory itself,
> to perhaps detect the import more quickly. So then we'd have both,
> a check every n minutes, and a check whenever the import/ directory
> obviously changed somehow.
Indeed.
> We'd probably need to do the actual conversion as
> One way that we could improve things here would be to provide
> an avenue whereby an external application could create a plain
> text file somewhere, and then issue a command to PmWiki telling
> it to update the page with the contents of the text file. Then
> PmWiki could handle generating all o
> I am using beta 49, and have wiki pages created dynamically from
> external applications (say "Group1.Name1", Group1.Name2, etc.), and a
> simple (:pagelist group=Group1:) fails to list them.
> Deleting .pageindex does not help.
> When creating a page with PmWIki in Group1, pagelist sees it.
Par
> Oh, I think I might have misread the original. There are two
> steps needed for indexing: first, the page file needs to
> have an appropriate target= value (this normally occurs when
> the page is saved); second, the target= values go into the
> .pageindex file.
>
> I was thinking that a reinde
On my host, this markup returns an empty string (PmWiki renders 'aabb').
aa(:breakpagelist:)bb
False alarm...
I was testing using "preview". All markups worked OK, except
(:breakpagelist:)...
When I stopped trying and wrote the mail, I saved the page... and it worked.
I am not sure I und
Also, is it necessary to display all of the records in the
output? If you can get away with displaying only the first
100 or 1000, you'd probably save a ton of time.
One more question about caching: Hans' breakpagelist recipe provides subsets
of long pagelists.
Could these pages be efficient
BreakPageList does not provide previous and next links.
Instead it provides a series of links as numbers for the subpages,
like
Page 1 2 3 4 5 6
each number being a link, except the number of the current subpage you
are viewing. So say 4 is the subpage you are viewing, then all numbers
are lin
Are other pages being HTML-cached, and it's just the pagelist
page that isn't?
AFAICT the output of pagelist should be HTML-cached, but it's
entirely possible I'm overlooking something. I'll check into it
a bit more...
Indeed. I see many other pages in the $PageCacheDir, but not the ones
You could set a global variable in the function and then check if that
variable has been set. If set (the second time the function is called)
exit the markup function.
If the double click caused two processes to be started on the host, this
approach will probably not work.
A workaround could
See http://www.pmwiki.org/wiki/Cookbook/BreakPageList
Please check it out and send your comments!
I am extremely interested in your latest recipe.
It appears to works as described on my host, but I do not understand clearly
yet if it can dynamically provide "previous" and "next" links.
Would
You can find out where things are taking up all of the time
(and if the cache is being used) by setting:
$EnableStopWatch = 1;
$HTMLFooterFmt['stopwatch'] = 'function:StopWatchHTML 1';
If you see "PageListCache begin save key=..." in the output, that
If you see "PageListCache begin load
Correct -- there's a difference between caching the HTML output,
and caching the results of a pagelist.
I made some more tests with the following pagelist :
(:pagelist group=RCB name=RCB?* list=normal order=$:_city fmt=#RCB_city:)
The pagelist returns about 2.500 pages.
Even if I just hit
OK, I have beta 44 and
$PageCacheDir = 'work.d';
$PageListCacheDir= 'work.d';
$EnableHTMLCache = 1;
$EnablePageListProtect = 0;
work.d contains now a new file a76677f70f22e14a6b5f2b2ddfff36ee.txt (55
Kbytes), likely to be the pagelist cache.
Unfortunately, when I relo
> $PageListCacheDir = 'work.d';
>I looks like the page is not cached at all (due to to presence of
>(:pagelist:) ?), as I cannot see it with the others in work.d.
...what others in work.d ?
Oops, I defined $PageCacheDir according to a previous post, and did not
notice the differenc
Would you be willing to accept that the results would be incorrect
for up to 'n' minutes after changing a page?
My suggestion is to try enabling the pagelist cache and see if
there's any improvement.
$PageListCacheDir = 'work.d';
I have done that two days ago when you mentioned this in
Repost, as the original did not seem to reach the list.
Pm,
Can you please give a recommendation ?
Thank you in anticipation.
Christophe
I could not resist the temptation to experiment with PmWiki as data storage,
as several recipes already do.
Compared to a database table structure,
- a
On Sat, May 12, 2007 at 04:13:10PM +0200, Christophe David wrote:
> Is there a ready-made way to handle pagelists pagination ?
>
> Say a pagelist returns 1.000 entries and you use count=50..100 .
>
> How do you create dynamic "previous" and "next" links to tha s
PmWiki has several (somewhat experimental) caching features,
which may be able to help out some. You can set up page caching
by setting:
$PageCacheDir = 'work.d';
$EnableHTMLCache = 1;
This caches the main contents of each page, so that PmWiki doesn't
have to reconvert the markup to HTML o
I could not resist the temptation to experiment with PmWiki as data storage,
as several recipes already do.
Compared to a database table structure,
- a PmWIki group represents a table
- a PmWiki page in this group represents a row of the table
- PageTextVariable represent columns of the row
Usi
> On my site, I have one installation of the freemind flash viewer, called
> using a PmWiki cookbook,
> and I just pass the name of my mindmaps ( mindmap.mm) as parameter.
Not sure where to install the freemind flash viewer, ..
Cookbook "Freemind for dummies" more than welcome ;-))
As far a
When you export a freemind map to Flash, you generate several files
...(flashobject.js , map.mm, visorFreemind.swf, ...)
I have uploaded the .swf produced by this process and used the
Cookbook/Flash.
http://pmwiki.confluence.free.fr/
(Note : See the Freemind Navigation option )
The "reader" a
When you export a freemind map to Flash, you generate several files
...(flashobject.js , map.mm, visorFreemind.swf, ...)
I have uploaded the .swf produced by this process and used the
Cookbook/Flash.
http://pmwiki.confluence.free.fr/
(Note : See the Freemind Navigation option )
The "reader" a
Is there a ready-made way to handle pagelists pagination ?
Say a pagelist returns 1.000 entries and you use count=50..100 .
How do you create dynamic "previous" and "next" links to tha same pagelist
with count=0..50 and count=100..150 ?
Thank you in anticipation.
Christophe
___
http://www.christophedavid.org/w/c/files/Files/_FM/FMFV.php?mm=/w/c/files/Files/aviation/nuages.mm
Christophe this looks marvelous.. .can you tell us more? Where do we get
the flash view and how do we install it?
Here is all you need ;-)
http://freemind.sourceforge.net
http://freemin
Combination of both PmWiki and Mindjet would be a fantastic enhancement,
..
Indeed.
You might also want to see the free open source freemind (
http://freemind.sourceforge.net ).
There is a free flash viewer for mindmaps made with freemind, and it
integrates nicely with PmWiki.
You can see
Doing a re-index currently would require loading and re-saving each page,
which would
take a fair amount of time. Or, we'd need a marker in the page files that
says "no need to reindex this one"
ExpirediffAll does something similar (agreed, without parsing the text=
attribute) in a reasonabl
Did you also remove the .pageindex file?
No. That was it.
Everything works OK after deleting it. The first call takes some time to
re-generate it, then everything works fine and fast.
Great !
Thanks a lot.
(A ReindexAll function and/or action would be nice.)
Christophe
__
This is correct. The problem is likely that the page is missing
the targets= attribute; PmWiki uses this to determine which pages
link to the corresponding Category page.
There is still something missing...
I populate now the targets attribute myself, so that my page contains
version
c
This is correct. The problem is likely that the page is missing
the targets= attribute; PmWiki uses this to determine which pages
link to the corresponding Category page.
I updated http://www.pmwiki.org/wiki/PmWiki/PageFileFormat .
Could you please check if the information I added is correct
At present there's not a re-index function other than editing the
page... but I might be able to come up with one.
It might turn out to be as simple as (untested!)
if ($action == 'reindex')
{ $action = 'edit'; $_POST = array('post'=>'1'); }
Thanks a lot for your quick reply.
I wi
As suggested in http://www.pmwiki.org/wiki/PmWiki/PageFileFormat , I
generate PmWiki pages from external applications, in order to produce
reports and other things while taking advantage of all the PmWki features.
Everything works fine, except that I cannot get categories to work properly
:
1) $
Could someone please explain how $EnableDrafts and $EnablePublish is meant
to be used together ?
On my system,
with $EnableDrafts = 1 and $EnablePublish = 0, using the edit password, the
"publish" button is active.
with $EnableDrafts = 1 and $EnablePublish = 1, using the edit password, the
"pu
Just for fun but is it possible to have a
'We have 1 guest online'
Show in the sidebar or top
Try http://www.pmwiki.org/wiki/Cookbook/CurrentVisitors .
Christophe
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com
As described in http://www.pmwiki.org/wiki/PmWiki/Categories , "if you click
on the category links on a page, initially you'll just be taken to an empty
page named Category.Subject".
On *some* installations of pmwiki-2.2.0-beta44, each link to a category
shows with the question mark to create th
Is the root directory of the field writable? If so, it shouldn't be.
It is indeed. Will change that.
That still doesn't explain where the files are coming from,
but I suspect it's not as a result of the uploads capability.
>I would appreciate it if someone would report a similar exp
I regularly find 0 byte files like
0 pre
0 preteen
0 preteens
0 pthc
0 pussy
0 ranchi
0 real
0 riley
0 rompl
0 russian
0 shy
in the root directory of one of the fields of my wiki farm.
Uploads are not enabled, except for one unique page (in a
group.name.phpfile). This page is read and edit prot
$HTMLStylesFmt[] = ' body { background-color:#f4f4f4; } ';
to Group.php or
body {
background-color:#f4f4f4;
}
Thanks a lot !
Christophe
___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinf
Alternatively, not from wiki pages but as admin, you can define
GroupName.css files in pub/css/ folder for group specific css.
This is probably the better approach. Css in pub/css/ folder will load
last and override anything set prior.
I was looking for this in the documentation but did not ma
Could somebody please recommend a clean way to change the background color
of the pages for a given group without defining a new skin ?
Is it possible by setting a variable in "Group.php" ?
I tought there was a way to define a CSS per group or per page (same
principle as for the php files in /lo
> I am not sure whether page wikitrail can read dynamically created
ordered list. I would define template this way:
This does exactly what I wanted in a much more elegant way than I had
imagined.
Thanks a lot.
Christophe
___
pmwiki-users mailing li
Could somebody please tell me if the list needed to create a wikitrail can
be generated by a pagelist ?
I tried the following and all variants I could think of, without success.
When I create the index list manually, everythings works fine.
- Define a wikitrail in a group footer with <|[[IndexP
On http://www.pmwiki.org/wiki/PmWiki/PageFileFormat, I read "The markup text
needs to have newlines converted to "%0a" and percent signs converted to
"%25"."
When reading PmWIki files from an external program, one can see that '<' are
converted also (to %3C) . Is this a feature that should be ad
Could someone please give me a hint how to solve this :
(:pagelist $:MyPageTextVariable=YES:) generates a pagelist of all pages with
a PageTextVariable called MyPageTextVariable set to 'YES'
How to get a pagelist of all the pages where this variable is NOT set, or
not set to "YES" ?
Thank you i
Would someone have a recommendation as how to allow users to change their
own password on a site using AuthUser ?
Maybe an new action "ChangePassword" could open a form that would trigger
the update of the user password in Site.AuthUser ?
Is it worth writing a cookbook for this, or is there alre
It seems something is broken in the new conditional markup: one of the
symptoms is that (:if false:) is not evaluated properly any longer, as you
can see on
http://www.pmwiki.org/wiki/CDA/IfFalseElseIfEnd
Christophe
___
pmwiki-users mailing list
pmwiki
Would someone have an idea how to automatically show the hyperlinks in
PmWiki differently than the hyperlinks to the same server ?
... and/or easlily list all "external" links in a wiki in order to check
them for broken links ?
Christophe
___
pmwiki-us
>When uploading the same files with the PmWIki "upload" feature, this
> >conversion does not appear to be made, and the files are uploaded
> as if
> >they were binary files.
> >Is there a way to change that ?
>
> PmWiki just uses PHP's built-in upload file feature to store files
>
>> I'm wondering if you're running into PHP memory limits or something
like that.
I have a similar problem with a page about 900 lines long (40 Kb),
containing a lot of PageText variables and text betwwen [[#zyz]] markers.
When the page exceeds a given size (around 20 Kb apparently), the (:
When uploading text files with FTP from a Windows system to a Unix system,
the line separators are converted properly (CR/LF -> LF).
When uploading the same files with the PmWIki "upload" feature, this
conversion does not appear to be made, and the files are uploaded as if they
were binary files.
When uploading a file having a name starting with an underscore, the
underscore is deleted.
I could not find documentation about this feature.
Is there a way to prevent this behaviour ?
Christophe
___
pmwiki-users mailing list
pmwiki-users@pmichaud.co
101 - 171 of 171 matches
Mail list logo