Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#169 2009-02-24 23:26:55

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

hi all,

I surfed the pages of this thread but found nothing to solve my problem, so I ask.

Is there a way to render a linked section_list using zem_ir for the font.

I tried this, but i get only the non-linked list:

<txp:zem_ir font="home/files/BILLBRG_.TTF" wraptag="p" color="990000" fontsize="14" height="20" padding="0 0 0 10" position="left" trans="1"><txp:section link="1" title="1" /></txp:zem_ir>

any hint?

thank you
Simone (Italy)

Last edited by midmood (2009-02-24 23:27:11)

Offline

#170 2009-02-25 00:08:37

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

Re: [plugin] [ORPHAN] zem_image_replace, version 2

I remember I tried to create links a long time ago, but I gave up as I couldn’t find a way to make it work and use valid XHTML

Offline

#171 2009-02-25 00:42:27

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Els wrote:

I remember I tried to create links a long time ago, but I gave up as I couldn’t find a way to make it work and use valid XHTML

I manage to do it with the following code, but no XHTML validation :-(
The problem is the default ‘h1’ wraptag in the zem_ir plugin.
Do you think it’s possible to implement the plugin so that by putting wraptag=”“ it won’t output H1 by default?

<txp:section_list default_title='<txp:text item="home" />' include_default="1" wraptag="" break="" exclude="about,articles,cassa">

<txp:section name='<txp:section />' ><txp:zem_ir font="home/files/BILLBRG_.TTF" wraptag="p" color="990000" fontsize="10" height="16" padding="0 0 0 10" position="left" trans="1"><txp:section title="1" /></txp:zem_ir></txp:section>

</txp:section_list>

edit: i tried and modify the internal code of the plugin, putting “” as the default value for the $wraptag variable.
But i get no more than a rendering mess :-). I suppose this is due to the fact that the tag the plugin insert in the code, finally is <> (the brakets without any value inside of it).
The more I think of it, the more i get convinced that the solution is to assign a “null” value to the wraptag variable. In this way you can let txp:section tag to drive the presentational markup, and zem_ir just creating the image.

Sorry my english :-)

Last edited by midmood (2009-02-25 13:27:55)

Offline

#172 2009-02-25 17:57:53

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

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Maybe it’s easier to just replace h1 in the plugin code with span?

Offline

#173 2009-02-25 18:18:12

midmood
Member
From: Rome, Italy
Registered: 2007-07-20
Posts: 68
Website

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Els wrote:

Maybe it’s easier to just replace h1 in the plugin code with span?

sadly, not.
I tried every single tag allowed inside an anchor, but the image goes away

Offline

#174 2009-06-12 08:20:56

Kreeltje
Member
Registered: 2008-12-23
Posts: 21

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Hello everybody,

I have a small problem when using this wonderfull plugin.
When i use method=“img” it gives me the img with url which is great but it also gives me the “normal” text
after the image. Check it here .

This is my tage usage:
<txp:zem_ir fontdir="textpattern/fonts/" font="BROADW.TTF" method="img" depth="24" padding="3" backgroundcolor="#ffffff" fontsize="30"> <txp:posted format="%A %d %B" /> </txp:zem_ir>

Last edited by Kreeltje (2009-06-12 08:22:03)

Offline

#175 2009-06-12 14:54:29

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

Re: [plugin] [ORPHAN] zem_image_replace, version 2

That’s strange, the plugin tag seems to produce this:

<img src="/images/zir/df30f67bfffcde3c6db71751e92966e2.png" alt="TEST" title="TEST">Test</img>

which is invalid html as far as I know; it should be

<img src="/images/zir/df30f67bfffcde3c6db71751e92966e2.png" alt="TEST" title="TEST" />

It’s working for me without the method attribute, does it work if you remove that (or change it to one of the other values)?

Last edited by els (2009-06-12 15:01:09)

Offline

#176 2009-06-15 12:47:45

Kreeltje
Member
Registered: 2008-12-23
Posts: 21

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Els thanks for your reply.

It works without the method attribute, i wanted to use this because i want to use a dynamic div around the text.
I probably do something wrong.

Offline

#177 2009-06-15 20:46:47

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

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Kreeltje wrote:

i wanted to use this because i want to use a dynamic div around the text.

Can you explain that? I don’t quite understand what output you are trying to get that doesn’t work with the plugin tag without the method attribute. It’s always possible that there is another way to do it.

Offline

#178 2009-06-16 12:45:22

Kreeltje
Member
Registered: 2008-12-23
Posts: 21

Re: [plugin] [ORPHAN] zem_image_replace, version 2

OK i’ll try to explain :-)

I want to use the method=“img” because i want to the div around it to adjust to the text. If i dont use the method attribute, the div has no width because it will not be recongnized as content. So now i get this

I hope that you’‘ll understand my explaination.

Greets Kreeltje.

Offline

#179 2009-06-16 17:03:26

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

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Kreeltje wrote:

the div has no width

<nl>Aaah, ‘t kwartje valt! ;)</nl>

Let me think about that. The most logical solution seems to be to modify the plugin code, so that it produces a proper <img /> tag, but I don’t know if I can figure that out… I’ll post back later.

Offline

#180 2009-06-17 15:49:56

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

Re: [plugin] [ORPHAN] zem_image_replace, version 2

Kreeltje, if you use method="dwyer" the wraptag gets a width. Does that help you?

Offline

Board footer

Powered by FluxBB