[pmwiki-users] Using WikiTrails and PageList to Compile Pages
I've got a WikiTrail of pages, the core of which is Cosms.Orrorsh-TrailIndex . I use this as a general Table of Contents—via (:include :) inside an rframe—and at the bottom of each individual page (standard PmWiki markup) for an easy way to navigate the collection of pages. Both work beautifully. I can add and delete pages from the -TrailIndex, and everything updates as it should. I also have a separate page I want to use as a "Compilation." I used the PageList function, as so: (:pagelist trail=Cosms.Orrorsh-TrailIndex fmt=#include:) This, indeed takes all the pages from the TrailIndex and compiles their content into one page: http://stormknights.jasyn.org/wiki/index.php?n=Cosms.Orrorsh-Sourcebook Two problems: 1. I would like to insert the title—set via (:title :) on each separate page—as a header, right before the content from that page. I gather, from the documentation, this involves a custom PageListTemplate, but I cannot figure out (based on the examples) where to create that page, what it should be named, or what the markup should be. 2. When I compile all the pages, it includes the TrailIndex links with each page. I would like to suppress those, if possible. Again, I gather this could be implemented in a custom PageListTemplate, but I can't figure out the markup. Thanks in advance for any help. - - Jasyn Jones jasynj (at) gmail (dot) com "To strive, to seek, to find, and not to yield." "Ulysses" by Alfred, Lord Tennyson ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] text and image as link content in same [[ ]]
On Sun, Mar 11, 2012 at 13:44, wrote: > Hi > > I am trying to put some text and an image in the same link markup: > [[ linktarget | some text goes here http://host/image.ext ]] > > This is necessary in order to trigger the hover state of the text when the > mouse cursor moves over the image. This also why I cannot use separate link > markups, e. g. text in another link wikimarkup than the image. > > Can this be achieved using readily available pmwiki markup or do I have do > define a custom markup for that in config.php? Hi, Feel free to have a try on the DomTT recipe, which implement the kind of features you're looking for. -- Dominique ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Bug in Trails?
> > I see the following when using ^|Indexpage|^ on "Noah": > > > > Indexpage | Genesis | Noah > > > > Indexpage is just a name (should have been a link) > > Genesis is a link > > Noah is a link (should have been just a name) > > To have a link to the index page, use a link to the index page: > > ^|[[Indexpage]]|^ Yes. That solved it. Thank you! I should have known. Now that you say it I read it also in the documentation. My fault. > The self-link on the current page is probably an error... > In this case, to remove the self links, you have two options: > > 1. Set in config.php a plain text format for all self links: > > $LinkPageSelfFmt = '$LinkText'; > ... etc ... Thank you so much. All problems are solved. Ulf ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] unable to retrieve edit form Site.EditForm following latest update
Hello. As you may imagine, we do test and use the latest version of PmWiki on different servers, operating systems and hosting providers. I believe you but I have only been able to experience the problem you describe in two cases: - a problem with filesystem permissions on the wikilib.d or wiki.d directory and/or single files like wikikib.d/Site.EditForm; this could be fixed with your FTP file manager for example; - incorrectly set wiki permissions when the author trying to edit a page (for which he has "edit" permissions), doesn't have "read" permissions for the Site.EditForm page; this could be fixed by setting the correct permissions, see: http://www.pmwiki.org/wiki/PmWiki/Passwords http://www.pmwiki.org/wiki/PmWiki/PasswordsAdmin Nothing has changed in PmWiki from version 2.2.35 to 2.2.36 that could cause a sudden lock of the editing, but if I could see and test in realtime a wiki that has this problem, I may find a way to fix it. If someone having this problem could give me FTP or SSH access to the their server, if possible with both an older working and the latest non-working installations, I'll look into it. Please contact me off-list to give me more information. My public SSH key is here: http://notamment.fr/common/petko-ssh-pub.txt in case you know how to use it. Thanks, Petko Clemens Gruber writes: Hi, same issue here! Wiki works fine if I only read it, but as soon as you try to edit a page the error message as described under http://www.pmwiki.org/wiki/PmWiki/ErrorMessages#editform is processed. I have updated form version 2.2.35 to 2.2.36, no additional Site.EditForm in wiki.d. I downloaded pmwiki-latest.zip (2.2.36) multiple times and copied it also to the server several times, so I think this is no copy issue. Also I compared the two Site.EditForm's it seams that the versions from 2.2.35 and 2.2.36 are identical. http://www.pmwiki.org/pub/pmwiki/pmwiki-2.2.36.tgz vs. http://www.pmwiki.org/pub/pmwiki/pmwiki-2.2.36.zip makes also no differences, so I think its a bug in the newest release. ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] text and image as link content in same [[ ]]
a.sonderh...@gassi-tv.de writes: I am trying to put some text and an image in the same link markup: [[ linktarget | some text goes here http://host/image.ext ]] Can this be achieved using readily available pmwiki markup or do I have do define a custom markup for that in config.php? Sorry, there is currently no core markup that does this and I coundn't find a clean way to add it to the core. So I'll leave it to recipe authors. Petko ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] how to access configuration variables from skin scripts
Sorry for my late reply. You are using PmWiki in unusual ways so I had to find some time to test the thing. a.sonderh...@gassi-tv.de writes: > $HandleBrowseFmt = array(&$PageStartFmt, &$PageRedirectFmt, &$PageEndFmt); This works as well, though not exactly like I was hoping to use it. I was hoping to use a directive like this in the skin template’s php file (where I have all the skin related conditional stuff). You can set this line in pub/skins/yourskin/yourskin.php if you declare the 4 variables global. In which order are config.php and skin.php(1) evaluated? config.php is used very early, long before a skin-template.php file. E. g. can I define a global variable in skin.php to conditionally use the var in config.php? No. Or are there other ways to achieve this? I hope that I have correctly understood your need and I hope that the above line in a template-skin.php file with a global declaration will work for you. Petko ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users
Re: [pmwiki-users] Bug in Trails?
Ulf Bro writes: # Genesis ## Adam ## Noah I see the following when using ^|Indexpage|^ on "Noah": Indexpage | Genesis | Noah Indexpage is just a name (should have been a link) Genesis is a link Noah is a link (should have been just a name) To have a link to the index page, use a link to the index page: ^|[[Indexpage]]|^ The self-link on the current page is probably an error, but it is not technically trivial to remove the link while keeping the link text in different cases: * [[Link]]ed with a suffix * [[Lini|+]] with a title * [[Link|with an alternative text]] In this case, to remove the self links, you have two options: 1. Set in config.php a plain text format for all self links: $LinkPageSelfFmt = '$LinkText'; This will remove the links from all self links, not only those in trail paths. 2. You can use CSS to style differently the self link. Add in your file pmwiki/pub/css/local.css (if it doesn't exist, create it) one of the following lines: /* for wikitrail selflinks only */ .wikitrail a.selflink {text-decoration: none; color: black;} /* for all selflinks, use instead of the previous line */ a.selflink {text-decoration: none; color: black;} This way, you will have a self link which doesn't look like a link but like plain text. Petko P.S. For this type of path wikitrails, some people prefer the ">" separator which can be set by adding to config.php such a line: $TrailPathSep = ' > '; ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users