-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
News entries now have their own "allowRobots",
which overrides the default inherited from the page.
- Loading branch information
Showing
3 changed files
with
9 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* semanticcms-core-taglib - Java API for modeling web page content and relationships in a JSP environment. | ||
* Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022 AO Industries, Inc. | ||
* Copyright (C) 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 AO Industries, Inc. | ||
* [email protected] | ||
* 7262 Bull Pen Cir | ||
* Mobile, AL 36695 | ||
|
@@ -230,6 +230,9 @@ public void setAllowRobots(String allowRobots) { | |
this.allowRobots = false; | ||
} else { | ||
// Matches ao-tld-parser:XmlHelper.java | ||
// Matches semanticcms-changelog-taglib:ReleaseTag.java | ||
// Matches semanticcms-core-taglib:PageTag.java | ||
// Matches semanticcms-news-taglib:NewsTag.java | ||
throw new IllegalArgumentException("Unexpected value for allowRobots, expect one of \"auto\", \"true\", or \"false\": " + allowRobots); | ||
} | ||
} | ||
|