test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • Mikael Andersson Friend
    #155285

    Hello!

    I have about three or four articles showing on the frontpage. In the text I have a link pointing to another article. However.. I also want the image to be clickable and point to the same link as in the text.

    So I added a link to the image, but it doesn’t work if the article is shown in the frontpage.

    Any suggestions?

    /Henrik, Vallagruppen

    Don Lee Friend
    #359080

    <em>@vallagruppen 198523 wrote:</em><blockquote>Hello!

    I have about three or four articles showing on the frontpage. In the text I have a link pointing to another article. However.. I also want the image to be clickable and point to the same link as in the text.

    So I added a link to the image, but it doesn’t work if the article is shown in the frontpage.

    Any suggestions?

    /Henrik, Vallagruppen</blockquote>

    Hi,
    Could you take me to your site for a check?

    Mikael Andersson Friend
    #359523

    Hi, of course! Here’s the URL: http://www.basco.nu

    zao dao Friend
    #359536

    use jceeditor and you can add article link to images .

    www.8media.com
    www.zaodao.com

    Saguaros Moderator
    #360540

    <em>@vallagruppen 199193 wrote:</em><blockquote>Hi, of course! Here’s the URL: http://www.basco.nu</blockquote>

    The ja rasite template made the overriding layout for the front-page layout. it does not allowing make the link of image. you can customize this as following:
    you open the file: templatesja_rasitehtmlcom_contentfrontpagedefault_item.php and find the following code:
    [PHP]
    if (preg_match_all ($regex, $this->item->text, $matches)) {
    $this->item->text = preg_replace ($regex, ”, $this->item->text);
    $images = implode (“n”, $matches[0]);
    }
    [/PHP]
    you remove them
    and then you make the link for image via the editor

    Mikael Andersson Friend
    #360618

    <em>@tienhc 200501 wrote:</em><blockquote>The ja rasite template made the overriding layout for the front-page layout. it does not allowing make the link of image. you can customize this as following:
    you open the file: templatesja_rasitehtmlcom_contentfrontpagedefault_item.php and find the following code:
    [PHP]
    if (preg_match_all ($regex, $this->item->text, $matches)) {
    $this->item->text = preg_replace ($regex, ”, $this->item->text);
    $images = implode (“n”, $matches[0]);
    }
    [/PHP]
    you remove them
    and then you make the link for image via the editor</blockquote>

    Thank you! That worked perfectly 🙂

    /Henrik, Vallagruppen

    lesasei Friend
    #369880

    I am having the same problem. When I put an image on the site home page and try to make it a link, the template removes the link. I have edited the PHP Code in default_item.php as noted above with no result. Please help. Thanks.
    The site is http://www.phoenixhillna.org.

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 5 voices, and was last updated by  lesasei 13 years, 12 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum