How to set logo dynamic in typo3.


If you want to set logo dynamic then you have to set your in your page [in root page]

Edit your root page :

Edit page -> Resources -> Files – Media ->

Edit Logo Typo3  4.X.XX Version

Edit Logo Typo3 4.X.XX Version

TYPO3 4.x.xx Version – PI BASE
Below script will use in 4.7.XX and below then 4.7.XX version.

lib.logo = COA
lib.logo{

  29 = IMG_RESOURCE
  
  29.file.import {
    cObject = TEXT
    cObject.value = dummy.gif
    cObject.override {
      required = 1
      data = levelmedia: -1, slide
      wrap = uploads/media/|
      listNum = 0
    }
  }
  # 29.file.width = 202
  # 29.file.height = 22
}
  
lib.logo.wrap = <a href='index.php'><img src="|" alt="" /></a>

TYPO3 6.x.xx Version – FLUID

Edit your root page :

Edit page -> Resources -> Media -> Create new relation

Edit Logo Typo3  6.X.XX Version

Edit Logo Typo3 6.X.XX Version

Below script will use in 6.X.XX version.

lib.logo = COA
lib.logo {
  10 = IMAGE
  10 {
      file {
        import =  uploads/media/
        import.data = levelmedia:-1, slide
        import.listNum = 0
        treatIdAsReference = 1
      }
      titleText.data = page:subtitle
      altText.data = page:subtitle
      stdWrap.typolink.parameter.data = leveluid:0
  }
}

Note: you have to map your logo html with “lib.logo” object.

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s