Jahia Template Forum > [Solved][6.1 community]...

0 (0 Good)
0 (0 Bad)

[Solved][6.1 community] Make a link on image content

by  pierreh »  2011/06/07 20:09

Hi,

I'm trying to do (i think) a simple thing but it's not working...

I want to make a link on image, so when i clic on my image i want to go to my page. My link and my image are contributed content. (I use promoContent from web_templates)

I found in template tld that i can specify an image on lt;template:link

  (pierreh)

Number of messages  6
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  mabouchacra »  2011/06/07 20:09

Hi,

I've never used the image attribute from the template:link tag, but you can do it just like it's done in the web template for the logo (which redirect to the home page) :

[code:2d5c94at]
lt;template

  (mabouchacra)

Number of messages  44
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  pierreh »  2011/06/07 20:09

Thx for answer but it seems that quot;var

  (pierreh)

Number of messages  6
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  mabouchacra »  2011/06/07 20:09

Well are you sure about that?

I've never had any problem using the var attribute for the template:field tag.

  (mabouchacra)

Number of messages  44
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  pierreh »  2011/06/07 20:09

See below my error :
[code:32v9dxa9]
Caused by#58; org

  (pierreh)

Number of messages  6
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  mabouchacra »  2011/06/07 20:09

That's weird. I'm working with jahia 6.1 EE r31127.

Is it possible for you to post your jsp file?

Cheers,
Marc

  (mabouchacra)

Number of messages  44
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  pierreh »  2011/06/07 20:09

  (pierreh)

Number of messages  6
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  mabouchacra »  2011/06/07 20:09

The code seems correct to me..
I didn't try it as I don't have any file named promoAdvanced.jsp.

However I know that there is some tags available in the EE which are not in the comunity. I don't know if it also the case for tag's attributes.

However you can have a look at the jsp in the webtemplates, a lot of them use the var attribute with the field tag (fileContentBoxDisplay.jsp, filesBoxDisplay.jsp, lastNewsBowDisplay.jsp, ...)

If you can't find it in the web-template version you have then it means it is not available for the community.

Cheers,
Marc

  (mabouchacra)

Number of messages  44
Registration date
0 (0 Good)
0 (0 Bad)

Re: [6.1] Make a link on image content

by  pierreh »  2011/06/07 20:09

Yesss :)

I don't have quot;var

  (pierreh)

Number of messages  6
Registration date
Contact
Share
Feedback

Get in touch

Whether you are a current user or if you are just evaluating Jahia, we are here to help.

Contact us

Share this page