Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

custom component development question
(1 viewing) (1) Guest
Requests for new JoomSEF extensions. If you want better SEO options for your favourite component, which has no JoomSEF extension available yet, leave a message here.
  • Page:
  • 1

TOPIC: custom component development question

custom component development question 7 years, 5 months ago #31649

Hello,
I have developed a custom component in joomla 2.5.6, and am creating a joomsef extension for it.
I have got it working nicely, but I would like to know how to prevent sef urls for particular tasks/views.

For example, I have an area only accessible by logged in users, where they can add data and submit forms.
I do not wish these areas to have sef urls.

I have developed plugins for sh404sef where I just set $dosef= false for the views/tasks I do not wish sef urls, how would
I do this with joomsef?

Thanks

Re: custom component development question 7 years, 5 months ago #31684

  • dajo
  • OFFLINE
  • Posts: 5070
Hi,

Basically SEF URLs are generated in JoomSEF extensions in function create(&$uri). If you don't want to create SEF URL for specific views/tasks, just return the original $uri object for those. For example:
if ($uri->getVar('task') == 'something') {
return $uri;
}
ARTIO Support Team

Re: custom component development question 7 years, 5 months ago #31700

Fantastic, works like a charm, thankyou.
  • Page:
  • 1
Přihlášení uživatele Prázdný