Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-10-08 15:59:00

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

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

#14 2009-10-08 16:49:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#16 2009-10-08 18:37:45

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

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

#18 2009-10-08 19:11:10

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

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

#20 2009-10-08 19:39:15

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

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

#21 2009-10-08 19:46:20

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#22 2009-10-08 19:50:14

sebatorresi
Member
From: Spain
Registered: 2009-05-27
Posts: 105
Website

Re: Change the default form

Eso lo entiendo… pero no lo comprendo.


Sonríe | Smile . <txp:lover />

Offline

#23 2009-10-08 20:31:07

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

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

#24 2009-10-08 20:31:48

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: Change the default form

Para la imagen que tienes en el cuerpo del articulo, lo puedes borrar.

Offline

Board footer

Powered by FluxBB