Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Change the default form
I´m using the article_image
but this one don´t show the thumbnail.
<txp:permlink>
<h2>
<txp:title />
</h2>
<txp:article_image thumbnail="1" />
<txp:excerpt />
</txp:permlink>
Sonríe | Smile . <txp:lover />
Offline
Re: Change the default form
Even if it showed, it would probably generate invalid html. Try
<h2><txp:permlink><txp:title /></txp:permlink></h2>
<txp:if_article_list>
<txp:permlink><txp:article_image thumbnail="1" /></txp:permlink>
<txp:excerpt />
<txp:else />
<!-- your individual article tags-->
</txp:if_article_list>
Last edited by colak (2009-10-08 16:51:15)
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
#15 2009-10-08 18:23:57
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Change the default form
sebatorresi wrote:
I´m using the
article_image
but this one don´t show the thumbnail.
Tested your code to make absolutely sure not to miss a fault, but it works for me. Are you sure there is no rest of image tags anywhere, e.g. on your page, in the article body/excerpt or in some other form, plus you forgot to enter the image ids on the Write Tab of each article?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
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,306
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,306
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