Re: Plugins in a mardown flowered wiki

2024-07-23 Thread Peter Hormanns

hi juan pablo,

I experimented further.


In WikiMarkup I would use:
[{WikiTags HashTagOne HashTagTwo OtherHasTag}]()


This type of plugin works!


[{WikiCSS

html {
  font-family: Lato,sans-serif;
  font-size: 16px;
  color: #666;
   }
}]()


This type of plugin only works if I don't use spaces in the body of the 
content. My plugin expects a blank line at the beginning. At the moment 
I am helping myself with a comment.


Something like:

[{CustomCSS
/* Comment as a workaround */
html {
   font-family: Lato,sans-serif;
   font-size: 16px;
   color: #666;
}
}]()

Thank you for your support

--
Peter Hormanns - Informatikbüro Hormanns & Wenz
http://www.hormanns-wenz.de - Tel 02151 3274911
Peter Hormanns - Hafenstraße 17 - 47809 Krefeld


Plugins in a mardown flowered wiki

2024-07-19 Thread Peter Hormanns

Dear JSPWiki-Community,

I have a question about plugins, in a JSPWiki that uses Markdown as 
markup language.


I could use plugins that use simple parameters as key-value pairs. But I 
could not use plugins where the call line or the plugin body is 
evaluated. Is there a chance?


In WikiMarkup I would use:

[{WikiTags HashTagOne HashTagTwo OtherHasTag}]

or

[{WikiCSS

html {
font-family: Lato,sans-serif;
font-size: 16px;
color: #666;
 }
}]

Is it posible to use plugins like that in markdown?

Best regards, Peter

--
Peter Hormanns - Informatikbüro Hormanns & Wenz
http://www.hormanns-wenz.de - Tel 02151 3274911
Peter Hormanns - Hafenstraße 17 - 47809 Krefeld


Re: Configuring a public JSPWiki instance for private use

2017-10-04 Thread Peter Hormanns

Am 03.10.2017 21:09, schrieb Jürgen Weber:

I followed Dave's blog entry at

https://blog.davekoelmeyer.co.nz/2014/07/20/configuring-a-public-jspwiki-instance-for-private-use/

Has someone tried to keep the front page public? (i.e. to give a
friendly reason for the rest of the pages being private)

I tried to give all front facing pages [{ALLOW view ALL}]
but still only the login prompt.


Hi Juergen,

put the ACLs into jspwiki.policy :

Something like

grant principal com.ecyrd.jspwiki.auth.authorize.Role "All" {
permission com.ecyrd.jspwiki.auth.permissions.PagePermission 
"*:LeftMenu", "view";
permission com.ecyrd.jspwiki.auth.permissions.PagePermission 
"*:LeftMenuFooter", "view";
permission com.ecyrd.jspwiki.auth.permissions.PagePermission 
"*:Main", "view";
permission com.ecyrd.jspwiki.auth.permissions.PagePermission 
"*:Impress", "view";
permission com.ecyrd.jspwiki.auth.permissions.PagePermission 
"*:Forbidden", "view";
permission com.ecyrd.jspwiki.auth.permissions.WikiPermission "*", 
"login";

};

"Main" ist my front page.

Best regards,
Peter


--
Peter Hormanns - Informatikbüro Hormanns & Wenz
http://www.hormanns-wenz.de - Tel 02151 3274911
Peter Hormanns - Hafenstraße 17 - 47809 Krefeld