file P&I - Implement image type with thumb

More
9 years 11 months ago #4273 by FabZ
Replied by FabZ on topic Re:P&I - Implement image type with thumb
Ok, solved for size3 :)

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #4274 by FabZ
Replied by FabZ on topic Re:P&I - Implement image type with thumb
carsten888 wrote:

what does {field_muti-size_x size=x output=alt} output?

only the alt text, if the alt text is left empty, then nothing at all.[/quote]

Ok, this could be the right template code:
<a class="highslide" title="{field_image_x size=1 output=alt}" onclick="return hs.expand(this)" href="{field_image_x size=1}" target="_blank"><img src="{field_image_x size=2}" alt="{field_image_x size=2 output=alt}" /></a>

Looking at firebug it doesn't seem {field_image_x size=2 output=alt} it outputs any alt text.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #4275 by carsten888
Replied by carsten888 on topic Re:P&I - Implement image type with thumb
beta 3 is uploaded. same link as before.

I changed the alt-tags, as there is only one alt-text anyway. so no more
{field_zonderitemid_127 size=3 output=alt}
now just:
{field_zonderitemid_127 output=alt}

Also added a message that PI does not re-resize images once uploaded, because it does not save the original image.

can you test again?

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #4276 by FabZ
Replied by FabZ on topic Re:P&I - Implement image type with thumb
The first test with a pre-created image_multisize field:
it works but no alt text.

Code&Output:
<a class="highslide" title="{field_timage_9 output=alt}" onclick="return hs.expand(this)" href="{field_timage_9 size=1}" target="_blank"><img src="{field_timage_9 size=2}" alt="{field_timage_9 output=alt}" /></a>
<a target="_blank" href="/joomla/images/stories/image0_test_size1.jpg" onclick="return hs.expand(this)" title="" class="highslide "><img alt="" src="/joomla/images/stories/image0_test_size2.jpg"></a>

The second test with a new image_multisize field:

Code&Output:
<a class="highslide" title="{field_timage1_10 output=alt}" onclick="return hs.expand(this)" href="{field_timage1_10 size=1}" target="_blank"><img src="{field_timage1_10 size=2}" alt="{field_timage1_10 output=alt}" /></a>
<a alt="" image_test_size1.jpg="" stories="" images="" href="/joomla/&lt;img src=" onclick="return hs.expand(this)" title="" class="highslide">" target="_blank"&gt;<img alt="" src="/joomla/images/stories/image_test_size2.jpg"></a>

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #4277 by carsten888
Replied by carsten888 on topic Re:P&I - Implement image type with thumb
did you enter any alt-text in the first test?
did you upload an image in the item?

In the second test I think in the field config you might not have selected the box to only output the source.

It seems you are using this with a plugin that makes the images open in a modal window. Maybe test this without that classnames, just to make sure you get the correct output.
size 1:<br />
{field_zonderitemid_127 size=1}<br />
size 1 alt:<br />
{field_zonderitemid_127 output=alt}<br />
size 2:<br />
{field_zonderitemid_127 size=2}<br />
size 3:<br />
{field_zonderitemid_127 size=3}<br />
size 4:<br />
{field_zonderitemid_127 size=4}<br />
size 5:<br />
{field_zonderitemid_127 size=5}<br />

outputs:
size 1:<br />
<img src="/_dev/images/stories/wokkel/kast_size1.jpg" alt="alttekstje" /><br />
size 1 alt:<br />

alttekstje<br />
size 2:<br />
<img src="/_dev/images/stories/wokkel/kast_size2.jpg" alt="alttekstje" /><br />
size 3:<br />
<img src="/_dev/images/stories/wokkel/kast_size3.jpg" alt="alttekstje" /><br />
size 4:<br />
<img src="/_dev/images/stories/wokkel/kast_size4.jpg" alt="alttekstje" /><br />
size 5:<br />
<img src="/_dev/images/stories/wokkel/kast_size5.jpg" alt="alttekstje" /><br />

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #4278 by FabZ
Replied by FabZ on topic Re:P&I - Implement image type with thumb
Ok, I'm sorry, you are right about checkbox "for output the source" in the second test, I didn't.
About alt text maybe I misunderstood.
I supposed alt text it was automatically extracted by image name (as in PI Image field) and output as is, but in your example I can see you filled alt text field. Alt text is it not an automatic insertion related to image name?

About the code I used, it allows expanding thumbs image in highslide mod (you have to install Highslide JS comp), in normal situation (with standard editor) you need, at least, three steps (on my site five)... it takes a long time and you have no guarantees about publishers final creation...
but with PI any complication is solved in one single step... :woohoo:
the use of forms to write content is a great idea ;)
Thanks again for your help and your patience too :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.133 seconds
Powered by Kunena Forum
 
spicy-sacerdotal