Item14379: DBQUERY recently began rendering $web with all dots rather than slashes
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release:
In some recent release of
DBCachePlugin, the DBQUERY macro has begun to render the
$web
format variable as
Web.SubWeb1.SubWeb11
rather than
Web/SubWeb1/SubWeb11
as is the norm in other macros such as
SEARCH, WEB, etc. It may seem like a small matter since both will produce viable links. However, if one stores a value (in a DataForm) using other macros and then later needs to compare that with results from results DBQUERY, suddenly it matters a lot.
If possible, it would be nice if
DBCachePlugin kept with the standard of other macros.
--
LynnwoodBrown - 14 Apr 2017
It actually
always was like that in
DBCachePlugin. I regularly use this as a
feature to normalize web names as in:
%DQUERY{
topic="Some/Nested/Web.topic"
format="$web"
}%
%DQUERY{
topic="Some.Nested/Web.topic"
format="$web"
}%
%DQUERY{
topic="Some/Nested.Web.topic"
format="$web"
}%
%DQUERY{
topic="Some.Nested.Web.topic"
format="$web"
}%
Above all return the same result. Functionally speaking they are all equivalent.
Same decision has been made in other plugins such as
ClassificationPlugin. They all work on webs using the dot notation. For instance, some of those plugins use internal caching taking the web name under consideration.
Therefore I deliberately convert all of them to one notation, the dot notation.
Sorry.
--
MichaelDaum - 14 Apr 2017