Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-08-23 14:50:25

stef25
Member
Registered: 2005-12-26
Posts: 88

Re: bos_image_display works only 1x per page?

zanza, ok it works. problem was “galleries” – it should have been Galleries! it works with php 4 and 5 :-)


I need someone to protect me from all the measures they take in order to protect me

Offline

#14 2006-08-23 15:45:36

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display works only 1x per page?

Whoohoo! :)
Nice to hear! :)

Z-

Offline

#15 2006-08-24 11:00:11

stef25
Member
Registered: 2005-12-26
Posts: 88

Re: bos_image_display works only 1x per page?

here i am again with some annoying requests! At the moment, break=“li” wraptag=“ul” container=”“ title_tag=“span” generates this:

<code>
<li>
<span><a href=”#”>Text</a></span>
<ul class=“bos_image_index”>
<li><a href=”#”><img src=”#” /></a></li>
</ul>
</li>
</code>

would it be possible to get this instead: links tags wrapped around both the image and the text and no nested lists? this is quite a bit easier to style with css than nested lists …

<code><li><a href=”#”><img src=”#” /><span>Cambodia</span></a></li></code>

In this case there is only one link. for me it would be best to have the link point to the gallery, not a specific image in the gallery. I hope the code i propose above is valid xhtml, not sure

what do you think?


I need someone to protect me from all the measures they take in order to protect me

Offline

#16 2006-08-24 11:43:45

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display works only 1x per page?

No, nested list can’t be avoided but can easily be styled. It’s difficult to explain why I can’t avoid it. Anyway, you should be able to obtain your visual result anyway with css.

About linking to image or to gallery, the title actually link to the gallery and the image point to that image in the gallery. So, you have both the options. You could expand the link of the title over the image and obtain your result via css.

It’s impossible to give full control via tag attributes, because there are too much options and combinations. It’s already a quite flexible plugin, if you want to further customize you may need to tweak the code a bit to change some default behavior, maybe. As always, try to ask and we’ll see.

Z

Offline

#17 2006-08-24 13:35:32

stef25
Member
Registered: 2005-12-26
Posts: 88

Re: bos_image_display works only 1x per page?

zanza, thanks for this info;

are you saying i can expand the title link over the image using css? would that not involve moving the closing a-tag?


I need someone to protect me from all the measures they take in order to protect me

Offline

#18 2006-08-24 13:44:32

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display works only 1x per page?

No, it can simply be done using positioning, z-index and assigning an explicit width and height to the a to include the area of the inner ul. Also, minimize the area of the a of the image, and make it a lower z-index. Tell me if you need some help.

Bye

Z

Offline

#19 2006-08-24 14:49:48

stef25
Member
Registered: 2005-12-26
Posts: 88

Re: bos_image_display works only 1x per page?

zanza, i posted a test page here. it contains the html that is generated by txp and your plugin. i dont see how we can increase the height of some a-tags and decrease that of others, since they dont have separate classes … ? we would have use javascript DOM stuff for that, no? ideally i would want it to look like the homepage screenshot in the pdf above. the text would be below the image, if possible

anyway i would be very happy if you could take a look at this page :-)

http://sk-audio.org/zanza/test.html


I need someone to protect me from all the measures they take in order to protect me

Offline

#20 2006-08-24 16:38:24

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display works only 1x per page?

I’m doing some css trial, and it works fine on Firefox, not on IE. Maybe tomorrow I could try again. At the moment, maybe to you’d better change the code for your needs. Need more time, sorry.

Z-

PS: No way having the title at the bottom without tweaking the code!

Offline

#21 2006-08-24 22:06:51

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bos_image_display works only 1x per page?

After all what you need is reasonable, and css solution is not good.
So I changed the plugin (new version, 0.44) to include two more attributes in the bos_subcat_index. Use link_to_image=“0” (default is 1) to avoid the thumb linking to the specific image. This way you don’t need the css trickery, that isn’t robust.

I also added to_section attribute (same as bos_image_index), so you can have your album thumbs in the home point to another section/page template. This is useful to me. :)

About the title under the image, I could think about it next days, if you really need it. This is just enough for tonight! :)

Let me know if any problem. Bye

Z-

Offline

Board footer

Powered by FluxBB