|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi,
My configuration: T3 4.1.2 php 5.2.1 mysql 5.0.38 cooluri 1.0.4 jb_status_code 1.0.0. My tree looks like this Root (globe icon) - Placeholder (contains only shared ts template, rootlevel unchecked) -- Website root (contains ts template, rootlevel checked, domains: www.eksotika.si;slovene, default language, www.rare-exotic-plants.com; english) ---Subpages -- Non existing subsites In website root I defined 4 domains, two of them (eksotika.si and rare-exotic-plants.com) are 301 redirects to their www records. In the cooluri I checked multidomain option. Different languages are designated by domain and not by L variable. I have two problems: 1. Cooluri rewrites urls just for the first domain that is used in FE ie: if I delete all urls in cooluri and enter www.eksotika.si all urls point to slovene domain and translation (even on www.rare-exotic-plants.com). I searched around but could not find the answer to this. 2. The second question is about duplicates. This site is a shop with tt_products. I added a simple XML rule for tt_products. I have some products with the same name in the same category (subpage). So the URLs are the same and only the first product is shown in FE. I didn't dig for this answer yet and if it is in manuals or tutorial just ignore it. Bellow is the Cooluri XML: <?xml version="1.0" encoding="utf-8"?> <cooluri> <cooluris>1</cooluris> <cache> <usecache>1</usecache> <params2cool> <checkforchangeevery>1</checkforchangeevery> </params2cool> <cool2params> <translateifnotfound>0</translateifnotfound> <oldlinksvalidfor>365</oldlinksvalidfor> </cool2params> <cacheparams>0</cacheparams> <pagenotfound> <status>HTTP/1.0 404 Not Found</status> <behavior type="message"><![CDATA[ <h1>Page not found!</h1> ]]></behavior> </pagenotfound> </cache> <pagepath> <title>tx_realurl_pathsegment,alias,subtitle,title </title> <saveto>id</saveto> <default>0</default> <userfunc>tx_cooluri->getPageTitle</userfunc> <t3conv>1</t3conv> </pagepath> <uriparts> <part> <parameter>tx_ttnews[tt_news]</parameter> <lookindb> <to>SELECT title FROM tt_news WHERE uid=$1</to> <translatetoif> <match>^[0-9]+$</match> </translatetoif> <t3conv>1</t3conv> </lookindb> </part> <part> <parameter>tx_ttproducts_pi1[product]</parameter> <lookindb> <to>SELECT title FROM tt_products WHERE uid=$1</to> <translatetoif> <match>^[0-9]+$</match> </translatetoif> <t3conv>1</t3conv> </lookindb> </part> <part> <parameter>tx_eeblog[showUid]</parameter> <lookindb> <to>SELECT subject FROM tx_eeblog_maintable WHERE uid=$1</to> <translatetoif> <match>^[0-9]+$</match> </translatetoif> <t3conv>1</t3conv> </lookindb> </part> </uriparts> <predefinedparts> <part> <parameter>tx_ttnews[backPid]</parameter> </part> <part> <parameter>cHash</parameter> </part> <part> <parameter>tx_eeblog[pointer]</parameter> </part> <part> <parameter>tx_eeblog[backPID]</parameter> </part> <part> <parameter>tx_ttproducts_pi1[backPID]</parameter> </part> <part> <parameter>no_cache</parameter> </part> </predefinedparts> <valuemaps> <valuemap> <parameter>L</parameter> <value key="">0</value> <value key="en">1</value> </valuemap> </valuemaps> <paramorder> <param>L</param> </paramorder> </cooluri> _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Hi,
> 1. Cooluri rewrites urls just for the first domain that is used in FE > ie: if I delete all urls in cooluri and enter www.eksotika.si all urls > point to slovene domain and translation (even on > www.rare-exotic-plants.com). I searched around but could not find the > answer to this. Well... I'm afraid that CoolURI isn't suitable for this. It doesn't have such option, that you differ language based on a domain. When it looks up a path it doesn't know that one domain belongs to one language and the other to the other language. Multilanguage works only if you have domains on different pages. I could make some update to fix this issue, but for now I can't think of any simple solution. I'll try to find some time and do something about it. > 2. The second question is about duplicates. This site is a shop with > tt_products. I added a simple XML rule for tt_products. I have some > products with the same name in the same category (subpage). So the URLs > are the same and only the first product is shown in FE. I didn't dig for > this answer yet and if it is in manuals or tutorial just ignore it. Isn't this a bit stupid? There's no solution. You need to rename your products. I'd be better for everyone ![]() -- Jan Bednarik www.bednarik.org - web about Typo3 in czech _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
On Sep 12, 2007, at 12:27 PM, Jan Bednarik wrote:
> Hi, > >> 1. Cooluri rewrites urls just for the first domain that is used in FE >> ie: if I delete all urls in cooluri and enter www.eksotika.si all >> urls >> point to slovene domain and translation (even on >> www.rare-exotic-plants.com). I searched around but could not find the >> answer to this. > > Well... I'm afraid that CoolURI isn't suitable for this. It doesn't > have > such option, that you differ language based on a domain. When it looks > up a path it doesn't know that one domain belongs to one language and > the other to the other language. > > Multilanguage works only if you have domains on different pages. > > I could make some update to fix this issue, but for now I can't > think of > any simple solution. I'll try to find some time and do something > about it. > >> 2. The second question is about duplicates. This site is a shop with >> tt_products. I added a simple XML rule for tt_products. I have some >> products with the same name in the same category (subpage). So the >> URLs >> are the same and only the first product is shown in FE. I didn't >> dig for >> this answer yet and if it is in manuals or tutorial just ignore it. > > Isn't this a bit stupid? There's no solution. You need to rename your > products. I'd be better for everyone ![]() RealURL does solve this by adding a number to the path to make it not unique anymore if a existing path already exists... You might also solve this like this : SELECT title || '_' || uid FROM tt_products WHERE uid=$1 (top of my head) This will add the uid of each product to the title. Kinda ugly... It should be trivial in CoolURI's code to detect Db records and respond properly to it. Ries PS: It's not stupid to have same product names for different products. > > -- > Jan Bednarik > www.bednarik.org - web about Typo3 in czech > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english -- Ries van Twisk Freelance TYPO3 Developer email: ries (AT) vantwisk (DOT) nl web: http://www.rvantwisk.nl/ skype: callto://r.vantwisk Phone: + 1 810-476-4193 _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Hi, thanks for quick replies.
I have never done setup like this with realUrl so I thought cooluri is even more flexible and easier to setup. Apparently I will have to use realUrl for this site as well. Does anybody know if this is possible with RealUrl? Ries, I was thinking about concatenating title & uid too, but just couldn't think of something so easy and obvious. ![]() Jan, I think there are many circumstances where titles of the products are the same. In my case exotic plants in different pots, but there are also T-shirts with different sizes, colors, ... I think cooluri should change the name automatically if this occurs. Anyway thank you again and btw it looks great and promising extension. Tomi Hrovatin ries van Twisk wrote: > > On Sep 12, 2007, at 12:27 PM, Jan Bednarik wrote: > >> Hi, >> >>> 1. Cooluri rewrites urls just for the first domain that is used in FE >>> ie: if I delete all urls in cooluri and enter www.eksotika.si all urls >>> point to slovene domain and translation (even on >>> www.rare-exotic-plants.com). I searched around but could not find the >>> answer to this. >> >> Well... I'm afraid that CoolURI isn't suitable for this. It doesn't have >> such option, that you differ language based on a domain. When it looks >> up a path it doesn't know that one domain belongs to one language and >> the other to the other language. >> >> Multilanguage works only if you have domains on different pages. >> >> I could make some update to fix this issue, but for now I can't think of >> any simple solution. I'll try to find some time and do something about >> it. >> >>> 2. The second question is about duplicates. This site is a shop with >>> tt_products. I added a simple XML rule for tt_products. I have some >>> products with the same name in the same category (subpage). So the URLs >>> are the same and only the first product is shown in FE. I didn't dig for >>> this answer yet and if it is in manuals or tutorial just ignore it. >> >> Isn't this a bit stupid? There's no solution. You need to rename your >> products. I'd be better for everyone ![]() > > > RealURL does solve this by adding a number > to the path to make it not unique anymore if a existing > path already exists... > > > You might also solve this like this : > > SELECT title || '_' || uid FROM tt_products WHERE uid=$1 (top of my head) > > This will add the uid of each product to the title. Kinda ugly... > > It should be trivial in CoolURI's code > to detect Db records and respond properly to it. > > > Ries > PS: It's not stupid to have same product names for different products. > > >> >> -- >> Jan Bednarik >> www.bednarik.org - web about Typo3 in czech >> _______________________________________________ >> TYPO3-english mailing list >> TYPO3-english (AT) lists (DOT) netfielders.de >> http://lists.netfielders.de/cgi-bin/.../typo3-english > > -- > Ries van Twisk > Freelance TYPO3 Developer > email: ries (AT) vantwisk (DOT) nl > web: http://www.rvantwisk.nl/ > skype: callto://r.vantwisk > Phone: + 1 810-476-4193 > > > > > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
> Does anybody know if this is possible with RealUrl?
There've been a few threads about this in the mail list. But I'm not sure if there was any solution. > Jan, I think there are many circumstances where titles of the products > are the same. In my case exotic plants in different pots, but there are Well, in tt_products you can use product variants for different pots or sizes, or you can add a pot name to the name of the product. You know, if I saw a list of products and all products had the same name, I'd be really confused what to choose. > I think cooluri should change the name automatically if this occurs. Well, I've decided not to. This makes you think of alternate way. You know, one think that makes a url cool is that the url describes what you can find. But having urls like product-1, product-2 doesn't describe much. Product-red, product-blue would say more. And that's the point. -- Jan Bednarik www.bednarik.org - web about Typo3 in czech _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
On Sep 12, 2007, at 3:24 PM, Tomi Hrovatin wrote:
> Hi, thanks for quick replies. > > I have never done setup like this with realUrl so I thought cooluri is > even more flexible and easier to setup. Apparently I will have to use > realUrl for this site as well. > Does anybody know if this is possible with RealUrl? > > Ries, I was thinking about concatenating title & uid too, but just > couldn't think of something so easy and obvious. ![]() hey Tomi, after I did hit send I thought of a way to use it all in SQL... You can in your select statement use a subquery and check for a duplicates Then that single SQL will give you a title, or a title with the uid suffix. You do need to have a 5.x version of mysql to do that though... Ries > > Jan, I think there are many circumstances where titles of the products > are the same. In my case exotic plants in different pots, but there > are > also T-shirts with different sizes, colors, ... > I think cooluri should change the name automatically if this occurs. > > Anyway thank you again and btw it looks great and promising extension. > > Tomi Hrovatin > > ries van Twisk wrote: >> >> On Sep 12, 2007, at 12:27 PM, Jan Bednarik wrote: >> >>> Hi, >>> >>>> 1. Cooluri rewrites urls just for the first domain that is used >>>> in FE >>>> ie: if I delete all urls in cooluri and enter www.eksotika.si >>>> all urls >>>> point to slovene domain and translation (even on >>>> www.rare-exotic-plants.com). I searched around but could not >>>> find the >>>> answer to this. >>> >>> Well... I'm afraid that CoolURI isn't suitable for this. It >>> doesn't have >>> such option, that you differ language based on a domain. When it >>> looks >>> up a path it doesn't know that one domain belongs to one language >>> and >>> the other to the other language. >>> >>> Multilanguage works only if you have domains on different pages. >>> >>> I could make some update to fix this issue, but for now I can't >>> think of >>> any simple solution. I'll try to find some time and do something >>> about >>> it. >>> >>>> 2. The second question is about duplicates. This site is a shop >>>> with >>>> tt_products. I added a simple XML rule for tt_products. I have some >>>> products with the same name in the same category (subpage). So >>>> the URLs >>>> are the same and only the first product is shown in FE. I didn't >>>> dig for >>>> this answer yet and if it is in manuals or tutorial just ignore it. >>> >>> Isn't this a bit stupid? There's no solution. You need to rename >>> your >>> products. I'd be better for everyone ![]() >> >> >> RealURL does solve this by adding a number >> to the path to make it not unique anymore if a existing >> path already exists... >> >> >> You might also solve this like this : >> >> SELECT title || '_' || uid FROM tt_products WHERE uid=$1 (top of >> my head) >> >> This will add the uid of each product to the title. Kinda ugly... >> >> It should be trivial in CoolURI's code >> to detect Db records and respond properly to it. >> >> >> Ries >> PS: It's not stupid to have same product names for different >> products. >> >> >>> >>> -- >>> Jan Bednarik >>> www.bednarik.org - web about Typo3 in czech >>> _______________________________________________ >>> TYPO3-english mailing list >>> TYPO3-english (AT) lists (DOT) netfielders.de >>> http://lists.netfielders.de/cgi-bin/.../typo3-english >> >> -- >> Ries van Twisk >> Freelance TYPO3 Developer >> email: ries (AT) vantwisk (DOT) nl >> web: http://www.rvantwisk.nl/ >> skype: callto://r.vantwisk >> Phone: + 1 810-476-4193 >> >> >> >> >> >> > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english -- Ries van Twisk Freelance TYPO3 Developer email: ries (AT) vantwisk (DOT) nl web: http://www.rvantwisk.nl/ skype: callto://r.vantwisk Phone: + 1 810-476-4193 _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
Jan Bednarik wrote:
>> Does anybody know if this is possible with RealUrl? > > There've been a few threads about this in the mail list. But I'm not > sure if there was any solution. Could not find any solution either. ![]() > >> Jan, I think there are many circumstances where titles of the products >> are the same. In my case exotic plants in different pots, but there are > > Well, in tt_products you can use product variants for different pots or > sizes, or you can add a pot name to the name of the product. > > You know, if I saw a list of products and all products had the same > name, I'd be really confused what to choose. > >> I think cooluri should change the name automatically if this occurs. > > Well, I've decided not to. This makes you think of alternate way. You > know, one think that makes a url cool is that the url describes what you > can find. But having urls like product-1, product-2 doesn't describe > much. Product-red, product-blue would say more. And that's the point. > You are right about that. I agree completely. But there will always be forum posts, news, blogs, ... that will share the same title. That's just my humble opinion. Thanks for great work and help, Tomi Hrovatin _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#8
|
|||
|
|||
|
Indeed. In case of products I agree with Jan, who said that URL should
be descriptive ie in my case Plant_name_potsize, but your idea will be very handy for other cases of duplicate names (forums, news, etc) thanks, Tomi Hrovatin ries van Twisk wrote: > > On Sep 12, 2007, at 3:24 PM, Tomi Hrovatin wrote: > >> Hi, thanks for quick replies. >> >> I have never done setup like this with realUrl so I thought cooluri is >> even more flexible and easier to setup. Apparently I will have to use >> realUrl for this site as well. >> Does anybody know if this is possible with RealUrl? >> >> Ries, I was thinking about concatenating title & uid too, but just >> couldn't think of something so easy and obvious. ![]() > > hey Tomi, > > after I did hit send I thought of a way to use it all in SQL... > > You can in your select statement use a subquery and check for a duplicates > > Then that single SQL will give you a title, or a title with the uid suffix. > You do need to have a 5.x version of mysql to do that though... > > > Ries > > > >> >> Jan, I think there are many circumstances where titles of the products >> are the same. In my case exotic plants in different pots, but there are >> also T-shirts with different sizes, colors, ... >> I think cooluri should change the name automatically if this occurs. >> >> Anyway thank you again and btw it looks great and promising extension. >> >> Tomi Hrovatin >> >> ries van Twisk wrote: >>> >>> On Sep 12, 2007, at 12:27 PM, Jan Bednarik wrote: >>> >>>> Hi, >>>> >>>>> 1. Cooluri rewrites urls just for the first domain that is used in FE >>>>> ie: if I delete all urls in cooluri and enter www.eksotika.si all urls >>>>> point to slovene domain and translation (even on >>>>> www.rare-exotic-plants.com). I searched around but could not find the >>>>> answer to this. >>>> >>>> Well... I'm afraid that CoolURI isn't suitable for this. It doesn't >>>> have >>>> such option, that you differ language based on a domain. When it looks >>>> up a path it doesn't know that one domain belongs to one language and >>>> the other to the other language. >>>> >>>> Multilanguage works only if you have domains on different pages. >>>> >>>> I could make some update to fix this issue, but for now I can't >>>> think of >>>> any simple solution. I'll try to find some time and do something about >>>> it. >>>> >>>>> 2. The second question is about duplicates. This site is a shop with >>>>> tt_products. I added a simple XML rule for tt_products. I have some >>>>> products with the same name in the same category (subpage). So the >>>>> URLs >>>>> are the same and only the first product is shown in FE. I didn't >>>>> dig for >>>>> this answer yet and if it is in manuals or tutorial just ignore it. >>>> >>>> Isn't this a bit stupid? There's no solution. You need to rename your >>>> products. I'd be better for everyone ![]() >>> >>> >>> RealURL does solve this by adding a number >>> to the path to make it not unique anymore if a existing >>> path already exists... >>> >>> >>> You might also solve this like this : >>> >>> SELECT title || '_' || uid FROM tt_products WHERE uid=$1 (top of my >>> head) >>> >>> This will add the uid of each product to the title. Kinda ugly... >>> >>> It should be trivial in CoolURI's code >>> to detect Db records and respond properly to it. >>> >>> >>> Ries >>> PS: It's not stupid to have same product names for different products. >>> >>> >>>> >>>> -- >>>> Jan Bednarik >>>> www.bednarik.org - web about Typo3 in czech >>>> _______________________________________________ >>>> TYPO3-english mailing list >>>> TYPO3-english (AT) lists (DOT) netfielders.de >>>> http://lists.netfielders.de/cgi-bin/.../typo3-english >>> >>> -- >>> Ries van Twisk >>> Freelance TYPO3 Developer >>> email: ries (AT) vantwisk (DOT) nl >>> web: http://www.rvantwisk.nl/ >>> skype: callto://r.vantwisk >>> Phone: + 1 810-476-4193 >>> >>> >>> >>> >>> >>> >> _______________________________________________ >> TYPO3-english mailing list >> TYPO3-english (AT) lists (DOT) netfielders.de >> http://lists.netfielders.de/cgi-bin/.../typo3-english > > -- > Ries van Twisk > Freelance TYPO3 Developer > email: ries (AT) vantwisk (DOT) nl > web: http://www.rvantwisk.nl/ > skype: callto://r.vantwisk > Phone: + 1 810-476-4193 > > > > > > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#9
|
|||
|
|||
|
Tomi Hrovatin wrote:
> Does anybody know if this is possible with RealUrl? Yes but configuration will not be trivial... -- Dmitry Dulepov TYPO3 freelancer / TYPO3 core team member Web: http://typo3bloke.net/ Skype: callto:liels_bugs _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#10
|
|||
|
|||
|
Hi!
Jan Bednarik wrote: > You know, if I saw a list of products and all products had the same > name, I'd be really confused what to choose. It is typical for shops. We just made a shop where wool has something like 20 items with the same name. Other properties change but owners wanted it all as separate products, so variations are "no go". -- Dmitry Dulepov TYPO3 freelancer / TYPO3 core team member Web: http://typo3bloke.net/ Skype: callto:liels_bugs _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |