Little hack needed :)

Hi!
I hope I didn't bore you :slight_smile:
One more question

I use field #SOUSTITRE (articles) for storing tha name of person.
So information of this tag consist of 2 or more words.
Sometimes I need to show #SOUSTITRE as usual, but sometimes
I need to change order of words. Are any standart methods
for doing that?

If not, where I had to hack php code to create a new tag,
that shows #SOUSTITRE in a new way? I hope here only one
file need to be changed :))))

Any advices are greatly welcome!!!!!

Thanks for your helping

--
Sergey mailto:ss@krai.com.ua

For we shall win through no matter the cost

2006/6/8, Sergey Markitanenko <ss@krai.com.ua>:

I use field #SOUSTITRE (articles) for storing tha name of person.
So information of this tag consist of 2 or more words.
Sometimes I need to show #SOUSTITRE as usual, but sometimes
I need to change order of words. Are any standart methods
for doing that?

If not, where I had to hack php code to create a new tag,
that shows #SOUSTITRE in a new way? I hope here only one
file need to be changed :))))

Creating a new filter is easy :
In 1.8.3, you have to create a file named "mes-fonctions.php3" at the root.
In this file, you place a function with a name identical to your
filter. This file must have at least a parameter (the html content)
and return a string (this content modified)

You have some exemples
here : Display date and time in the visitor's timezone - SPIP-Contrib
or here : Resize images in articles on the fly - SPIP-Contrib

With the same method you can create your own tag :
exemple documented here :

my 2 cents,

.Gilles
PS.: our english documentation is actually poor, but with the next
version it should be better.
--

Any advices are greatly welcome!!!!!

Thanks for your helping

--
Sergey mailto:ss@krai.com.ua

For we shall win through no matter the cost

_______________________________________________
spip-en@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-en