Loading...
 
Features / Usability

Features / Usability


Assigning Quicktags

posts: 131 Singapore

I read form the QuickTagsMostWanted page comments that you can assign a customized quicktag to the list of existing quicktags display.

I have created one but is not sure how you can link this customized quicktag to a plugin (for example the BR() plugin) so that you can click on the plugin instead of having to type it out??

TIA.

--kwow

posts: 4656 Japan

> I read form the QuickTagsMostWanted page comments that you can assign a customized quicktag to the list of existing quicktags display.
>
> I have created one but is not sure how you can link this customized quicktag to a plugin (for example the BR() plugin) so that you can click on the plugin instead of having to type it out??

Click on the ))QuickTags(( item in the Admin (tiki-admin_quicktags.php), and fill in the
Create/Edit ))QuickTags(( form, something like this:

label:br	
Insert (use 'text' for figuring the selection):{BR()}{BR}		
Category: wiki, tracker, etc.: wiki	
Path to the tag icon: images/ed_br.png (for example)

You'll have to make an image (I may beat you to it, so check my zukakakina.com downloads section if you want.) and upload it to the images directory.

Just in case anybody is wondering where this BR plugin came from (it isn't part of the Tiki archive), I made it for kwow so he could get linebreaks inside of tables on wiki pages that don't have "Use HTML" enabled. The plugin is available here. It inserts an HTML linebreak tag and can be used without breaking the wiki table syntax.

-- Gary

posts: 4656 Japan

....
> Click on the ))QuickTags(( item in the Admin (tiki-admin_quicktags.php), and fill in the
> Create/Edit ))QuickTags(( form,

I thought uploading the image and refreshing the page would enter the image name in the dropdown list, but it didn't happen. I ended up assigning the new ))QuickTagan image from the list and then editing the tiki_quicktags table withphpMyAdminto give the tag the correct image name. Seems that the CreateQuickTags(( dropdown list isn't built from reading the image directories, but from existing data in the tiki_quicktags table, and there's no front-end way to add to the list. confused

-- Gary

posts: 1092

After a quick look at the code.
The images must be a .gif or .png file with a name containing alpahbetic letters and .-_
The files must be in one of the directories: "images","img/icons","img/icn"
I tried one image with no problem
... strange...
sylvie

posts: 131 Singapore

Thanks Gary. You made my daywinkwink You beat me to the icon. smile

> Just in case anybody is wondering where this BR plugin came from (it isn't part of the Tiki archive), I made it for kwow so he could get linebreaks inside of tables on wiki pages that don't have "Use HTML" enabled. The plugin is available here. It inserts an HTML linebreak tag and can be used without breaking the wiki table syntax.

Just for info, this plugin in now included in the standard distribution of Tiki version 1.9.1. Pleasantly, this is not the only one, there are other new plugins included - mostly from the kind contribution from Colorado. cool