Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1177 2012-06-14 20:41:52

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: zem_contact_reborn 4.0.3.20

I think I had that once. If I remember correctly, this helped in my case.

Offline

#1178 2012-06-15 07:51:30

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: zem_contact_reborn 4.0.3.20

@Els: Mm … I can’t get a .htaccess file (with ‘SecFilterScanPOST Off’) into /textpattern … !? … what has to be the precise content of that file, Els?

Last edited by RedFox (2012-06-15 07:53:24)

Offline

#1179 2012-06-15 08:28:47

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: zem_contact_reborn 4.0.3.20

And a new question …

Is it possible to feed <txp:zem_contact_select /> from outside?

Let say the owner of a site publishes an article about a new tango lesson and in the included form he/she wants that specific activity into <txp:zem_contact_select /> … I presume it has to be done via a custom_field … !? … but I’m a noob with this kind of things so some help is really appreciated.

Last edited by RedFox (2012-06-15 08:36:28)

Offline

#1180 2012-06-15 08:38:03

txpdevcoder
Member
Registered: 2012-06-07
Posts: 58

Re: zem_contact_reborn 4.0.3.20

something like this should work for you. I do this in an ordinary select but should work inside a zem_contact_select

<select id=“list”>
<txp:article_custom wraptag=”“ break=”“ section=“events” limit=“20”>
<option value=”<txp:title />”><txp:title /></option>
</txp:article_custom>
</select>

if you dont have an events section, switch that out and pick up on article catagories instead. that way they will come from anywhere in the site.

My bad. just realised zem_contact_select needs a list. something like this should work but not tested.. its off the top of my head.

<txp:zem_contact_select label=“Aktiviteit” list=’<txp:article_custom wraptag=”“ break=”“ section=“events” limit=“20”><txp:title />, </txp:article_custom>’ />’ break=”<em>*</em>” />

alternatively you can try <txp:variable /> instead of wasting a custom feild on it.

be advised that internet explorer will cut the select options off if they are too long and you have set a width on the select.

Last edited by txpdevcoder (2012-06-15 08:56:17)

Offline

#1181 2012-06-15 09:56:33

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: zem_contact_reborn 4.0.3.20

@txpdevcoder: Thanks.

The code that works almost perfect: <txp:zem_contact_select label="Aktiviteit" list="<txp:article_custom wraptag="" break="," category="formulier" limit="20" ><txp:title /></txp:article_custom>" break="<em>*</em></li><li>" />

But now there are UTF characters in the titles. See the form … how do I solve this?

Offline

#1182 2012-06-15 10:03:22

txpdevcoder
Member
Registered: 2012-06-07
Posts: 58

Re: zem_contact_reborn 4.0.3.20

I think its becase you have but the comma into the break tag, and TXP is converting it to html. You need to escape the caracter i think, or dont put it in the break. i put mine after the title tag, and left the break empty, did this not work?

Last edited by txpdevcoder (2012-06-15 10:07:27)

Offline

#1183 2012-06-15 13:10:45

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: zem_contact_reborn 4.0.3.20

No, it didn’t work … :(

The question is now how to escape the HTML … !?

Offline

#1184 2012-06-15 13:14:12

txpdevcoder
Member
Registered: 2012-06-07
Posts: 58

Re: zem_contact_reborn 4.0.3.20

usually it is a back slash, but maybe not for textpattern…. try:

<txp:zem_contact_select label=“Aktiviteit” list=”<txp:article_custom wraptag=”“ break=”\,” category=“formulier” limit=“20” ><txp:title /></txp:article_custom>” break=”<em>*</em></li><li>” />

Offline

#1185 2012-06-15 13:20:34

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: zem_contact_reborn 4.0.3.20

Try <txp:title no_widow="0" />


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#1186 2012-06-15 13:29:27

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: zem_contact_reborn 4.0.3.20

It works! Thanks uli and txpdevcoder … :)

But what does no_widow="0" do? The docs say > ‘- allow the last word in the title to appear on its own line, i.e. the title content is rendered unchanged’ … magic I suppose!

Last edited by RedFox (2012-06-15 13:38:19)

Offline

#1187 2012-06-15 13:30:57

txpdevcoder
Member
Registered: 2012-06-07
Posts: 58

Re: zem_contact_reborn 4.0.3.20

no problem, did the escape work or <txp:title no_widow=“0” />?

Offline

#1188 2012-06-15 13:40:12

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 805
Website

Re: zem_contact_reborn 4.0.3.20

@txpdevcoder: see my post before your latest …

Last edited by RedFox (2012-06-15 13:41:06)

Offline

Board footer

Powered by FluxBB