realurl bei mehreren ext. benutzen [Gelöst]

  • stefan72 stefan72
    Jedi-Meister
    0 x
    404 Beiträge
    0 Hilfreiche Beiträge
    09. 01. 2008, 00:27

    Hallo,
    Ich habe eine relativ umfangreiche Seite und setze realurl 1.1.4 ein.

    Das mm_forum und tt_news laufen damit ausgezeichnet.
    Ich möchte aber noch weitere extension (ab_downloads, sr_feuser_register) damit laufen lassen.

    Wenn ich den code dieser ext. einfüge, passiert rein nichts!
    Ich weiss nicht was ich falsch mache.

    Wo setze ich diese 'postVarSets' genau ein?

    1. 'postVarSets' => array(
    2. '_DEFAULT' => array(
    3. 'user' => array(
    4. 'GETvar' => 'tx_srfeuserregister_pi1[regHash]'
    5. )
    6. )
    7. )
    8. ),

    Darf es mehr als ein postVarSet geben? Ich werde einfach nicht schlau aus der Dokumentation...Bin für jeden Tipp dankbar.Gruss


  • 1
  • einpraegsam.net einpraegs...
    MacGyver
    0 x
    9340 Beiträge
    80 Hilfreiche Beiträge
    09. 01. 2008, 12:29

    Poste doch mal deine ganze realurlconf.php (oder vielleicht auch localconf.php) - jedenfalls die Datei, die das Aussehen der Links manipuliert!

    in2code.de - Wir leben TYPO3
    - Möchtest du TYPO3 komplett verstehen? Eigene Erweiterungen erstellen? Bei uns gibt es auch Schulungen https://www.in2code.de/produkte/typo3-schulungen/
    - Die Arbeit mit TYPO3 macht dir Spaß? Du stehst auf Berge? Komm zu uns! https://www.in2code.de/agentur/karriere/

  • stefan72 stefan72
    Jedi-Meister
    0 x
    404 Beiträge
    0 Hilfreiche Beiträge
    09. 01. 2008, 13:01

    Vielen Dank wunschtacho, hoffe du kannst helfen.

    Hier meine localconf, poste aus Platzgründen nur die realurl relevanten Abschnitte.

    Konfiguriert für mm_forum, tt_news (laufen beide ok). Füge ich noch andere postvarsets hinzu, werden die irgendwie nicht 'erkannt'.

    1. <?php
    2.  
    3. // realurl - Flush RealURL Cache
    4. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
    5. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';
    6. $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_pathcache'] = 'tx_realurl_pathcache';
    7. // end - Flush RealURL Cache
    8.  
    9.  
    10.  
    11.  
    12. // localconf configurations (gekürzt)
    13. $TYPO3_CONF_VARS['SYS']['sitename'] = 'flitework.com';
    14. bla bla vla
    15.  
    16. // the realurl configuration (ungekürzt)
    17. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    18. 'init' => array(
    19. 'enableCHashCache' => 1,
    20. 'enableUrlDecodeCache' => 1,
    21. 'enableUrlEncodeHash' => 1,
    22. ),
    23. 'rewrite' => array(),
    24. 'preVars' => array(),
    25. 'pagePath' => array(
    26. 'type' => 'user',
    27. 'userFunc' =>
    28. 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    29. 'spaceCharacter' => '-',
    30. 'languageGetVar' => 'L',
    31. 'expireDays' => 3,
    32. 'rootpage_id' => '1'
    33. ),
    34. 'fileName' => array (
    35. 'defaultToHTMLsuffixOnPrev' => 1,
    36. 'index' => array(
    37. 'page.html' => array(
    38. 'keyValues' => array (
    39. 'type' => 1,
    40. ),
    41. ),
    42. ),
    43. ),
    44. 'postVarSets' => array(
    45. '_DEFAULT' => array (),
    46. ),
    47. 'fixedPostVars' => array(
    48. 'mm_forum_pi3' => array(
    49. 'GETvar' => 'tx_mmforum_pi3[folder]',
    50. 'valueMap' => array(
    51. 'inbox' => 'inbox',
    52. 'outbox' => 'send',
    53. 'archive' => 'archiv'
    54. )
    55. ),
    56. 'GETvar' => 'tx_mmforum_pi3[action]',
    57. 'valueMap' => array(
    58. 'read' => 'message_read',
    59. 'write' => 'message_write',
    60. 'delete' => 'message_del'
    61. )
    62. ),
    63. 'GETvar' => 'tx_mmforum_pi3[messid]',
    64. 'lookUpTable' => array(
    65. 'table' => 'tx_mmforum_pminbox' ,
    66. 'id_field' => 'uid',
    67. 'alias_field' => 'subject',
    68. 'addWhereClause' => ' AND NOT deleted',
    69. 'useUniqueCache' => 1,
    70. 'useUniqueCache_conf' => array(
    71. 'strtolower' => 1,
    72. 'spaceCharacter' => '_',
    73. ),
    74. ),
    75. ),
    76. 'GETvar' => 'tx_mmforum_pi3[userid]',
    77. 'lookUpTable' => array(
    78. 'table' => 'fe_users' ,
    79. 'id_field' => 'uid',
    80. 'alias_field' => 'username',
    81. 'addWhereClause' => ' AND NOT deleted',
    82. 'useUniqueCache' => 1,
    83. 'useUniqueCache_conf' => array(
    84. 'strtolower' => 1,
    85. 'spaceCharacter' => '_',
    86. ),
    87. ),
    88. )
    89. ),
    90. 'mm_forum_pi1' => array(
    91. 'GETvar' => 'tx_mmforum_pi1[action]',
    92. 'valueMap' => array(
    93. 'topics' => 'list_topic',
    94. 'posts' => 'list_post',
    95. 'user' => 'forum_view_profil',
    96. 'reply' => 'new_post',
    97. 'open' => 'new_topic',
    98. 'report' => 'post_alert',
    99. 'edit' => 'post_edit',
    100. 'delete' => 'post_del',
    101. 'all_posts' => 'post_history',
    102. 'unanswered' => 'list_unans',
    103. 'unread' => 'list_unread',
    104. 'all_read' => 'reset_read',
    105. 'subscribe' => 'set_havealook',
    106. 'unsubscribe' => 'del_havealook',
    107. 'favorite' => 'set_favorite',
    108. 'no_favorite' => 'del_favorite',
    109. 'prefix' => 'list_prefix',
    110. 'attachments' => 'get_attachment',
    111. ),
    112. ),
    113. 'GETvar' => 'tx_mmforum_pi1[fid]',
    114. 'lookUpTable' => array(
    115. 'table' => 'tx_mmforum_forums' ,
    116. 'id_field' => 'uid',
    117. 'alias_field' => 'forum_name',
    118. 'addWhereClause' => ' AND NOT deleted',
    119. 'useUniqueCache' => 1,
    120. 'useUniqueCache_conf' => array(
    121. 'strtolower' => 1,
    122. 'spaceCharacter' => '_',
    123. ),
    124. ),
    125. ),
    126. 'GETvar' => 'tx_mmforum_pi1[tid]',
    127. 'lookUpTable' => array(
    128. 'table' => 'tx_mmforum_topics' ,
    129. 'id_field' => 'uid',
    130. 'alias_field' => 'topic_title',
    131. 'addWhereClause' => ' AND NOT deleted',
    132. 'useUniqueCache' => 1,
    133. 'useUniqueCache_conf' => array(
    134. 'strtolower' => 1,
    135. 'spaceCharacter' => '_',
    136. ),
    137. ),
    138. ),
    139. 'GETvar' => 'tx_mmforum_pi1[pid]',
    140. ),
    141. 'GETvar' => 'tx_mmforum_pi1[page]',
    142. ),
    143. 'GETvar' => 'tx_mmforum_pi1[user_id]',
    144. 'lookUpTable' => array(
    145. 'table' => 'fe_users' ,
    146. 'id_field' => 'uid',
    147. 'alias_field' => 'username',
    148. 'addWhereClause' => ' AND NOT deleted',
    149. 'useUniqueCache' => 1,
    150. 'useUniqueCache_conf' => array(
    151. 'strtolower' => 1,
    152. 'spaceCharacter' => '_',
    153. ),
    154. ),
    155. ),
    156. 'GETvar' => 'tx_mmforum_pi1[user_id]',
    157. 'lookUpTable' => array(
    158. 'table' => 'fe_users' ,
    159. 'id_field' => 'uid',
    160. 'alias_field' => 'username',
    161. 'addWhereClause' => ' AND NOT deleted',
    162. 'useUniqueCache' => 1,
    163. 'useUniqueCache_conf' => array(
    164. 'strtolower' => 1,
    165. 'spaceCharacter' => '_',
    166. ),
    167. ),
    168. ),
    169.  
    170. ),
    171. '269' => 'mm_forum_pi1',
    172. '257' => 'mm_forum_pi3'
    173. ),
    174.  
    175. 'postVarSets' => array(
    176. '_DEFAULT' => array(
    177. 'user' => array(
    178. 'GETvar' => 'tx_srfeuserregister_pi1[regHash]'
    179. )
    180. )
    181. )
    182. ),
    183.  
    184. 'postVarSets' => array(
    185. '_DEFAULT' => array(
    186. // news archive parameters
    187. 'archive' => array(
    188. 'GETvar' => 'tx_ttnews[year]' ,
    189. ),
    190. 'GETvar' => 'tx_ttnews[month]' ,
    191. 'valueMap' => array(
    192. 'january' => '01',
    193. 'february' => '02',
    194. 'march' => '03',
    195. 'april' => '04',
    196. 'may' => '05',
    197. 'june' => '06',
    198. 'july' => '07',
    199. 'august' => '08',
    200. 'september' => '09',
    201. 'october' => '10',
    202. 'november' => '11',
    203. 'december' => '12',
    204. )
    205. ),
    206. ),
    207. // news pagebrowser
    208. 'browse' => array(
    209. 'GETvar' => 'tx_ttnews[pointer]',
    210. ),
    211. ),
    212. // news categories
    213. 'select_category' => array (
    214. 'GETvar' => 'tx_ttnews[cat]',
    215. ),
    216. ),
    217. // news articles and searchwords
    218. 'article' => array(
    219. 'GETvar' => 'tx_ttnews[tt_news]',
    220. 'lookUpTable' => array(
    221. 'table' => 'tt_news',
    222. 'id_field' => 'uid',
    223. 'alias_field' => 'title',
    224. 'addWhereClause' => ' AND NOT deleted',
    225. 'useUniqueCache' => 1,
    226. 'useUniqueCache_conf' => array(
    227. 'strtolower' => 1,
    228. 'spaceCharacter' => '-',
    229. ),
    230. ),
    231. ),
    232. 'GETvar' => 'tx_ttnews[swords]',
    233. ),
    234. ),
    235. ),
    236. ),
    237. // configure filenames for different pagetypes
    238. 'fileName' => array(
    239. 'defaultToHTMLsuffixOnPrev' => 1,
    240. 'index' => array(
    241. 'rss.xml' => array(
    242. 'keyValues' => array(
    243. 'type' => 100,
    244. ),
    245. ),
    246. 'rss091.xml' => array(
    247. 'keyValues' => array(
    248. 'type' => 101,
    249. ),
    250. ),
    251. 'rdf.xml' => array(
    252. 'keyValues' => array(
    253. 'type' => 102,
    254. ),
    255. ),
    256. 'atom.xml' => array(
    257. 'keyValues' => array(
    258. 'type' => 103,
    259. ),
    260. ),
    261. ),
    262.  
    263. ),
    264.  
    265. );
    266.  
    267. // more localconf.php configurations....(gekürzt)
    268. bla bla bla
    269. ?>

  • stefan72 stefan72
    Jedi-Meister
    0 x
    404 Beiträge
    0 Hilfreiche Beiträge
    10. 01. 2008, 10:30

    Habe das Problem lösen können. Es gibt jeweils nur ein Abschnitt mit postVarSets.
    D.h, der realurl-code von verschiedenen extensions geht in denselben postVarSet 'container'.

    Hoffe es hilft anderen auch...

  • 0 x
    15 Beiträge
    0 Hilfreiche Beiträge
    19. 02. 2008, 13:57

    Hallo, hoffe man schaut hier noch rein...

    Hinweis: 2 Extension mit RealUrl !

    Wie gesagt will ich auch tt_news mit ab_downloads nutzen, die tt_news config läuft , setz ich aber dann unter den postVarSets noch die der ab_downloads hinzu so werden die Links im Download Bereich meiner Seite richtig generiert aber z.B. bei den Categories der tt_news versucht er auch dahinter (ab_download config im postvarset-Bereich unter der tt_news config) noch die ab_download config zu laden. Was er aber in dem Falle nicht machen soll!

    Hier heisst es das die Konfiguration in den selben postVarSets-Bereich hinein kommen sollen, kann man trotzdem hierbei noch was falsch machen?

    Meine Config:

    1. <?php
    2. $TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tstemplate.php'] ['linkData-PostProc'] []
    3. = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
    4. $TYPO3_CONF_VARS['SC_OPTIONS'] ['tslib/class.tslib_fe.php'] ['checkAlternativeIdMethods-PostProc'] []
    5. = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';
    6. $TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tcemain.php'] ['clearAllCache_additionalTables'] ['tx_realurl_urldecodecache']
    7. = 'tx_realurl_urldecodecache';
    8. $TYPO3_CONF_VARS['SC_OPTIONS'] ['t3lib/class.t3lib_tcemain.php'] ['clearAllCache_additionalTables'] ['tx_realurl_urlencodecache']
    9. = 'tx_realurl_urlencodecache';
    10. $TYPO3_CONF_VARS['FE'] ['addRootLineFields'] .=
    11. ',tx_realurl_pathsegment,alias,nav_title,title';
    12. $TYPO3_CONF_VARS['EXTCONF'] ['realurl'] ['_DEFAULT'] = array(
    13. 'init' => array(
    14. 'enableCHashCache' => 1,
    15. 'enableUrlDecodeCache' => 1,
    16. 'enableUrlEncodeHash' => 1,
    17. 'appendMissingSlash' => 'ifNotFile',
    18. ),
    19. 'redirects' => array(
    20. ),
    21. 'rewrite' => array(
    22. ),
    23. 'preVars' => array(
    24. /* Temporary no use
    25.   array(
    26. 'GETvar' => 'L',
    27. 'valueMap' => array(
    28. 'en' => '0',
    29. 'de' => '1',
    30. 'valueDefault' => 'en',
    31. ),
    32. ),*/
    33.  
    34. /*Config the LVars for the Fontsize ###START###*/
    35. /* Temporary no use
    36. array(
    37. 'GETvar' => 'Fsize',
    38. 'valueMap' => array(
    39. '0' => '0',
    40. '1' => '1',
    41. '2' => '2',
    42. ),
    43. 'noMatch' => 'bypass',
    44. ),*/
    45. /*Config the LVars for the Fontsize ###END###*/
    46. ),
    47. 'pagePath' => array(
    48. 'type' => 'user',
    49. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
    50. 'spaceCharacter' => '-',
    51. 'languageGetVar' => 'L',
    52. 'expireDays' => 3,
    53. 'rootpage_id' => '1'
    54. ),
    55. 'fileName' => array (
    56. 'defaultToHTMLsuffixOnPrev' => 0,
    57. 'index' => array(
    58. 'page.html' => array(
    59. 'keyValues' => array (
    60. 'type' => 1,
    61. ),
    62. ),
    63. ),
    64. ),
    65. 'fixedPostVarSets' => array(
    66. ),
    67. 'postVarSets' => array(
    68. '_DEFAULT' => array(
    69.  
    70. // archiv
    71. 'period' => array (
    72. 'condPrevValue' => -1,
    73. 'GETvar' => 'tx_ttnews[pS]',
    74. 'valueMap' => array(
    75. )
    76. ),
    77. 'GETvar' => 'tx_ttnews[pL]',
    78. 'valueMap' => array(
    79. )
    80. ),
    81. 'GETvar' => 'tx_ttnews[arc]',
    82. 'valueMap' => array(
    83. 'non-archived' => -1,
    84. ),
    85. ),
    86. ),
    87.  
    88. 'date' => array (
    89. 'GETvar' => 'tx_ttnews[year]',
    90. ),
    91. 'GETvar' =>'tx_ttnews[month]' ,
    92. 'valueMap' => array (
    93. 'january' => '01',
    94. 'february' => '02',
    95. 'march' => '03',
    96. 'april' => '04',
    97. 'may' => '05',
    98. 'juni' => '06',
    99. 'july' => '07',
    100. 'august' => '08',
    101. 'september' => '09',
    102. 'october' => '10',
    103. 'november' => '11',
    104. 'december' => '12',
    105. )
    106. ),
    107. 'GETvar' => 'tx_ttnews[day]',
    108. ),
    109. ),
    110. 'browse' => array (
    111. array (
    112. 'GETvar' => 'tx_ttnews[pointer]',
    113. ),
    114. ),
    115.  
    116. 'category_news' => array (
    117. 'GETvar' => 'tx_ttnews[cat]',
    118. 'lookUpTable' => array (
    119. 'table' => 'tt_news_cat',
    120. 'id_field' => 'uid',
    121. 'alias_field' => 'title',
    122. 'addWhereClause' => 'AND NOT deleted',
    123. 'useUniqueCache' => 1,
    124. 'useUniqueCache_conf' =>array (
    125. 'strtolower' => 1,
    126. 'spaceCharacter' => '-',
    127. ),
    128. ),
    129. ),
    130. ),
    131. 'article' => array (
    132. 'GETvar' => 'tx_ttnews[tt_news]',
    133. 'lookUpTable' => array (
    134. 'table' => 'tt_news',
    135. 'id_field' => 'uid',
    136. 'alias_field' => 'title',
    137. 'maxLength' => 12,
    138. 'addWhereClause'=> 'AND NOT deleted',
    139. 'useUniqueCache'=> 1,
    140. 'useUniqueCache_conf' => array (
    141. 'strtolower' => 1,
    142. 'spaceCharacter' => '-',
    143. ),
    144. ),
    145. ),
    146. ),
    147.  
    148. /***
    149. 'action' => array(
    150. array(
    151. 'GETvar' => 'tx_abdownloads_pi1[action]',
    152. 'valueMap' => array(
    153. 'show-category' => 'getviewcategory',
    154. 'propose-a-new-download' => 'getviewaddnewdownload',
    155. 'open-download' => 'getviewclickeddownload',
    156. 'show-details-for-download' => 'getviewdetailsfordownload',
    157. 'report-broken-download' => 'getviewreportbrokendownload',
    158. 'rate-download' => 'getviewratedownload',
    159. ),
    160. ),
    161. ),
    162. 'category_downloads' => array(
    163. array(
    164. 'GETvar' => 'tx_abdownloads_pi1[category_uid]',
    165. 'valueMap' => array(
    166. 'home' => '0',
    167. ),
    168. 'lookUpTable' => array(
    169. 'table' => 'tx_abdownloads_category',
    170. 'id_field' => 'uid',
    171. 'alias_field' => 'label',
    172. 'addWhereClause' => ' AND NOT deleted',
    173. 'useUniqueCache' => 1,
    174. 'useUniqueCache_conf' => array(
    175. 'strtolower' => 1,
    176. 'spaceCharacter' => '-',
    177. ),
    178. ),
    179. ),
    180. ),
    181. 'download' => array(
    182. array(
    183. 'GETvar' => 'tx_abdownloads_pi1[uid]',
    184. 'lookUpTable' => array(
    185. 'table' => 'tx_abdownloads_download',
    186. 'id_field' => 'uid',
    187. 'alias_field' => 'label',
    188. 'addWhereClause' => ' AND NOT deleted',
    189. 'useUniqueCache' => 1,
    190. 'useUniqueCache_conf' => array(
    191. 'strtolower' => 1,
    192. 'spaceCharacter' => '-',
    193. ),
    194. ),
    195. ),
    196. array(
    197. 'GETvar' => 'cHash',
    198. ),
    199. ),
    200. 'pointer' => array(
    201. array(
    202. 'GETvar' => 'tx_abdownloads_pi1[pointer]',
    203. ),
    204. ),
    205. ***/
    206. ),
    207. ),
    208. );
    209. ?>

    Der untere Auskommentiere Bereich ist der ab_download Bereich!

    So sollte er aussehen trotz ab_download conf-->

    Beispiellink: h t t p://w w w.euredomain.de/blog/xxx/category_news/php/
    das funktioniert auch solange ab_downloads ausgeschalten ist.

    So sieht er immo aus mit ab_download conf-->

    Link mit ab_downloads:
    h t t P:// w w w.euredomain.de/blog/xxx/category_news/php/download//f34534d2/

    Weiss vllt einer was ich übersehen habe?
    Danke schon mal fürs anschauen!

    Gruss

  • 0 x
    15 Beiträge
    0 Hilfreiche Beiträge
    22. 02. 2008, 14:27

    Hat keiner Realurl mit 2 Extensions laufen die Links generieren?
    Wenn ja vllt mal nen Beispiel Code posten.
    Wäre echt dankbar!

    Gruss

  • 1