This pretty much works.

The image and div vs. p solutions worked perfectly. I even figured out how to hyperlink the images. If anyone is wondering its:

%img class=MyClass% [[ | placehoder.jpg"alt and title text"]]%%

For now, I'm okay with using (:div: class="MyClass":) rather than blockquotes, but I'd still *really* like to figure out how to code that. I try to be semantic as possible.

At any rate, I'll email you off list to see where to send your Money :)



On Mar 11, 2008, at 4:14 PM, Eemeli Aro wrote:

Apologies if any of the following is in error, I don't have the time
to verify the code just now.

On Tue, Mar 11, 2008 at 11:14 PM, Andrew Standfield <[EMAIL PROTECTED]> wrote:
1) How can I make it so that when I place an image, the block of text it
 is in is a [p] rather than a [div]?

I'm guessing that this happens only when the image is before any other
text on the line? If so, it's probably due to the '^img' markup rule.
I've found replacing default markup from a config file to be a bit
tricky given the way that the Markup function doesn't check if a rule
has been previously set. So, it's probably easiest for you to directly
edit the file scripts/stdmarkup.php & change the <div>s to <p>s on
line 324.

2) How can I apply a class (and/or an id) to an image in the form of: [p][img src=""; alt="Example" class="myClass" /] Blah blah blah.[/p]

Add the following line to your config file:

$WikiStyle['img'] = array( 'apply' => 'img' );

This will let you surround the image with the markup %img
...%YourImage.jpg%% and have any valid WikiStyles apply to the image.
Example: %img class=logo id=pm%Attach:pmwiki.png%%

 3) Is there any way to use relative paths for images (this one isn't
 all that important, but it would be nice)?

Use the "Path:" intermap format, ie. write
Path:/path/to/your/image.jpg or even

 Ideally, I'd like to mark it up like this (in actually using the
 wiki, that is):

        (:bq class="MyClass":)

        Blah blah blah blah.

        Yadda yadda.


If you're ok with having the same effect with a different tag, try the

indent MyClass id=bingle<<

Blah blah blah blah.

Yadda yadda.


That'll produce a div that's a member of two classes 'indent' and
'MyClass', and has the id 'bingle'. By default, PmWiki includes the
following CSS rule:

.indent { margin-left:40px; }

which makes it practically into a blockquote.


pmwiki-users mailing list

Reply via email to