jmohler1970 / Pluma

PlumaCMS
GNU General Public License v3.0
1 stars 0 forks source link

Filter mechanism #64

Open jmohler1970 opened 11 years ago

jmohler1970 commented 11 years ago

We need a variable substitution like

[searchform] or [searchform()] [search(rc.search)] Perhaps tag, archive, parent also fall into this.

[gallery(rc.gallery)]

[profile(rc.slug)]

It has to know what to do when the variable is not there.

There has to be a registration. Maybe this is the definition of a plugin filter.

The preload of all variables is just not the right approach

jmohler1970 commented 11 years ago

Perhapw we do a 2 stage stub substitution:

profile(rc.gallery)# becomes: #application.GSAPI.run_plugin("profile")#" and then rc gets push in always.

OR

instring = evaluate(replacelist(instring, '(%,%)', '#application.GSAPI.run_filter(",", rc)'));

Can component also get changed over?