(:Summary: Ask your questions about PmWiki here, after checking the [[documentation index]] and [[FAQ]]:)
This is a page where you can ask questions about PmWiki.
You will need to count on someone coming along and answering your question, so please be patient.
A quicker, more effective way to ask a question is to join the pmwiki-users [[mailing list(s)]] and '''''send your question to the list.'''''
Unfortunately answers to the list do not always get posted here, perhaps you can help keep PmWiki up to date by making sure your answer is added here or elsewhere in the documentation.
See also [[How to get assistance]].
In particular please try to [[PmWiki/HowToGetAssistance#reproduce | reproduce]] the issue in a [[Test/]] page.
>>faq<<
Q: Is this the right place to post my question?
A: It might be. Posting to the [[mailing list(s)]] would work better, but adding it here may get you an answer. Make sure your question doesn't appear on the [[FAQ | PmWiki FAQ]] page first. You might also try [[Site/search]]ing pmwiki.org to find an answer.
A: If your question is about a specific [[Documentation(Index)]] page or [[Cookbook/]] recipe you are better to ask it on the recipe page, or the recipe-Talk page if it exists.
(:searchbox:)
If you still can't find what you need to know and you don't want to use the pmwiki-users [[mailing list(s)]], then post your question on this page.
Once your question has been answered, it may be moved to the [[FAQ Candidate]] page or even the [[FAQ | PmWiki FAQ]] page, so if it disappears look for it on those two pages.
----
Q: Is there a way to link to a local pdf document such that the link in PmWiki opens it in the browser?
I am using OSX Safari. If I type a link [@file:///Users/.../file.pdf@] into Safari, it will open the file. If however I add that link to a Wiki page (web-based, but accessed through Safari on the same machine), it will not. Is there a way? Many thanks, [[Profiles/Conrad]], 23 August 2012
----
Q: Is it possible to have blocklists by group?
I want to block URLs on Talk pages which are world editable, but allow them in Main pages which are editable only by @contributors. It seems intuitive that Talk.Blocklist should be the blocklist for the Talk group, but (as the documentation does say) all blocklist pages are used. I tried this conditional in Talk.Blocklist
[@
(:if equal "{*$Group}" "Talk" :)
block:/[^\w\\]href\b/
(:ifend:)
@]
but this continued to block all URLs in all groups.
>>Py<<
You can reset the $BlocklistPages for the Talk group. In the file plwiki/local/Talk.php, add such a line: [@
$BlocklistPages = array('SiteAdmin.Blocklist', 'Talk.Blocklist');
@]
You may also want to enable Blocklist only for the Talk group, in that case, set the line @@ $EnableBlocklist = 1; @@ in Talk.php, and remove it from config.php. If the Talk.php file doesn't exist, create it with a first line containing [@><<
----
Q: I am trying to create a link to a different port on the same machine as the wiki, where I have a different service running (like: [=http://name.tld:8000/=]); with a ":" and port number before the trailing "/". The best I can get with Intermap is ([=http://name.tld/:8000.=]), or ([=http://name.tld..:8000/=]), neither of which work, of course, and a static link is out of the question. Any ideas?
maxnort-12-23-11
%Py% You can enter in your page [@[[Site.InterMap]]@] the address with the port number. The following works on my wiki. --[[~Petko]] December 24, 2011, at 03:24 AM
[@
MyLink http://www.example.net:8080/
@]
----
Q: In guiedit.php line 71, I removed "style='border:0'" and added "class='guieditbutton'". I defined this style class in my skin class file. It's work well but I'm searching for a way to do that without modify the PMWiki Core. Is someone have a hint for me? Thanks! [[~CarolineGuénette]]
A: Le plus simple serait de copier ce fichier du dossier pmwiki/scripts au
dossier pmwiki/cookbook. Puis, dans local/config.php, ajouter:
if ($action=='edit') include_once("$FarmD/cookbook/mon-guiedit.php");
(et supprimer ou commenter la ligne $EnableGUIButtons = 1;)
(email answer from [[Profiles/Petko]]. merci!)
----
Posted by Nakul on November 11, 2011
Q: I have used mod_rewrite to enable cleaner URLS, so that now when I type "musicmind.biz/John Coltrane" in my address bar, it takes me to http://musicmind.biz/JohnColtrane/JohnColtrane". For the sake of good organization, I would like every single page to be a category page, so that it may be well cross-indexed. Therefore, I would like it if the user was defaulted to the category group whenever entering a "musicmind.biz/namespace" such that musicmind.biz/page would arrive at--> musicmind.biz/category/page. If this is not possible, I would like to shorten the "Category" group into something more accessible to users, like "1," or "w." I have perused the FAQ and did see this explanation: "An administrator can override the default category group name of "Category" by setting the $CategoryGroup variable in config.php to another group name." However, that's all the information I have found and have not been able to successfully implement the name change. Going along the lines of data organization, can pages be longer than 2 namespaces? Ex. musicmind.biz/Category/John Coltrane - A Love Supreme - Acknowledgement/Intro Saxophone Riff Help is greatly appreciated, as I cannot deposit data onto the server until the fundamental naming scheme is resolved.
----
Q: My favourite statistic tool needs to have a statement include into the pmwiki code. Which is the best place to put it into? Posted by Arno on November 8 2011
%Py% See [[http://www.pmichaud.com/pipermail/pmwiki-users/2011-November/059617.html|this post on the mailing list]]. --[[~Petko]] December 24, 2011, at 03:30 AM
----
Posted by GaryW on July 21 2011
Q: Is it possible to create buttons or links for invoking the various page actions instead of manually typing them in the URL?
A: You can append to any URL "?action=". For example:
(:markup:)
[[{$FullName}?action=source|View this page's source markup.]]
(:markupend:)
A: You can edit your page Site.PageActions and add such action links there. Then, the links will appear in the actions bar on all pages.
----
Posted by Ericp June 7th, 2011
Q: Is it possible to have a bilingual site?
To be more precise, I want each page to have 2 different copies, one for language A and B. If the user currently see a language A page, clicking on other pages will only show A page. Then the uses can click a special link to switch his language to B. Then all pages clicked will show the B version of the page.
Can it be done? \\
Is there a cookbook to do the job?\\
Else, is there another way to have a bilingual site?\\
Thank You
A: Yes, it is possible.
See [[Cookbook/MultiLanguage]] and [[Cookbook/MultiLanguageViews]] for 2 different approaches.
Note also the XL capabilities
----
Q: i'd like to add figure markup(html5).. but i couldn't find the way... can you help me? [@
input)
(:fig $arg:) // $arg like class or id or style="attr:value;"
imgpattern or [[imglink|img]]
caption (with some inline markup)
(:figend:)
output1)
[@
or
or
or
or
). The fact that link markup is placed on separate lines does not change this. If you want these links to appear on separate lines, there are several things you could do to tell PmWiki your intentions, including: use list markup (* or # at the start of each line), use two carrage returns instead of one, or add two slashes at the end of each line. ---- Q: (September 29, 2006) Is it possible to create a Group.PageNotFound page similar to the Site.PageNotFound page? -> I didn't find anything like that in the documentation, but as most things work on group level just the same as on site level, I suspect I somehow missed something. ---- Q: (September 26, 2006) Is there a way to add in a creative commons license to PmWiki? -> I want the content my site visitors and community members write to be credited. Thanks. ---- Q: (September 5, 2006) I'm having trouble with the initial setup of my wiki. -> The links always go to Main.Homepage, no matter where they are supposed to point. None of the PmWiki reference links work. When an edit command is given, whether it be edit SideBar or a link to a new page, it brings up edit Main.Homepage. Am I missing a file, or are my permissions set incorrectly? I've tried 2.1.15, 2.1.14, and I'm now on 2.1.13. Also, is there a list of what files I should have so I can check? A: I think we need more information. Is there an address that we can look at? In the meantime, if you want to try something, at least to rule out a possible issue, you might try explicitly setting the address to your PmWiki location in the $ScriptUrl entry of your config.php file. As the documentations for $ScriptUrl explains, "PmWiki is usually fairly good about 'guessing' the correct value for $ScriptUrl on its own, but sometimes an admin needs to set it explicitly because of URL manipulations by the webserver (such as Cookbook:CleanUrls, mod_rewrite, bizarre PHP configurations, and so on)." ---- Q: The site is www.luminarias.us -> I've set the scriptUrl to http://www.luminarias.us/pmwiki.php. I'm having no luck. None of the links work. I've done several fresh installs in the hope that I was missing a hidden file. The external links to pmwiki.org work, but not the internal wiki links. A: Ok, looking at your site, I would guess that you were trying to setup the CleanUrls recipe and that you are almost there, but not quite. When I click on a link, the page and group are formatted as a regular path with slashes, which tells me that you have $EnablePathInfo = 1 set in your config.php file. Then, when I try to manually enter a group and page by appending them to the address using PmWiki's own format (http://www.luminarias.us/pmwiki.php?n=Main.WikiSandbox) I get an internal server error. It is only when I omit the pmwiki.php that I can get a the page to load (http://www.luminarias.us/?n=Main.WikiSandbox). Wait, I also get the page to load when I try http://www.luminarias.us/index.php?n=Main.WikiSandbox. So, where do you go from here? Personally, I would take a step back first and make sure everything is working without the CleanUrls recipe: comment out the EnablePathInfo line in your Config.php and rename your .htaccess file for that it isn't being interpreted. If the links work fine after that, then go back and double check (and triple check) your assumptions and entries in implementing the [[Cookbook:CleanUrls]] recipe. If you need more help with that, you should probably provide some more specifics, like the contents of your .htaccess file and the exact location of that file in relationship to your PmWiki file structure. ---- Q: The internal server error came from messed up permissions on pmwiki.php. I commented out the enablepathinfo, and that worked. Thanks for all your help. You (and I'm not sure who you are and how many of you there are) are the best. ---- Q: (August 31, 2006) I expect my wiki to be very large. How scalable is PmWiki? A: Short answer: It all depends on the server. One user with a small, slow server and 4000 pages claims his site is barely tolerable. Another user, with a bigger and faster server, is happy with 200,000 pages. Performance can also be affected if you use some of the advanced features. If it does get large enough to impact performance, there are things you can do to speed it up. Longer answer: http://pmichaud.com/pipermail/pmwiki-users/2006-August/031282.html \\ This thread includes ideas how to speed things up. (keywords: "server size") ---- Q: (August 29th 2006) I want to include a php counter in every page generated using bbclone: [@ @] The problem is if I put these in /pmwiki/pub/skins/pmwiki/pmwiki.tmpl, they are not interpreted as php command and instead are outputed as plain html text. How to do this property in pmwiki? A: You should put those commands in your @@local/config.php@@ file. Additionally, consider adding a line of: define("_BBCLONE_TITLE", $pagename); above those lines. You might also want to have a look at available cookbook recipes: [[Cookbook:TotalCounter]] (and [[Cookbook:CurrentVisitors]]) - although they provide less functionality than BBClone. ->[-''~[[~MateuszCzaplinski]]''-] ---- Q: (August 26th 2006) I found that after I put a @@include_once('scripts/xlpage-utf-8.php');@@ in my config.php, I found a line of meta ( @@Content-type: text/html; charset=UTF-8@@ ) is still not added which indicates the UTF-8 encoding of the page (though Firefox can recognize the encoding itself and I can edit my wiki without any problem on my desktop computer but not on my PDA). Can anyone help fixing it? Thank you. ---- Q: (August 24th 2006) I've looked around the cookbook and I'm not seeing an option for putting in anchor tags for links within the same page. -> This is done in HTML but I don't see an option for doing it in a PmWiki. Let me know if I missed it. I will continue to look in the meantime. Thank you. A: The Cookbook is for 'advanced' add-ons, you're just looking for a standard link option. You'll find the anchor link described on the [[Links]] page under the '''Links to specific locations within a page''' heading, near the beginning. Enjoy. [[~Des]] August 24, 2006, at 08:44 PM ---- Q: (August 24th 2006) I have PmWiki setup at [[http://www.bynw.com/wiki/pmwiki.php]] when you edit a page and click "save" the information is indeed saved but doesn't leave the edit mode. -> If you click on any of the links it remains in edit mode until you close the browser and reopen the page. Any ideas on how to fix this? A: We're working on this. I added some comments to your home page and posted the question on the mailing list at http://pmichaud.com/pipermail/pmwiki-users/2006-August/031070.html Click on that link and look for followup posts on that thread. Thanks for the information. That pointed me in the right direction. I didn't edit the config file for the $ScriptUrl, it was still commented out with the default information placed there. After I uncommented it out and filled in the url it works fine now. ---- Q: (August 22th 2006) Which is the best RSS feed to keep informed on important PmWiki-updates? ---- Q: (August 19th 2006) Is there any way just to show the pagegroup (of the css wikititle) to people with edit or admin rights? -> Right now I am using css visibility:hidden but then it is always hidden. Same would be with deleting (or setting) the line within the source (as a comment). A: It is possible, but only partially. If a user has some IT-savvy, he'll still be able to easily find the group name. And the more places you want to remove the group-name from, the more difficult it will be - especially I can't imagine removing the group name from the URL at the moment, if you still want it to be available to admins somehow. Some ideas where to try to remove include: * the wiki's skin (but you'd better work on a copy, not the original) * removing the [@{$Group}@] [[PageVariables|page variable]] ---- Q: (August 18th 1006)Trying to add some custom mark up but i cant quite work this out any ideas why this does not work -> Markup('hotkey', 'directives', '/\\(:hotkey.*?:\\)/e', "Keep(\"$1\")"); A: Try using single backslashes ([@'/\(:hotkey.*?:\)/e'@] in place of [@'/\\(:hotkey.*?:\\)/e'@]) - that's how it works for me; I'm not quite sure if the double-backslashes info in the manual is an error, or is it that one version works for some people (that is, some PHP installations), and the other works for others. I'm quite puzzled here. ->[-''~[[~MateuszCzaplinski]]''-] ---- Q: (August 7, 2006) Hello, i try to put out a rss-feed / webfeed from only ONE site of my wiki. -> But i can't find a possibility to Display the RecentChanges for on site or section of my wiki. But the webfeed doesn't make sense, if it contains irrelevant informations... Searching didn't help! Regards, erdballer ---- Q: (August 4, 2006) I've downloaded [[Cookbook:ExcelPaste]], but am having a problem with the GUI button alignment, the skin used is Triad. -> Is there markup that can be used as a button definition in the config.php file or is there a different workaround for this? ---- Q: I have latest version of PMWiki. I have 2 pages, which are spammed every day, %red%but it isn't allowed%%. -> I have changed the password of "edit" some times. First the group had a edit-password, then the page too. No changes. Any idea? [[~flox]] August 01, 2006, at 06:09 AM A: You should give some more information about the situation. What's your configuration (especially regarding spam and it's "non-allowance")? How did you change the edit password for group/page? (changing it for the page with ?action=attr should really make it inaccessible for non-password-knowing people) Maybe you could link to the page which gets spammed, or at least show what kind of spam gets written there? I don't say all (or any) of this information will be helpful, but it might give at least some clues. ->[-''~[[~MateuszCzaplinski]]''-] A: See [[PmWiki/Security]] ---- Q: I edited Site/NotifyList to get e-mails which should tell me changes. -> But - I never got e-mails... I have latest version installed over an older one, edited config.php and edited Site/NotifyList. [[~flox]] August 01, 2006, at 06:09 AM You mean that you edited config.php to have @@$EnableNotify = 1;@@ ? ---- Q: (2006-07-20) After Installing [[PmWiki]] and following all the instructions given in the [[Installation]] dir, I can view all of the wiki pages, but can't edit even one of them. -> I noticed when extensively trying to correct the problem, and when editing the config file it says: DefaultPasswords['admin'] = crypt('secret'); So can I ask how can you edit pages, and allow the world to edit your pages ? Is this a failed installations or is this normal default behaviour installation. I am guessing all file permissions are set to charmod 755, aside from the ("chmod 777 wiki.d") directory, so this I guess should not be a server file permissions problem. '''Hope someone can help :- Just to recap the actions ?action=attr work but the actions of pages ?action=edit do note:. added please help still can't edit my wiki !! [[http://martin.ntwk.co.uk/wiki2/pmwiki.php]]''' ->Ah, now I see. When I looked at your site I understood the problem. Edit works, but the edit screen has no content. Knowing that the content of the edit screen is determined by a template page called EditForm that is located in the Site group, I looked at your site group and see that the EditForm page does not exist (the link appears on Site.Site as a link to a new page). So, how to add that page if you can't edit? Get the file from a distribution and copy it over to the directory. ---- Q: On my wikis, links to pages with dates (formatted a certain way) in their pagenames get converted to long date format, so the links don't point to the pages. Thus this: (:markup class=horiz:) [[2007-05-03]]\\ [[Test2007-05-03]]\\ [[Test20070503]]\\ (:markupend:) ->on ''my wikis'' comes out like this: Thursday, 3 May 2007\\ TestThursday, 3 May 2007\\ Test20070503 What setting is likely causing this? I'm running 2.1.11, but the problem goes back to 2.0 days. (I am posting the Q to the mailing list, but also have it here for demo purposes) Thks! -- [[~TeganDowling]] %green%'''Solution''': disabled wikilog.php ([[Cookbook:WikiCalendar]] recipe), thanks to PM!%% ---- [[#expirediffq]] Q: (2006-07-05) I'm using [[CookbookExpireDiff]] --the latest version. -> It doesn't seem to work--I followed the instructions, adding to the config file as it lists. Still doesn't delete when one tells it to. Any possible ideas on what's been done wrong? I C/P'd the listed text into the proper config.php file, and it pops up a textbox in the history asking if I wish to delete history, as it says it will. It just doesn't actually -delete- anything. Any ideas? [[#expirediffa]] (:include Cookbook/ExpireDiff#expirediffa#end:) ---- Q: (2006-06-29) How do I get a list of [[PmWiki/categories]] (as opposed to a page list of category pages)? -> When a user creates a new category, eg [@[[!new category]]@] this doesn't create a page in the category group, consequently if I have, say, on the category home page, a list of categories (aka a pagelist) it doesn't reflect the new category my user has created! A:Don't know if this is too specific for your needs. By adding -PageName1,-PageName2 etc. to the PageList markup, the PageNames included can be excluded from the Category listing. Obviously only works on those specific pages, and not across the wiki in general. For example, this prevents the pages HomePage, SecretWiki and SandBox being included in the list of Categories --[[~Des]] July 06, 2006, at 07:28 AM:- [[<<]] ''its got to work without manual action for every new category added, so thanks, but sorry, its too specific'' [=(:pagelist group=Category list=normal fmt=dictindex name=-HomePage,-SecretWiki,-SandBox:)=] ->I'm not sure that I understand what the difference is between a list of categories, as opposed to category pages, since categories are simply pages within the category group. If what you want is a list that doesn't create links back to those category pages, then create a pagelist template that does not enclose the reference to the page in double brackets, i.e. instead of [@* [[(=$Name}]]@] just write [@* (=$Name}@]. Then, when you add a pagelist directive that uses that format (to group=Category), the pagelist will generate a list of the names of categories (i.e., of pages in the category group), without creating links to those pages. [[<<]] Is that what you were looking for? If not, do you want a list of links to all categories, but are worried that the listing will cause the listing page to appear on each category page? If so, I'm not sure that including a pagelist of categories on some page, lets call it NewPage, will cause NewPage to be listed in each of the pages in the category group. -->I think the problem arises when using the method where the listing is created by placing the PageList in the Category.GroupFooter page, as described in the [[PmWiki/Categories]] page. I dispensed with this as it gave me a double listing when I used a customised PageList, and included pages where the Categories were referred to (as I think the original questioner found). I just create a Category/Categories page with a PageList similar to the above in it, and it seems to list only the Categories, and not any pages that refer to Categories (unlike the GroupFooter method). After testing Pico's NewPage thought (it didn't list NewPage) I found that the name=-HomePage, section appeared to be redundant too. --[[~Des]] July 06, 2006, at 09:21 AM ->''A category is the text placed in the markup [@[[!Your Category]]@]. Of itself it does not have a page in the Category group.''\ ''Furthermore there are pages in the Category group that are not categories, for example Category/HomePage.'' '''''Corollary:''''' Q: How do I refer to a category (eg [@[[Category/example]]@]) without joining (being listed in) the category (eg [@[[!example]]@]) !!! Another approach How ''I'' do understand the original question, is: Q: How can I find categories linked to (by using [@[[Category/something]]@] or [@[[!something]]@]), but not having the category-pages created (that is, when nobody cared to fill the ''Category.something'' page) A first answer that gets to my mind is to use something like: [@(:pagelist "[[Category/":)@] - that should list all pages containing "[@[[Category/@]" text in them - and this text usually means the page is linking to some category. This solution unfortunately has some drawbacks: * it doesn't list pages using the [@[[!@] syntax - if you add second pagelist, you can get some doubled pages, and even if not, the sorting will be done separately. You can avoid this by forcing users to use the @@Category/@@ syntax, e.g. by disabling the @@[[!@@ markup at all. * the list will generate longer than a simple backlinks list; still, in new versions of PmWiki it's faster (or not?...) than in old ones thanks to implementation of the indexing system. ->[-''~[[~MateuszCzaplinski]]''-] ---- Q: (2006-06-24) When Pages are included with (:include:) in another group the text will be displayed but the pictures will not. -> I could use the Groupname in the Attach-Markup like [@Attach:Groupname/Picturname.gif@], but I think it's better not to define the path of an attachment so strictly. How can I tell PmWiki to load the Pictures from their original group? \\ I already looked up all the WikiPages telling anything about the include-Markup... A: The simplest possible solution is the Cookbook:UploadGroups recipe, given that you don't mind if your images get attached globally to the site, not to certain groups. ->[-''~[[~MateuszCzaplinski]]''-] ---- Q: (2006-06-19) Problems making the home page work with index.php? ->Hi All, I have created the index.php file and put this in the same directory as pmwiki.php but when i go to my page it just shows my index of the files, but if i enter the full path to the index file it works, am i missing something. that is if i go to www.mydomain.co.uk/pmwiki then i get the index of the files but if i go to www.mydomain.co.uk/pmwiki/index.php it will work but i cant get it to go straight to index,php by just entering www.mydomain.co.uk/pmwiki. is this a problem with what i have doing wrong or is it a problem with my host/isp. can anyone help me with this please. ->Thanks ->Geraint A: Most web servers look for index.html before looking for index.htm, and then, if that is not found, index.php. So, it sounds like you probably have one (or more) of those other files in your directory that is being loaded before (and instead of) index.php. If so, you can get rid of (or rename) those files, so that they are not being automatically loaded, or you can use them as a front end, or splash screen, to call pmwiki.php. Unless you have a particular need to use a separate index.html file, the easiest thing will probably be to just delete (or rename) that file (or files) so that index.php will be loaded. ---- Q: (2006-06-13) How to add call to an external script ? I have a set of scripts doing several stuffs. Some are made in perl, other in php, ... I'd like to have their result appear in pmwiki. Actually, my question is how to make the page, for example GiveMeTheListOfHosts call a script named list_of_hosts.php and show correctly the result of it ? What variables should I fill in list_of_hosts.php ? What wrapper can I use in pmwiki ? Thanks ---- Q: (2006-06-08) I got this information when I upload a file: -> [@ Warning: move_uploaded_file(uploads/IdeaBoard/charslist.jpg): failed to open stream: Permission denied in /home/bbbw/public_html/scripts/upload.php on line 198 Warning: move_uploaded_file(): Unable to move '/tmp/php4GefOm' to 'uploads/IdeaBoard/charslist.jpg' in /home/bbbw/public_html/scripts/upload.php on line 198 PmWiki can't process your request ?cannot move uploaded file to uploads/IdeaBoard/charslist.jpg We are sorry for any inconvenience. @] My host- i4host.net recently upgraded php to 4.4.2 from 4.4.1. I searched mail archive, it's said that "Safe Mode" was turned on while you crashed such a problem. Does anyone have some ideas on solving this? Thanks a lot! A: I posted this on the list for you [[http://pmichaud.com/pipermail/pmwiki-users/2006-June/028804.html|here]] and there are several replies (just click next message). Perhaps the best thing might be for you to read those and then add the solution that worked to this page. ---- Q: (2006-06-02) I set the group password for reading the sites. BUT, I want only ONE site, which has no read protection... what can I do? Thanks! A: I'm not sure that I understand your question, so let me start by making sure you know about the two main documentation pages and approaches for passwords. Passwords can be set by administrators by editing the config.php file, see [[PasswordsAdmin]], or by authors by using [@?action=attr@] to edit a regular page or the special page in each group called GroupAttributes. See [[Passwords]]. Sounds to me like you started down the narrower road of setting passwords as an author by using [@?action=attr@] to edit the GroupAttributes pages, when what you may have wanted to do was setting broader site wide passwords as an administrator by editing the config.php file. If that is the case, at this point you may need to: (1) edit the config.php file as directed at [[PasswordsAdmin]] and then (2) go back and examine what you did as an author using [@?action=attr@] to edit the GroupAttributes pages to see whether you need to undue your prior password settings. Hope that helps. ->%green%I know this - very bad English. Sorry. I want to set a ''read'' password for the hole group (via .GroupAttributes?action=attr). But 1 page shouldn't have this read password (I want to "clear" it with .Site?action=attr), it should be readable by everybody. Is there a easy way to do this or do I have to set the attributes for all pages (many pages) in the group?%% -->What happens if you set the password for the group, and then clear the password for the page? (To clear the password on the page, you would probably have to explicitly go to the page and "assign" a password that means no password, which should be [@@nopass@], but check the documentation to be sure). --->%green%Thank you very much, I hadn't found @nopass! %% ---- Q: (2006-05-27) Why not use frame on preview page? I mean, there're 2 buttons under the edit textbox: "Save and edit", "Preview". -> While I click these buttons, I hope to see the result as soon as possible. By using a frame, edit page takes 50% and view page takes the rest(horizontal). Once I click those two buttons, the frame of view page will be refreshed, then the new view appears. This method is far more convenience than what it is now. ---- Q: (2006-05-24 #1) How do I put a word with an apostrophe as a keyword? -> On the site where I'm using pmwiki (version pmwiki-2.0.13), when I use use something with an apostrophe, for example (:keywords o'clock :) it doesn't convert it to a keyword, but just leaves it as text on the page. If I remove the apostrophe, it works as a keyword. If I try it as [=o'clock=] it appears to work, but when I look at the source code of the generated page, it has a bunch of squares and stuff instead of the word o'clock in the meta tag. I don't know much about search engines & meta tags though -- perhaps I should just leave it as oclock and it would work the same way? A: I don't know the answer, but I might try using the ascii code for apostrophe instead of the gylph itself in the keyword. A useful trick I sometimes use is to type a string into the search box and compare it with the string that gets displayed on the address bar. For example, if I type "O'Clock" in the search box, the address bar ends with "O%27Clock". A google search confirms that 27 is the unicode html hex code for apostrophe. I'm not sure, though, whether you will need to type the code in the form [@@] or [@@]. Take a look at the [[Special Characters]] page for some more info about those codes. From this version's Sandbox, I looked at the html source code it generated, and used the same thing in my version of pmwiki. Now, when I look at the html source code of both this version's Sandbox testing and on my 2.0.13 version, they look the same. Thanks. ---- Q: (2006-05-24 #2) Question regarding anchors, included pages, and if/then/else logic: -> For example, say I have Page01, Page02, and Page03, all fairly lengthy with unique anchors embedded in them (I'll refer to these as the Numbered Pages). I also have PageALL which just contains include statements for the other three pages. On each of the Numbered Pages, there are links to anchors which are either on the current Numbered Page, or one of the other Numbered Pages. Let's say that on Page01, there's an anchor link named anchor006 pointing elsewhere on Page01, and an anchor link named anchor007 pointing somewhere on Page03. Can I code it so that if I'm currently on the all-pages-combined-by-includes PageALL and I click on either my anchor006 or anchor007 link, it just jumps elsewhere on the current page without having to load up the smaller Numbered Page? A: One approach might be to use [[Conditional Markup]] to select one of two alternate links (with, and without, the page name). For example, if you want a link on Page01 to refer to Page02#anchor006, then you could create two different links embeded in conditions, like this:[@ (:if name Page01:) [[#006|GoTo 6]] (:if ! name Page01:) [[Page02#006|GoTo 6]] (:ifend:) @] While that may seem like a pain, you would only need to do that when you are linking to an anchor that originates on a different page from the link. One note of caution, make sure that your anchor names are unique, e.g., don't have anchors with the same name, i.e. #006, on Page01 and Page 02, because your links to #006. (I believe in such a case, the link will work, but will jump to the first of two anchors with the same name. Check it out for yourself. Maybe you might even find a way to incorporate such behavior into your system). Looking at the [[Conditional Markup]] page: it seems to have exactly what I want:[@ (:if ( name Page01 ) OR ( name PageALL ) :)[[#006|GoTo 6]] (:if ( ! name Page01 ) AND ( ! name PageALL ) :)[[Page01#006|GoTo 6]] (:ifend:) @] If the current page is either Page01 or PageALL, then jump to elsewhere in the current page, otherwise load up Page01 and then jump to the specified spot. But, either I'm not coding it correctly, or I don't have a new enough version of pmWiki (I'm using 2.0.13), because I can't get it to work (two "GoTo 6" links appear on the page). Hopefully, I'm just coding it wrong, but I have a feeling my version is too old to support this kind of logic. ---- Q: (2006-05-10) I want to use a numbered list inside a table, but I cannot get the automatic numbers to be any color other than black. How can I change the color to something else? (:markup:) (:table border=1 cellspacing=5% frame=border rules=none width=100% :) (:cell width=15% :)%purple%Column1: (:cell width=85% :)%purple%blah blah (:cellnr:)%green%Number: (:cell:)%green%12345 (:cellnr:)%purple%Description: (:cell:)%red%this is the description (:cellnr:)%purple%Notes A: (:cell style="color:blue":)%purple% #%purple%this is the first note #%purple%how do I make the note numbers appear in a different color?? *%purple%no, not working (:cellnr:)%purple%Notes B: (:cell:)%purple% %purple%#%purple%this is the first note %purple%#%purple%how do I make the note numbers appear in a different color?? %purple%#%purple%no, not working ''- order of style and bullet is wrong'' (:cellnr:)%blue%More: (:cell:)%green%more data here (:tableend:) (:markupend:) A: Asked and answered ---- Q: (2006-05-02) Automatic population of the [[AuthorTracking]] field -> Running PmWiki as an intranet in a fully windows environment, is there any possibility of hiding, but populating the Author name field from (say) Windows authentication, so that the author for every change is captured (and does not need to be entered (and cannot be changed) by the user) A: Web-pages (such as the wiki) are quite limited in what they can "spy" from page viewer, to protect viewer's privacy - and Windows user-name is among things not revealed. One possible method might be to fill the author name based on user's IP - but that's useful only if there won't be more than one person using the same computer. Second possibility might be requiring users to use passwords - that would make it reasonably impossible for people to pretend others - but wouldn't solve the problem of not needing to login. Then, storing password and login in a cookie would help - but cookies aren't a safe place when used in such way. Finally, it's possible to imagine an external program, installed on users' machines, doing some additional identification work - but it'd be quite a challenging programming task. I don't have any more ideas now. ->[-''~[[~MateuszCzaplinski]]''-] ---- Q: (2006-04-28) I just upgraded my wiki from a 2.0.xxx beta (I installed it on 9-15-2005) to 2.1.5. My image upload seems to be broken now. When I go to the upload page, it displays links to the images that are in myurl/pmwiki/upload/, but each link is of the format myurl/pmwiki/pub/upload/Main/image.jpg. Is this a bug? Did I configure something wrong? A: I figured it out. The answer was on the uploads help page and described how to fix this via the config.php file. * $UploadDir = [="/home/john/public_html/uploads";=] * $UploadUrlFmt = [="http://www.john.com/~john/uploads";=] ---- Q: How do I change the group of many pages? I have made a lot of pages in the Sandbox and now I really like, what I did with PMwiki - but of course I want to get it out of the Sandbox and create a new group for these pages. How can this be done? A: If you have FTP file access to the wiki.d directory, the easiest way is to rename the files with the new group name. A: You could also see if the [[Cookbook:RenamePage]] recipe will do what you want. ---- Q: Is there a way to access today's date (a PHP function) to, say, show overdue items in red, or items due today in black? A: What is an overdue item? Is it a wiki page with a due date string as the page name perhaps? Or how would the due date be present in the page (we need page properties here, but pmwiki has not quite go them yet)? You could define a page variable for today's date in config.php, for instance like ->[@# add page variable {$Today}, formats today's date as yyyy-mm-dd $FmtPV['$Today'] = 'strftime("%Y-%m-%d", time() )';@] and then you could compare today's date with the page's due date as the page name: use conditional markup like [@(:if equal {$Today} {$Name}:)The item is due today(:if:)@] Something similar could be used in a pagelist using a special custom format, so the pagelist will list items(pages) in a group, and will highlight today's due pages. ---- Q: Is it possible to always open external sites (for example wikipedia.org) in a new window without always typing [=%newwin%?=] A: Add to config.php: ->[@$UrlLinkFmt = "\$LinkText";@] ---- Q: When I put the following in the wiki: (:markup class=horiz:) %center%centred text %right%right aligned text (:markupend:) then BOTH pieces of text are centered; how do I delimit the scope of [=%center%=] !? A: Sometimes adding [=%%=] to the end of the line (not paragraph) can help - but not in this case, but this may help (:markup class=horiz:) %center%centred text %right%right aligned text (:markupend:) A: The default scope is the paragraph. Insert a blank line to start a new paragraph to make it work. I'm not if it is possible without a new paragraph which also adds vertical space in between. If you cannot live with the vertical space you can still use pure HTML in this special case. Q: But the WikiSyles page claims "the style is applied to any text that follows up to the next wikistyle specification or the end of the paragraph, whichever comes first", but [=%right%=] *is* a wikistyle specification before the end of the paragraph, so why doesn't the scope end there?! A: A solution for this is in development. ---- Q: Some people has problem with editing a site. Seems that there are problem with some browsers with long lines in forms. Or it is a Wiki bug? I am using latest version. Also the RyeVoting extension seems to have problems sometimes... but can it be the browser? Thanks! If you could be more specific, maybe someone could help. At the moment, I believe there are unfortunately way too much ''some''s in your question. ---- Q: About search/pagelist results: Is there a way to either list matches in the name of the page before the normal results (ie searching for "pie" puts anything with "pie" in the pagename at the top of the list, results with "pie" only in the page below that), or to limit it to only looking for matches in the pagename? A: By default the search looks at page content. But you could do a special "name with wildcards" search, which will only look at page names, by entering @@name=*searchterm*@@ into the searchbox. ---- Q: I want to set up a "did you know" function on my front page. I tried to use the RandomQuote markup at first, which works but it can only do one line. I want it show about 5 "did you knows". How would I go about setting this up? I tried just adding the markup a few more times but that doesn't work, just uses the same quote everytime. A: the new random quote script can have several include random directives, and they won't repeat on one page. ---- Q: I do not want users to be able to show images from other websites on open wiki pages (I'm worried about getting into trouble for "bandwidth Theft")... Is there a way to disallow linking/displaying of offsite images? A:See [[PmWiki/UrlApprovals]]. But it does not differentiate between links to images or links to web pages for instance. I think it would be good to ask the question on the user list. ---- Q:How do I make the search box search for uploaded files? A: You can't. search searches the wiki pages, not the upload directory. ---- Q: How do I stop users from creating new groups? Sorry if this is obvious, but it isn't included in the documentation on groups and it's difficult to search for. Thanks. A: See [[Cookbook:LimitWikiGroups]] Thanks alot. That's exactly what I needed. Maybe there should be a link to that page in the documentation on groups? Anyways, I <3 pmwiki! [[~Mike]] ---- Q: How does one prevent words from extending beyond menu borders when using extended menus cooks? A: If words are too long it usually requires a change to the skin's css stylesheet to make the whole sidebar wider. ---- Q: Can I force SSL for a page? I have a single page that I would like to force SSL to without forcing SSL to the rest of the site. I've seen how to force SSL for the entire site, but I don't want to do that. A: Try putting such lines: [=if( $pagename == 'Your.Page' ) { foobar }=] in your local/config.php file, where ''foobar'' is the "entire-site" solution you're talking about. Maybe that can help you. ---- Q: How can I embed selected PmWiki page content inside an existing web page? Basically, I'd like to add an edit capability to selected pages. Their layout is content managed and different, they already posses a group / menu structure. A pmwiki layout template admits some per page individualisation but does not integrate with the existing solution. Thus I don't want to outsource them as a separated wiki but I imagine embedding wiki page content like this [@ ...
... ''custom layout and stuff''\\The next paragraph shows a list of common questions, feel free to add yours.
\\ ...\\ @] Apparently, this approach should disallow the creation of new wiki pages and makes no use of the pmwiki group structure. As far as I noticed, pmwiki.php fetches the $pagename from POST, GET etc. parameters. Encapsulated the follwing page processing in a function pmwiki_page_content($pagename) presumably would suffice as the pmwiki page layout already can be configured down to bare bones. ---- Q:I have one WikiFarm with 8 fields and I would to know if it's possible to open a page of my field1 in my field2, like if the page is on the field2, without be redirect by a link on the field1 ? Thanks! A: see [[Cookbook:IncludeFieldPage]]. ---- Q:I saw that support for groups of users ("authentication groups"?) were added in 2.1beta8, but have been unable to find any information on how to configure such groups. I have a wiki that's basically closed to non-members, but would like to make a certain subset available to several collaborators. I'd like the ability to make different sets of pages available to different individuals and would like it user-based, not just a password for a group of pages, as that's not very secure and harder to manage in the long run. Does the authentication groups mechanism added in beta8 support what I'd like to do? Is there a document somewhere on setting up these groups? Thanks! A: See [[Site.AuthUser]]. ---- Q: Under Authentication Groups at the bottom, it says: This page can be used to define custom authorization groups (indicated by a leading "@" sign): # @editors: alice,bob # charlie: @editors,@visitors ... what is "This page" where we can define these groups in this format? Should I: $AuthUser['@editors'] = 'alice,bob'; or $AuthUser['@editors'] = 'id:alice id:bob'; or, hopefully, is there some file or page where I can actually just define it as specified in [[Site.AuthUser]]? A: %Pm% A: "This page" is the Site.AuthUser page itself -- edit the Site.AuthUser page to define groups. --[[~Pm]] ---- Q: The AuthUser groups functionality doesn't seem to work as I'd expect it: I want to keep the records of the users outside of the pages (eventually in a mySQL database). At the moment I have a .htpasswd* file thus: #... Dave Test:$1$iU3.Dz1.$aPCjq./rHgsFNR/391cdU. #... @editors: Dave Test In the config.php I have $AuthUser['htpasswd'] = 'local/0.htpasswd'; *The file is called 0.htpasswd because windows won't allow me to have a file without a name; well it won't let me create one. Where am I going wrong? ''Just to add an extra bit'' Dave Test can log into the wiki with the password "@editors", which isn't what I want at all! The wiki is going to be used for collaboration in a similar style to Lotus Notes - unfortunately I can't give access because it's behind several firewalls... Alan ---- Q:Is it possible to change the file names create automatically by PmWiki? The files I'm talking about are: Category.Category; GroupName.RecentChanges; GroupName.AllRecentChanges; Site.Form;Site.Preferences;Site.Search;Site.GroupAttributes;Site.PageNotFound;Site.PageActions and all the files that have a fixed name for it.I'am doing a site in Brazilian portuguese language and they also requested to change the name of the files and It got me worried about loosing some functionality. Thank you. A: Yes, nearly all filenames can be changed via various configuration variables in PmWiki. I'll see about compiling a list. ---- Q: I want to create a three level hierarchy for my wiki. A.B.C I read about categories and tried to use it but still if I am on Site C and want to go back to A.B pmwiki wants to create a new B Site. With A.B going back to A everything works fine. And I dont understand this subpage markup stuff. Is there a possibility for Non-Coders to create three level hierarchies? A: See [[PmWiki.HierarchicalGroups]]. ---- Q: Is there (or will there be) a way to include OpenDocument text in PmWiki as an alternative way of "Basic Editing"? (Currently you have to decide wether a text may be reusable or not. If the text may be reused someplace you won't put it in the wiki as you would have to do all the formating again after including the text in Word. ---- Q: Help! On our "All Recent Changes" the Wiki now resorts to using a ? for the author rather than the actual author's name (after logging in). Any ideas of how to solve this? Thank you in advance. [= Main.HomePage . . . Mon 14-11-2005 12:22 by ? Calendar.20051102 . . . Thu 10-11-2005 15:05 by ? Main.SideBar . . . Thu 10-11-2005 14:20 by ? TechUpgrade . . . Thu 10-11-2005 12:39 by Liam =] ---- Q: I keep getting this error after I copied over my wiki.d/ and config.php to a new server, any ideas as to why? Parse error: parse error, unexpected $ in /var/www/htdocs/pmwiki/pmwiki.php(816) : regexp code on line 1 [=Fatal error: preg_replace() [function.preg-replace]: Failed evaluating code: ' '.str_repeat('