I'm developping a component in frontend for J2.5 ans I'm having a little issue with the SEF URL. I have 2 views "Items" and "Item". When I click on an item to see its details the URL SEF looks like this : http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
How should I do to delete the "item" value ? I think it's the name of the view but I don't understand how to delete this in the URL...
I believe the component name will always be displayed for any component that isn't attached to an Item id, otherwise Joomla does not know what component to call up. Create a menu item for the component and the component name will be replaced by your menu name.
On Monday, July 23, 2012 at 12:48 PM, Mushr00m wrote:
> You have to use router.php in your component and specialy the BuildRoute function to create your SEF URL
> Le lundi 23 juillet 2012 21:46:02 UTC+2, Maqsood a écrit :
> > Hi I am facing same issue with 2.5 SEF URL
> > my component url show as below
> > website/es/destination/Italy/Rome/49.html
> > do you know how can i take off destination (component name) and 49 (iteam from url)
> > On Monday, July 23, 2012 3:41:23 PM UTC-4, Mushr00m wrote:
> > > Ok I found the solution, so in the router.php in the BuildRoute function use :
> > > unset( $query['view'] );
> --
> You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/uOcVv5q5daEJ.
> To post to this group, send an email to joomla-dev-general@googlegroups.com (mailto:joomla-dev-general@googlegroups.com).
> To unsubscribe from this group, send email to joomla-dev-general+unsubscribe@googlegroups.com (mailto:joomla-dev-general+unsubscribe@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
I agree with you for the component name, sorry I didn't saw "destination" was to component name, but he seems to want to change also the ID 49 and change we need to know by what you want to change it ? 49 is the item ID or the menu item ID ?
Le vendredi 20 juillet 2012 03:03:31 UTC+2, Mushr00m a écrit :
> I'm developping a component in frontend for J2.5 ans I'm having a little > issue with the SEF URL.
> I have 2 views "Items" and "Item". When I click on an item to see its > details the URL SEF looks like this :
> http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
> How should I do to delete the "item" value ? I think it's the name of the > view but I don't understand how to delete this in the URL...
On Monday, July 23, 2012 4:01:10 PM UTC-4, Mushr00m wrote:
> I agree with you for the component name, sorry I didn't saw "destination" > was to component name, but he seems to want to change also the ID 49 and > change we need to know by what you want to change it ? 49 is the item ID or > the menu item ID ?
> Le vendredi 20 juillet 2012 03:03:31 UTC+2, Mushr00m a écrit :
>> Hi all ! First post on the group for me ;-)
>> I'm developping a component in frontend for J2.5 ans I'm having a little >> issue with the SEF URL.
>> I have 2 views "Items" and "Item". When I click on an item to see its >> details the URL SEF looks like this :
>> http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
>> How should I do to delete the "item" value ? I think it's the name of the >> view but I don't understand how to delete this in the URL...
> OK I agree with component name. Currently my URL Is like this
> website/es/destination/Italy/Rome/49.html
> How can i change it to > website/es/destination/Italy/rome.html
> i don't want to show item id. Do you know how to remove it from url?
> Thank you
> Maqsood
> On Monday, July 23, 2012 4:01:10 PM UTC-4, Mushr00m wrote:
>> I agree with you for the component name, sorry I didn't saw "destination" >> was to component name, but he seems to want to change also the ID 49 and >> change we need to know by what you want to change it ? 49 is the item ID or >> the menu item ID ?
>> Le vendredi 20 juillet 2012 03:03:31 UTC+2, Mushr00m a écrit :
>>> Hi all ! First post on the group for me ;-)
>>> I'm developping a component in frontend for J2.5 ans I'm having a little >>> issue with the SEF URL.
>>> I have 2 views "Items" and "Item". When I click on an item to see its >>> details the URL SEF looks like this :
>>> http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
>>> How should I do to delete the "item" value ? I think it's the name of >>> the view but I don't understand how to delete this in the URL...
On Monday, July 23, 2012 at 1:05 PM, Maqsood wrote:
> OK I agree with component name. Currently my URL Is like this
> website/es/destination/Italy/Rome/49.html
> How can i change it to
> website/es/destination/Italy/rome.html
> i don't want to show item id. Do you know how to remove it from url?
> Thank you
> Maqsood
> On Monday, July 23, 2012 4:01:10 PM UTC-4, Mushr00m wrote:
> > I agree with you for the component name, sorry I didn't saw "destination" was to component name, but he seems to want to change also the ID 49 and change we need to know by what you want to change it ? 49 is the item ID or the menu item ID ?
> > Le vendredi 20 juillet 2012 03:03:31 UTC+2, Mushr00m a écrit :
> > > Hi all ! First post on the group for me ;-)
> > > I'm developping a component in frontend for J2.5 ans I'm having a little issue with the SEF URL.
> > > I have 2 views "Items" and "Item". When I click on an item to see its details the URL SEF looks like this :
> > > http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
> > > How should I do to delete the "item" value ? I think it's the name of the view but I don't understand how to delete this in the URL...
> > > Thanks a lot !
> --
> You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
> To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/NmNQ53od998J.
> To post to this group, send an email to joomla-dev-general@googlegroups.com (mailto:joomla-dev-general@googlegroups.com).
> To unsubscribe from this group, send email to joomla-dev-general+unsubscribe@googlegroups.com (mailto:joomla-dev-general+unsubscribe@googlegroups.com).
> For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
On Monday, July 23, 2012 4:09:57 PM UTC-4, harty83 wrote:
> You are sure 49 is the Item Id? If you disable SEF, what does the non-sef > URL look like?
> Thanks!
> Alan Hartless
> On Monday, July 23, 2012 at 1:05 PM, Maqsood wrote:
> OK I agree with component name. Currently my URL Is like this
> website/es/destination/Italy/Rome/49.html
> How can i change it to > website/es/destination/Italy/rome.html
> i don't want to show item id. Do you know how to remove it from url?
> Thank you
> Maqsood
> On Monday, July 23, 2012 4:01:10 PM UTC-4, Mushr00m wrote:
> I agree with you for the component name, sorry I didn't saw "destination" > was to component name, but he seems to want to change also the ID 49 and > change we need to know by what you want to change it ? 49 is the item ID or > the menu item ID ?
> Le vendredi 20 juillet 2012 03:03:31 UTC+2, Mushr00m a écrit :
> Hi all ! First post on the group for me ;-)
> I'm developping a component in frontend for J2.5 ans I'm having a little > issue with the SEF URL.
> I have 2 views "Items" and "Item". When I click on an item to see its > details the URL SEF looks like this :
> http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
> How should I do to delete the "item" value ? I think it's the name of the > view but I don't understand how to delete this in the URL...
> Thanks a lot !
> -- > You received this message because you are subscribed to the Google Groups > "Joomla! General Development" group.
> To view this discussion on the web, visit > https://groups.google.com/d/msg/joomla-dev-general/-/NmNQ53od998J.
> To post to this group, send an email to > joomla-dev-general@googlegroups.com.
> To unsubscribe from this group, send email to > joomla-dev-general+unsubscribe@googlegroups.com.
> For more options, visit this group at > http://groups.google.com/group/joomla-dev-general?hl=en-GB.
> I'm developping a component in frontend for J2.5 ans I'm having a little > issue with the SEF URL.
> I have 2 views "Items" and "Item". When I click on an item to see its > details the URL SEF looks like this :
> http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
> How should I do to delete the "item" value ? I think it's the name of the > view but I don't understand how to delete this in the URL...
> I'm developping a component in frontend for J2.5 ans I'm having a little > issue with the SEF URL. > I have 2 views "Items" and "Item". When I click on an item to see its > details the URL SEF looks like this : > http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
> How should I do to delete the "item" value ? I think it's the name of the > view but I don't understand how to delete this in the URL...
> Em quinta-feira, 19 de julho de 2012 22h03min31s UTC-3, Mushr00m escreveu:
>> Hi all ! First post on the group for me ;-)
>> I'm developping a component in frontend for J2.5 ans I'm having a little >> issue with the SEF URL. >> I have 2 views "Items" and "Item". When I click on an item to see its >> details the URL SEF looks like this : >> http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
>> How should I do to delete the "item" value ? I think it's the name of the >> view but I don't understand how to delete this in the URL...
> I'm developping a component in frontend for J2.5 ans I'm having a little > issue with the SEF URL.
> I have 2 views "Items" and "Item". When I click on an item to see its > details the URL SEF looks like this :
> http://www.MYWEBSITE.com/MenuName/item/12-thenameoftheitem.html
> How should I do to delete the "item" value ? I think it's the name of the > view but I don't understand how to delete this in the URL...