[pmwiki-devel] Custom markup to create a link followed by text
Chuck G
cgpmw13 at codingmaniac.com
Thu Jan 14 12:45:49 CST 2016
Randy Brown <randy at brownragfilms.com> Wrote in message:
> I?d like to create custom markup to display a link followed by a page text variable of the target page, with the PTV sized slightly smaller. The markup would look like this: [[target|$]] and it would generate this: [[MyPage|My page title]] [-{MyPage$:MyPTV}-]
> The PTVLinkText recipe comes closest to doing this, but I haven?t been able to tweek that to produce what I want. In particular, I don?t know how to attach text after the link in the returned value.
> # This doesn?t work Markup_e('[[|$?, '<[[|', "/(?>\\[\\[([^|\\]]+))\\|\\s*\\$\\s*]]/?, "Keep(MakeLink(\$pagename, \$m[1], PageVar(\$pagename, '\$Title') ),?L?)?.?[-PageTextVar($pagename, MyPTV)-]?.);
> Suggestions?
> Randy
Not sure if this is a problem, but I notice that some of your
quotes and approstophes are oblique versions. You might try
setting your program editor charset to ascii.
Chuck G
--
----Android NewsGroup Reader----
http://usenet.sinaapp.com/
More information about the pmwiki-devel
mailing list