---
title: "Wrap Pictures/Link to .movie (rel=\"shad.\")"
url: "https://www.typo3.net/d/88548-wrap-pictureslink-to-movie-relshad"
source: "typo3.net"
tags: ["Extensions","Bilder","English","Frage","Links"]
created: "2009-04-02"
last_reply: "2009-04-09"
replies: 1
solved: false
page: 1
pages: 1
lang: "en"
---

# Wrap Pictures/Link to .movie (rel="shad.")

Extensions · 1 Antwort · gestartet 2009-04-02

## Eröffnungsbeitrag

**alessa** · 2009-04-02 · [Beitrag #1](https://www.typo3.net/d/88548-wrap-pictureslink-to-movie-relshad/1)

Hello,

I'm newbie to typo3. Sorry that I don't speak german. I have some little problems :

The user uploads pictures. And I display them on site with:

Typoscript-Code:
1:

```typoscript
	temp.mainTemplate.subparts.right_img< styles.content.getRight
```

If I try to wrap this picture with
Typoscript-Code:
1:

```typoscript
	styles.content.getRight.wrap=  <a href="uploads/media/bildvorschau2.swf" rel="shadowbox[HF]" class="shad">|</a>
```

I receive no change, because between a tags they are a lot of classes:

```html
 <div id="right_img"><a href="fileadmin/template/main/images/resize/bildvorschau2.swf" rel="shadowbox[HF]" class="shad">
    <!--  CONTENT ELEMENT, uid:161/image [begin] -->
        <a id=""></a>
        <!--  Image block: [begin] -->
            <div class="csc-textpic csc-textpic-center csc-textpic-above"><div class="csc-textpic-imagewrap" style="width:400px;"><dl class="csc-textpic-image csc-textpic-lastcol" style="width:400px;"><dt><img src="uploads/pics/oaia-ratacita.jpg" width="400" height="310" border="0" alt="" /></dt></dl></div></div><div class="csc-textpic-clear"><!-- --></div>
        <!--  Image block: [end] -->
            
    <!--  CONTENT ELEMENT, uid:161/image [end] -->
        </a></div>
```

How can I link pictures uploaded by users themselfs?

I want that this href

```html
href="uploads/media/bildvorschau2.swf"
```

to generate itself, the only thing that I should write to be something like this href="{some_param}".

I upload a picture: exam.jpg. After this I upload a movie(with the same name, the only difference is its extension): exam.swf or exam.avi or etc. The picture must be display on the page, and when I click on the picture I want to open the movie in a shadowbox.

I should find a way to wrap the picture with the adequate link (<a href= "uploads/media/bildvorschau2.swf" rel="shadowbox) to do this.

Can anyone tell me how to do those things, please.

Thank you in advance

## Antworten

### [#2](https://www.typo3.net/d/88548-wrap-pictureslink-to-movie-relshad/2) · alessa · 2009-04-09

I manage it, in this way. I don't know if it's very corect, but it do what I want.

```typoscript
	temp.mainTemplate.subparts.right_text< styles.content.get  
temp.mainTemplate.subparts.right_img< styles.content.getRight

tt_content.image.20.1.imageLinkWrap = 1
tt_content.image.20.1.imageLinkWrap {
enable = 1
typolink.ATagParams = rel="shadowbox"
}
temp.mainTemplate.subparts.right_media < styles.content.getLeft
```

---

Quelle: „Wrap Pictures/Link to .movie (rel="shad.")“, typo3.net, https://www.typo3.net/d/88548-wrap-pictureslink-to-movie-relshad
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
