Zum Inhalt springen

Template -- Adding a banner beside Logo

Erstellt am 17. Dezember 2006 · 7 Antworten · letzte Antwort am 18. Dezember 2006

Tags: Frage, English

itsfun ·

Hi everyone,

subparts.logo = TEXT
subparts.logo.value = <img class="logo" src="fileadmin/xxx.jpg" width="xx" height="xx" alt="xxxxx" />
subparts.logo.typolink.parameter = xxx

This is the Script for the Logo in the template, now I want to add a banner with an extenal link on the right side of this Logo, but have no idea how it can be done.

-- :o

Would be nice if someone can give me a hint. Thanks a lot!

einpraegsam.​net ·
temp.logo = COA
temp.logo.10 = IMAGE
temp.logo.10 {
   file = fileadmin/xxx.jpg
   #file.height = 40
   imageLinkWrap = 1
   imageLinkWrap.enable = 1
   typolink.parameter = xxx
   params = class="logo"
   altText = altText
   titleText = Title
}
temp.logo.20 = IMAGE
temp.logo.20 {
   file = fileadmin/xxx2.jpg
   #file.height = 40
   imageLinkWrap = 1
   imageLinkWrap.enable = 1
   typolink.parameter = http://www.test.de
   params = class="logo2"
   altText = altText
   titleText = Title
}

subparts.logo < temp.logo

the rest is stylesheet work...

itsfun ·

Thanks a lot for your help. I tried COA to add a new Image beside the Logo, but the new image didn't show, instead, the "header-content" part ("Language menu" and "Search" changes position (lower).

Original:

# Header Image
subparts.logo = TEXT
subparts.logo.value = <img class="logo" src="fileadmin/1.jpg" width="21" height="85" alt="xxxxx" />
subparts.logo.typolink.parameter = 72

subparts.header-content = COA
subparts.header-content {
10 < lib.langmenu
15 < lib.search
15.wrap = <div id="headernavi">|
20 < lib.headerNavi
20.wrap = |</div>
}

Changed:

# Header Image
subparts.logo = COA
subparts.logo {
10 = IMAGE
10 {
file = fileadmin/xxx/logo_1.jpg
file.width=321
typolink.parameter = 72
altText = XXXXXXX
}

20 = IMAGE
20 {
file = fileadmin/xxx/banner.gif
file.width=234
imageLinkWrap = 1
imageLinkWrap.enable = 1
typolink.parameter = http://www.test.de
altText = XXXXXX
}
}

subparts.header-content = COA
subparts.header-content {
10 < lib.langmenu
15 < lib.search
15.wrap = <div id="headernavi">|
20 < lib.headerNavi
20.wrap = |</div>
}

Where did I do wrong #angry# or shall I try to put the two images in a table? How can I make them align beside each other instead of one above another?

Thanks in advance!

itsfun ·

HI wunschtacho!

Hypo3 is really new to me and I'm trying to "reverse-engineering" a website to understand it more.

I installed the Package for Windows. Does it include Image Magic?

Thanks wunschtacho, for your patience!

itsfun ·

Available ImageMagick/GraphicsMagick installations:
C:\Programme\TYPO3_4.0.2\GraphicsMagick\ gm
1.1.7

Does this mean it works?