Menu Content

Support

> Forums, FAQs & Paid Support
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 12 years, 4 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
The topic has been locked.

Re: custom component development question 12 years, 4 months ago #31684

  • dajo
  • OFFLINE
  • Posts: 5069
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
The topic has been locked.

Re: custom component development question 12 years, 4 months ago #31700

Fantastic, works like a charm, thankyou.
The topic has been locked.
  • Page:
  • 1
User Login Empty