Skip to content

Commit

Permalink
News entries now have their own "allowRobots",
Browse files Browse the repository at this point in the history
which overrides the default inherited from the page.
  • Loading branch information
ao-apps committed Sep 18, 2023
1 parent c30778a commit f554460
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions book/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<!-- javaee-web-api-bom: <groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId> -->
<!-- javaee-web-api-bom: <groupId>javax.servlet.jsp</groupId><artifactId>javax.servlet.jsp-api</artifactId> -->
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-changelog-taglib</artifactId><version>1.6.0${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-changelog-taglib</artifactId><version>1.7.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-taglib</artifactId><version>1.15.2${POST-SNAPSHOT}</version>
Expand Down Expand Up @@ -312,13 +312,13 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-model</artifactId><version>1.14.1${POST-SNAPSHOT}</version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-servlet</artifactId><version>1.18.4${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-servlet</artifactId><version>1.19.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-news-model</artifactId><version>1.2.0${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-news-model</artifactId><version>1.3.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-news-servlet</artifactId><version>1.6.1${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-news-servlet</artifactId><version>1.7.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-section-model</artifactId><version>1.6.0${POST-SNAPSHOT}</version>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ along with semanticcms-core-taglib. If not, see <https://www.gnu.org/licenses/>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-model</artifactId><version>1.14.1${POST-SNAPSHOT}</version>
</dependency>
<dependency>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-servlet</artifactId><version>1.18.4${POST-SNAPSHOT}</version>
<groupId>com.semanticcms</groupId><artifactId>semanticcms-core-servlet</artifactId><version>1.19.0-SNAPSHOT<!-- ${POST-SNAPSHOT} --></version>
</dependency>
<!-- javaee-web-api-bom: <groupId>org.apache.taglibs</groupId><artifactId>taglibs-standard-spec</artifactId> -->
<!-- Transitive -->
Expand Down
5 changes: 4 additions & 1 deletion src/main/java/com/semanticcms/core/taglib/PageTag.java
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
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit f554460

Please sign in to comment.