Plugin Champs Extra 2

Hello,

perhaps somebody can help me: I want to use the plugin "Champ Extra 2"
in SPIP 2.0.3. to generate some extra fields. Installation works fine,
but my question is: is it possible to limit some fields to certain
rubriques? (e.g. I want a special field "adress" only for the rubrique
"local shops", but only in this rubrique and not in another rubrique).

best regards
Heiko

Hi,

I think it is but don’t know really how.

If you read a bit French, you should drop an eye here : http://marcimat.magraine.net/Ajouter-un-champ-dans-une-table

I think you can manage with a slight modification on postscriptum_pipelines.php

if ($flux[‹ args ›][‹ type ›]==‹ rubrique › & id_rubrique = the one you wish ) … but you’d better ask someone else for the real php syntax to use :wink:

Good luck.
Etienne.

On Thu, Feb 12, 2009 at 9:07 AM, Heiko Jansen <heiko.jansen@rub.de> wrote:

Hello,

perhaps somebody can help me: I want to use the plugin « Champ Extra 2 »
in SPIP 2.0.3. to generate some extra fields. Installation works fine,
but my question is: is it possible to limit some fields to certain
rubriques? (e.g. I want a special field « adress » only for the rubrique
« local shops », but only in this rubrique and not in another rubrique).

best regards
Heiko


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

This must be the #1 request on this plugin. Someone needs to get her
hands into the code and add a config panel and so on.

-- Fil

Thanks for the answer, but my French is proudly presented by Babelfish
or Google Translate :wink:
so I'll have a look or - according to Fil's message - wait until
someone with more knowledge about plugin-making will fix this
No.1-Issue.

best regards
Heiko

On Thu, Feb 12, 2009 at 10:28, L'oiseau2nuit <l.oiseau2nuit@gmail.com> wrote:

Hi,

I think it is but don't know really how.

If you read a bit French, you should drop an eye here :
http://marcimat.magraine.net/Ajouter-un-champ-dans-une-table

I think you can manage with a slight modification on
postscriptum_pipelines.php

if ($flux['args']['type']=='rubrique' & id_rubrique = the one you wish ) ...
but you'd better ask someone else for the real php syntax to use :wink:

Good luck.
Etienne.

On Thu, Feb 12, 2009 at 9:07 AM, Heiko Jansen <heiko.jansen@rub.de> wrote:

Hello,

perhaps somebody can help me: I want to use the plugin "Champ Extra 2"
in SPIP 2.0.3. to generate some extra fields. Installation works fine,
but my question is: is it possible to limit some fields to certain
rubriques? (e.g. I want a special field "adress" only for the rubrique
"local shops", but only in this rubrique and not in another rubrique).

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

On Thu, Feb 12, 2009 at 9:43 AM, Fil <fil@rezo.net> wrote:

This must be the #1 request on this plugin. Someone needs to get her
hands into the code and add a config panel and so on.

Not sure this is the #1

This request has allready been made before, but not really handled as you suggest :stuck_out_tongue:

Etienne.
"Dear Santa, would you please bring me natural abilities in PHP for next Christmas ?
Even before if you have 5 minutes, i’ll get coffee ready…"

– Fil

Not sure this is the #1

It is for sure. Check the forum on spip-contrib.

-- Fil