我有一个大问题,我不知道我的TS上有什么问题。
首先:我在配置ts中激活baseURL,并且Tag将被正确设置。 在下一步中,我构建了导航菜单。
lib.MyNavigation = HMENU
lib.MyNavigation{
special = directory
special.value.data = leveluid:1
1 = TMENU
1{
wrap = <ul>|</ul>
noBlur = 1
expAll = 1
NO{
linkWrap = <span>|</span>
ATagBeforeWrap = 1
wrapItemAndSub = <li id="{field:tx_nav_id}">|</li>
wrapItemAndSub.insertData = 1
stdWrap.htmlSpecialChars = 1
allStdWrap.insertData = 1
}
ACT <.NO
ACT = 1
ACT.wrapItemAndSub = <li id="{field:tx_nav_id}" class="active">|</li>
ACT.wrapItemAndSub.insertData = 1
}
2 = TMENU
2{
wrap = <ul class="sub-lvl-2">|</ul>
NO{
linkWrap = <span>|</span>
ATagBeforeWrap = 1
wrapItemAndSub = <li class="first">|</li>|*|<li>|</li>|*|<li class="last">|</li>
wrapItemAndSub.insertData = 1
}
ACT < NO
ACT = 1
ACT{
linkWrap = <span>|</span>
ATagBeforeWrap = 1
wrapItemAndSub = <li class="first active">|</li>|*|<li class="active">|</li>|*|<li class="last active">|</li>
wrapItemAndSub.insertData = 1
}
}
}
但这会创建像<a href="en/en/yourPage">...</a>
这样的链接,这是一个问题。我需要<a href="**/**en/en/yourPage">...</a>
供您参考:我使用的是RealUrl。 有人给我一个提示吗?
编辑:这是我的config.ts:
config {
debug = 0
admPanel = 0
simulateStaticDocuments = 0
xmlprologue = none
doctype = html5
removeDefaultCSS = 1
removeDefaultJS = 1
disablePrefixComment = 1
tx_realurl_enable = 1
renderCharset = utf-8
htmlTag_langKey = en
uniqueLinkVars = 1
language = en
locale_all = us_EN.UTF-8
sys_language_uid = 0
extTarget >
meaningfulTempFilePrefix = 100
# baseURL =
absRefPrefix = /
htmlTag_stdWrap.override (
<!--[if lt IE 7 ]> <html lang="de" class="ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="de" class="ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="de" class="ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="de" class="ie9"> <![endif]-->
<!--[if IE 10 ]> <html lang="de" class="ie10"> <![endif]-->
<!--[if (gt IE 10)|!(IE)]><!--><html lang="de"><!--<![endif]-->
)
typolinkCheckRootline = 1
typolinkEnableLinksAcrossDomains = 1
content_from_pid_allowOutsideDomain = 1
RTE.default {
disableAlignmentFieldsetInTableOperations = 1
disableSpacingFieldsetInTableOperations = 1
disableColorFieldsetInTableOperations = 1
disableLayoutFieldsetInTableOperations = 1
disableBordersFieldsetInTableOperations = 1
}
}
答案 0 :(得分:0)
使用config.absRefPrefix
,并将config.baseURL
留空。 absRefPrefix
前置于生成的网址,因此它应该达到您想要的效果。