Accepted, Not Yet Planned

IMprove CIL API for getting PageMeta

Consider the example CIL code below (CIL 8.5 .NET):

var pageMeta = new PageMetaFactory(654);
pageMeta.GetMeta(442318);
pageMeta.GetMetaByUrl(654, "/index.html");

Why in the call to GetMetaByUrl() is the publication Id parameter even needed, given I've constructed the PageMetaFactory object with a publication Id in the first place?

If I don't pass the publication Id GetMetaByUrl() finds all index.html pages across all publications - that should really be in a separate GetAllMetaByUrl() surely and GetMetaByUrl() should respect the publication Id I've instantiated with?

Not a show -stopper I know, but an idea none the less!

Cheers

Parents Comment Children
No Data