Closed (won't fix)
Project:
RobotsTxt
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 May 2008 at 17:32 UTC
Updated:
25 Sep 2008 at 00:30 UTC
This patch implements theme_robotstxt() for better output.
It also changes some parts of the code for better readability without changing any functionality.
| Comment | File | Size | Author |
|---|---|---|---|
| theme_robotstxt.patch | 6.18 KB | mustafau |
Comments
Comment #1
david straussCan you explain why you would want to run robots.txt through a theme function?
Comment #2
mustafau commentedDrupal core outputs RSS and OPML through theme functions. It is the suggested way. This way you do not need to call "exit;" in robotstxt_robots() function.
Comment #3
rmiddle commentedThis Patch looks ok. These are the changes being made in this patch that I can see.
1. It changes all refers from robots.txt to /robots.txt
2. It adds theming support.
3. Adds some minor text and formating changes.
Thanks
Robert
Comment #4
hass commentedI don't understand why you are adding a slash in front of every "robots.txt". This is not required at all and would only break the stable translations. We know all that drupal URLs starting without a slash are paths from base_path. About the rest I'm also not sure why we need this as this is a plain text file that never needs to be "themed". Not sure why we should waste time and memory for this.
Comment #5
mustafau commentedI think theming in Drupal means not only outputting HTML but also outputting XML (RSS, Atom, OPML), plain text...
Comment #6
hass commentedDo you have a real world or other module or core example for theming a text file like robots.txt? What do you like to "theme" on a simple TXT file that will "ever" be a txt file?
Comment #7
rmiddle commented#6 hass,
See #2. I can't say for certain that is true but it is right in the thread.
Thanks
Robert
Comment #8
mustafau commented