Images
This is an open discussion with 8 replies, filed under XSLT.
Search
You need to specify the image resizing mode. See here ...
uh? That's all php isn't it?
Anyone able to help me here?
Anyone able to help me here?
Did you read through the thread that Nils posted above? The image function's implementation has changed in 2.
Also, are you trying to display several entries on a single page along with their photos? Or a single entry with X amount of photos?
I did, but it was php and it made my brain hurt. :)
Several entries with photos, like the old Symphony.
I installed the Spectrum Symphony primer again, just to see what has been done as default and I have come across a section called images, and I have noticed that this has been hidden from the publish menu. So how are you able to add images?
I have managed it with this code:
<xsl:template match="image"> <img src="{$root}/image/2/133/88/2/images/{filename}" alt="Image Associated to {../../title}"/> </xsl:template>
images are handled as section links now, i believe (anyone correct me if i'm wrong). that's why you don't see the images
section in the publish menu b/c you have to associate those images with another section. the default s2 build has the images
section linked to articles
and it's from there that you can add in images. it's a little confusing at first, but like anything, it just takes time to learn something new.
even when i'm creating something new and need images in a section, i still forget how they work at first.
edit.
so for the default build, if you want to add images to the articles
section, then you have to click publish > articles
and when that screen comes up, there should be a column in the far right that says images
with a linked number under it. click on the linked number and then you can add images with some meta data you input. by default it is only a description. but if you edit the images
section, you can add whatever other fields you want, i believe.
Create an account or sign in to comment.
Is there a new way of displaying images through the entry system?
What I did in S1.7 no longer works in S2.
I also noticed that the xml is different.
New XML
Old XML
This is the XSLT I am using with the new XML
It may be because its the end of the day and I'm tired, but I can't understand it.
Update:
This is the link I assume should work:
http://test.nicktoye.co.uk/nts08/image/200/0/1/fff/tcss250.jpg
This is the error I am getting:
Is that a bug?