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="http://ref.to.image.jpg" 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 Path:../relative/path/to/image.jpg > 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. > > (:bqend:) If you're ok with having the same effect with a different tag, try the following: >>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. eemeli _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users