Hi, Philipp

I'm referring to this case: I have a menu made of Shortcut pages. I translate 
all these pages, but for the translations, I change the page type to External 
URL.
If I'm on the default language, the menu works like expected (branch "default" 
is accessed). If I'm on a secondary language, the same branch, "default" is 
accessed, even if the code looks ok. This is the menu code:

lib.extUrl = HMENU
lib.extUrl {
  1 = TMENU
  1 {
    expAll = 1
    noBlur = 1
    wrap = <ul>|</ul>

    NO {
      stdWrap.cObject = CASE
      stdWrap.cObject {
        key.field = doktype
        default = TEXT
        default {
          field = title
          typolink {
            parameter.data = field:uid
          }
        }

        3 < .default
        3 {
          stdWrap.htmlSpecialChars = 1
          typolink {
            parameter {
              data >
              dataWrap = http://{field:url}
            }
          }
        }
      }
      doNotLinkIt = 1
      wrapItemAndSub = <li>|</li>
    }
  }
}
 
Constantin Iliescu


________________________________
 From: Philipp Gampe <philipp.ga...@typo3.org>
To: typo3-english@lists.typo3.org 
Sent: Wednesday, August 8, 2012 2:33 PM
Subject: Re: [TYPO3-english] [TYPO3] external link in menu, typoscript and 
typolink.
 
Hi Constantin,

Constantin Iliescu wrote:

> Is there a way to make this work with page translations also?
> 
> I mean the specific case when the original page is e.g. a shortcut, and
> the translation is an external link. If I am on the translation's
> language, the CASE will enter the "default" branch instead of 3.

How can you make the translation being an external link? Do you mean that 
the shortcut point to an external URL page?

What are those CASE and branches you are talking about? In case of 
TypoScript, please post a snippet.

Best regards
-- 
Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
Documentation – linkvalidator
TYPO3 .... inspiring people to share!

_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to