|
Cookbook /
Light Skin CommentsThese old comments were moved from the Light Skin page in order to keep that page shorter and easier to read.
It's a good suggestion, Marc. Ironically, I read about <!--wiki:--> markup in the new PmWiki.SkinTemplates page and was considering how it wold be useful. Did you mean to include $Group.PageFootMenu in that line? If so, why have $Group.PageFootMenu in there? Ups, sorry that was a cut and paste error... It should be only The following code in light.php will show the (as-distributed) Admin Bar only if you have admin authorization.
if (CondAuth ($pagename, 'admin')) {
SetTmplDisplay('PageAdminFmt', 1);
} else {
SetTmplDisplay('PageAdminFmt', 0);
}
I think a good way to do it might be something like <!--wiki:$Group.AdminBar--> <!--wiki:$SiteGroup.AdminBar--> and putting the whole table in a wiki page. Right now I can't think of any important group-specific links that would go into $Group.AdminBar. Another thought is to include a capability to use something like a 'skinconfig.php' script and not mess with including wiki pages. No matter what, the equivalent to an (:if auth admin:) will be used. The admin bar is in an extremely early stage right now. My main focus at this point is to figure out which links might belong in the admin bar (or elsewhere). The list is growing.
Yes, there are many possibilities. For me there are some more like:
and some more. The fact is that I dont want to show the links to everyone because that doesnt make a website saver :) MarcSeibert August 31, 2005, at 04:37 AM
HOW TO SETVIEWS Love the skin... but i want it to always default to what you use as an example "demo3" from start to finish on all pages. I thought the way to do it was to set the default view in the lightviews.php as follows: if (empty($View)) { SDV($View, 'demo3'); but that did not work...the view keeps changing. Where do i need to change to stay with the one look? Thanks for the great skin. First, I apologize for not noticing your note for so long! The answer is to set the view in a local configuration file (e.g. config.php). $View = 'demo3';
Alternatively you can place this CSS fileΔ at pub/css/local.css. I'm not sure what you mean by "the view keeps changing" though. Something to keep in mind is that browser caching via If-Modified-Since HTTP headers may require you to do a "full refresh" (SHIFT-Reload in Firefox, SHIFT-Refresh or maybe CTRL-Refresh in MSIE) to avoid retrieving pages from your browser's cache. (Reference) $EnableDrafts does not seem to work with this skin. When you edit a page, the "save as draft" button does not appear as it does with orginal pmwiki skin. jpg. Try version 16.2, which has the button added to the form. It's OK with 16.2. Thx, jpg HaganFox September 21, 2006, at 02:35 AM Problem with CommentBoxPlus There's something about the way this skin works that prevents the (:commentboxchrono:) action in the various CommentBox recipes from working for non-authenticated users. It would be nice to find a way to allow the CommentBox recipes to modify the page without requiring authentication. - gdb (09/02/2006) See if it works with version 0.16.3. Yes. This appears to be working correctly now. Thanks! - gdb (09/03/2006) Problem with CommentBoxPlus There's something about the way this skin works that prevents the (:commentboxchrono:) action in the various CommentBox recipes from working for non-authenticated users. It would be nice to find a way to allow the CommentBox recipes to modify the page without requiring authentication. - gdb (09/02/2006) See if it works with version 0.16.3. Yes. This appears to be working correctly now. Thanks! - gdb (09/03/2006) Please change "Attachments" by "Attach" in the topmenu as it is already translated (for fr and surely others).
Change also in Sorry, I didn't catch these in time because I didn't see your request, which was in my navy-blue reply div. Ready for 0.16.3? ;-) jpg I made the change to the last-modified line, but I still like "Attachments" better than the verb. Would it be much trouble to add a translation for "Attachments" to the XLPage? For me, it can be as you want! ;-) Attachments=Attachements in french. |