Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Where to Check a URL before going into sitemap
(1 viewing) (1) Guest
Support forum for customers who have purchased JoomSEF 4 (Joomla 1.6/1.7/2.5+ compatible). Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Where to Check a URL before going into sitemap

Where to Check a URL before going into sitemap 10 years, 9 months ago #43557

Hi,


I am getting some sef urls in my sitemap that I do not want to include for my custom component.

What function can I check the url before it is included in the sitemap. I would like to know in which function i can add my code to check right before the url is included into the sitemap. I will parse the url string for a variable and then check if that url is private on my table. If its not I will allow in sitemap and if it is private i will just have it skip that url.

Can you please let me know.
The topic has been locked.

Re: Where to Check a URL before going into sitemap 10 years, 8 months ago #43707

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

You can implement a getSitemapParams function in your custom JoomSEF extension for your component. Check the /components/com_sef/sef_ext/com_content.php for an example. The function signature is:
function getSitemapParams(&$uri)
ARTIO Support Team
The topic has been locked.

Re: Where to Check a URL before going into sitemap 10 years, 8 months ago #43728

I dont have a custom sef extension yet for my component. I basically looking for the section of code right before the link gets generated for the xml sitemap. Can you please let me know where that is happening so I can do the check.
The topic has been locked.

Re: Where to Check a URL before going into sitemap 10 years, 8 months ago #43822

  • dajo
  • OFFLINE
  • Posts: 5069
Hi,

The XML sitemap generation happens in the /administrator/components/com_sef/models/sitemap.php file in the generateXml() function.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty