CustomWikiStyles-Talk
Can Custom Wiki Styles be definded within skins?
Setting $WikiStyleApply['link'] = 'a';
within config.php works, but setting it within a skin in skin.php doesn't work. How can I implement a custom style within a skin? --SiegfriedSeibert - 2022-02-14, 12:20 MEZ
You probably need to declare the $WikiStyleApply
variable global. --Petko
Thanks. In skin.php I declared all the variables out of scripts/wikistyles.php as global ("global $UrlExcludeChars, $WikiStylePattern, $WikiStyleRepl, $WikiStyle
, $WikiStyleAttr, $WikiStyleCSS, $WikiStyleApply
, $BlockPattern, $WikiStyleTag, $imgTag, $aTag, $spanTag, $WikiStyleAttrPrefix;"). But it still did not work. Any other place where it has to be declared? Or any other idea? SiegfriedSeibert
%apply=link bgcolor=yellow% [[link]] %%
should work. For the shortcut %link bgcolor=yellow% [[link]] %%
to work, you probably need to also add one more line: global $WikiStyle, $WikiStyleApply; SDVA($WikiStyleApply, array('link' => 'a')); SDVA($WikiStyle, array('link' => array('apply'=>'link')));Petko
Thanks, Petko. This works as desired. The important thing seems to be, to declare $WikiStyle
and $WikiStyleApply
per SDVA(...). -- SiegfriedSeibert - 2022-02-14, 14:45 MEZ
I've got following problem and workaround fixing it in all versions of PmWiki. If you can proof that, too, you might move this hint to the FAQ of CustomWikiStyles.
Hopefully helped
Matthias Derrer? October 14, 2014, at 04:05 AM
Problem
Combining the attributes %lframe% or >>lframe<< with unordered bulleted lists right beneath will cause problems in showing the list.
Here's the list that isn't shown well
- point 1
- point 2
- etc.
Even through multiple points (** or ***) the problem isn't solvable.
Workaround - my alternative
Code
(:table:) (:cellnr width=200px class='frame lfloat':) ... (:cell:) ... (:tableend:)
View
Combining the attributes %lframe% or >>lframe<< with unordered bulleted lists right beneath will cause no more problems in showing the list. |
Here's the list that now is shown well
Probleme solved :-) |
Or you can use inline-block
>>lframe width=200px<< Combining the attributes [=%lframe%=] or [=>>lframe<<=] with unordered bulleted lists right beneath will cause problems in showing the list. >><< (:div style='display:inline-block;':) Here's the list that isn't shown well *point 1 *point 2 *etc. Even through multiple points (** or ***) the problem isn't solvable. (:divend:) |
Combining the attributes %lframe% or >>lframe<< with unordered bulleted lists right beneath will cause problems in showing the list. Here's the list that isn't shown well
Even through multiple points (** or ***) the problem isn't solvable. |
This is a talk page for improving PmWiki.CustomWikiStyles.