Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Change the default form
I have this in my page and forms
Page
<txp:if_individual_article>
<txp:article form='work_detail' />
<txp:else />
<ul id="portfolio">
<txp:article form='work' />
</ul>
</txp:if_individual_article>
Form – work
<li>
<txp:permlink>
<h2>
<txp:title />
</h2>
<txp:article_image thumbnail="1" />
<txp:excerpt />
</txp:permlink>
</li>
Form – work_detail
<h2>
<txp:title />
</h2>
<txp:body />
In the article…
Body
<txp:image id="4" />
Excerpt
<txp:image id="4" />
Image file normal image and thumbnail image.
That is all
Sonríe | Smile . <txp:lover />
Offline
#17 2009-10-08 18:45:51
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: Change the default form
Alright, seems like we have the culprit :)
Please remove any image tag from any article text area (body, excerpt). Instead make use of the article image field on the write tab. Go look for the correct image ids on the image tab and enter them on the write tab where it says “Article image”, left hand side.
BTW: in your form “work_detail” you probably need <txp:article_image /> in case you want your original unscaled image to show up.
Sorry: PLEASE NOTE THAT I CHANGED THE FORM NAME TO work_detail, “work” was wrong.
Last edited by uli (2009-10-08 18:52:16)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Change the default form
oh oh
Are you saying that i have to put <txp:article_image html_id=“4” /> or <txp:article_image html_id=“4” thumbnail=“1” /> into the article? :| i think that i don´t understand very well.
Sonríe | Smile . <txp:lover />
Offline
#19 2009-10-08 19:31:45
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: Change the default form
Neither, nor, oh oh ;)
OK, perhaps a language problem. I’ll write slowly. ;)
Please take all tags out of all text areas on the Write tab.
You need to enter just numbers into the text field named “Article Image”, which is in left column.
In this case enter the 4 into the article where you want your image with an ID of 4 to appear.
For the other article I think I remember the 3.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Change the default form
Id XHTML attribute
Should be something like this? <txp:article_image html_id=“4” thumbnail=“1” />
edit
i put this into work form
:s
Last edited by sebatorresi (2009-10-08 19:44:10)
Sonríe | Smile . <txp:lover />
Offline
Re: Change the default form
Macho, tienes que quitar la imagen del articulo, y poner el “id” (numero) de la imagen en “article image”…
Offline
Re: Change the default form
Eso lo entiendo… pero no lo comprendo.
Sonríe | Smile . <txp:lover />
Offline
Re: Change the default form
Lo siento, queria decirlo de manera ligera sin causar molestia…
Es mas facil utlizar la excelente plugin upm_img_popper y upm_image para anadir sus fotos. Cuando esta instalado y activado, veras un link “Insert image” a la iquierda de la pantalla Write.
Cuando lo abres, veras todos sus imagenes. Selecionna la imagen que te guste y vera un link “Article image (append)”. Click alli. Veras “success”.
Abre “Advanced Options” y debajo “Article image” veras el numero correspondiente con la imagen seleccionado.
Espero que esto lo explica mejor, y espero no haberle ofendido!
Offline
Re: Change the default form
Para la imagen que tienes en el cuerpo del articulo, lo puedes borrar.
Offline
Re: Change the default form
Muchas gracias, lo probaré ahora y no ofendiste, se que debe cansar tantas pregutnas tontas :)
Ya contaré como va.
Sonríe | Smile . <txp:lover />
Offline
Re: Change the default form
Now is working!!!
Thanks so much for all the help and patience! :)
Sonríe | Smile . <txp:lover />
Offline
#27 2009-10-08 20:46:23
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: Change the default form
Abre “Advanced Options”
D’oh!
I can not name this a language problem! At least I was part of the problem, having my advanced options open all the time.
Seba, I saw the Eagle has landed. :)
Thank you, Barcelona! ;)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: Change the default form
:p
Thanks uli
Sonríe | Smile . <txp:lover />
Offline