Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Joomla 2.5 Component SEF hide the View name
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mushr00m  
View profile  
 More options Jul 19 2012, 9:03 pm
From: Mushr00m <marsilyaim...@gmail.com>
Date: Thu, 19 Jul 2012 18:03:31 -0700 (PDT)
Local: Thurs, Jul 19 2012 9:03 pm
Subject: Joomla 2.5 Component SEF hide the View name

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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mushr00m  
View profile  
 More options Jul 23 2012, 3:41 pm
From: Mushr00m <marsilyaim...@gmail.com>
Date: Mon, 23 Jul 2012 12:41:23 -0700 (PDT)
Local: Mon, Jul 23 2012 3:41 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

Ok I found the solution, so in the router.php in the BuildRoute function
use :
        unset( $query['view'] );


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maqsood  
View profile  
 More options Jul 23 2012, 3:46 pm
From: Maqsood <leveltensoluti...@gmail.com>
Date: Mon, 23 Jul 2012 12:46:02 -0700 (PDT)
Local: Mon, Jul 23 2012 3:46 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

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)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mushr00m  
View profile  
 More options Jul 23 2012, 3:48 pm
From: Mushr00m <marsilyaim...@gmail.com>
Date: Mon, 23 Jul 2012 12:48:30 -0700 (PDT)
Local: Mon, Jul 23 2012 3:48 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

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 :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Hartless  
View profile  
 More options Jul 23 2012, 3:50 pm
From: Alan Hartless <hart...@gmail.com>
Date: Mon, 23 Jul 2012 12:50:13 -0700
Local: Mon, Jul 23 2012 3:50 pm
Subject: Re: [jgen] Re: Joomla 2.5 Component SEF hide the View name

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.

Thanks!
Alan Hartless


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mushr00m  
View profile  
 More options Jul 23 2012, 4:01 pm
From: Mushr00m <marsilyaim...@gmail.com>
Date: Mon, 23 Jul 2012 13:01:10 -0700 (PDT)
Local: Mon, Jul 23 2012 4:01 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

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 :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maqsood  
View profile  
 More options Jul 23 2012, 4:05 pm
From: Maqsood <leveltensoluti...@gmail.com>
Date: Mon, 23 Jul 2012 13:05:43 -0700 (PDT)
Local: Mon, Jul 23 2012 4:05 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

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


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mushr00m  
View profile  
 More options Jul 23 2012, 4:09 pm
From: Mushr00m <marsilyaim...@gmail.com>
Date: Mon, 23 Jul 2012 13:09:36 -0700 (PDT)
Local: Mon, Jul 23 2012 4:09 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

In the router.php :
if (isset($query['id'])) {
        unset( $query['id'] );
    };

Le lundi 23 juillet 2012 22:05:43 UTC+2, Maqsood a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alan Hartless  
View profile  
 More options Jul 23 2012, 4:09 pm
From: Alan Hartless <hart...@gmail.com>
Date: Mon, 23 Jul 2012 13:09:57 -0700
Local: Mon, Jul 23 2012 4:09 pm
Subject: Re: [jgen] Re: Joomla 2.5 Component SEF hide the View name

You are sure 49 is the Item Id?  If you disable SEF, what does the non-sef URL look like?

Thanks!
Alan Hartless


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Maqsood  
View profile  
 More options Jul 23 2012, 5:16 pm
From: Maqsood <leveltensoluti...@gmail.com>
Date: Mon, 23 Jul 2012 14:16:21 -0700 (PDT)
Local: Mon, Jul 23 2012 5:16 pm
Subject: Re: [jgen] Re: Joomla 2.5 Component SEF hide the View name

After disable sef url my component url
is: com_pregistrations&view=destination&id=3&country=91&Itemid=571&lang=en
so iteam id is: 571


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mushr00m  
View profile  
 More options Jul 23 2012, 5:30 pm
From: Mushr00m <marsilyaim...@gmail.com>
Date: Mon, 23 Jul 2012 14:30:42 -0700 (PDT)
Local: Mon, Jul 23 2012 5:30 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

Ok so "destination" is your view and not your component name so you can get
rid of it with my previous post

Le vendredi 20 juillet 2012 03:03:31 UTC+2, Mushr00m a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Batista  
View profile   Translate to Translated (View Original)
 More options Jul 25 2012, 10:32 am
From: Bruno Batista <br...@totalpropaganda.com>
Date: Wed, 25 Jul 2012 07:32:18 -0700 (PDT)
Local: Wed, Jul 25 2012 10:32 am
Subject: Re: Joomla 2.5 Component SEF hide the View name

I get similar problem:

Categories work: http://www.joomlapro.com.br/new/en/template
Courses work:
http://www.joomlapro.com.br/new/en/template/php-5-4-new-features

Lessons not work:
http://www.joomlapro.com.br/new/en/template?view=lesson&id=1:welcome&...

Anybody know how solve it?
Thanks!

Em quinta-feira, 19 de julho de 2012 22h03min31s UTC-3, Mushr00m escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bruno Batista  
View profile  
 More options Jul 25 2012, 10:32 am
From: Bruno Batista <br...@totalpropaganda.com>
Date: Wed, 25 Jul 2012 07:32:47 -0700 (PDT)
Local: Wed, Jul 25 2012 10:32 am
Subject: Re: Joomla 2.5 Component SEF hide the View name

The project for look https://github.com/joomlapro/com_courses

Em quarta-feira, 25 de julho de 2012 11h32min18s UTC-3, Bruno Batista
escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mushr00m  
View profile  
 More options Jul 25 2012, 9:33 pm
From: Mushr00m <marsilyaim...@gmail.com>
Date: Wed, 25 Jul 2012 18:33:04 -0700 (PDT)
Local: Wed, Jul 25 2012 9:33 pm
Subject: Re: Joomla 2.5 Component SEF hide the View name

Just an other question. For my link I have the Catid and the alias like
this : 3:NameOfMyCategorie. So the Sef URL gives :
www.mywebsite.com/3-nameofmycategorie/1-myitem.html
I want to remove the ID of my category from the URL to have just :
www.mywebsite.com/nameofmycategorie/1-myitem.html

Is that possible ?

Thanks

Le vendredi 20 juillet 2012 03:03:31 UTC+2, Mushr00m a écrit :


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »