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
  • [Solved][6.1 community] Make a link on image content
    2011/06/07 20:09

    pierreh Hi, <br/><br/>I'm trying to do (i think) a simple thing but it's not working... <br/><br/>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)<br/><br/>I found in template tld that i can specify an image on lt;template:link

  • Number of messages  6
    Registration date Jun 7, 2011
    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
  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    mabouchacra Hi, <br/><br/>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) :<br/><br/>[code:2d5c94at]<br/>lt;template

  • Number of messages  44
    Registration date Jun 7, 2011
    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
  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    pierreh Thx for answer but it seems that quot;var

  • Number of messages  6
    Registration date Jun 7, 2011
    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.
  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    mabouchacra Well are you sure about that? <br/><br/>I've never had any problem using the var attribute for the template:field tag.

  • Number of messages  44
    Registration date Jun 7, 2011
    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
  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    pierreh See below my error :<br/>[code:32v9dxa9]<br/>Caused by#58; org

  • Number of messages  6
    Registration date Jun 7, 2011
    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
  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    mabouchacra That's weird. I'm working with jahia 6.1 EE r31127.<br/><br/>Is it possible for you to post your jsp file?<br/><br/>Cheers,<br/>Marc

  • Number of messages  44
    Registration date Jun 7, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: [6.1] Make a link on image content

    by  pierreh »  2011/06/07 20:09

  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    pierreh

  • Number of messages  6
    Registration date Jun 7, 2011
    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
  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    mabouchacra The code seems correct to me..<br/>I didn't try it as I don't have any file named promoAdvanced.jsp.<br/><br/>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.<br/><br/>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, ...)<br/><br/>If you can't find it in the web-template version you have then it means it is not available for the community.<br/><br/>Cheers,<br/>Marc

  • Number of messages  44
    Registration date Jun 7, 2011
    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
  • Re: [6.1] Make a link on image content
    2011/06/07 20:09

    pierreh Yesss <!-- s:) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile" /><!-- s:) --><br/><br/>I don't have quot;var

  • Number of messages  6
    Registration date Jun 7, 2011
    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