Why is it that “never” publish templates don’t appear in the location scheme list?
I have a scenario that happens on pretty much ever implementation I do:
Content type has option binary field say unContact
The contact can have a optional image of the contact.
If I set the template to publish “always” then a 0 bytes binary will be publish when the user has not added one.
If I set the template to publish “never”, yes I can write a content list to only select the item where contact_binary IS NOT NULL but then the template does do appear in the location scheme list.
I can get around by first setting the template to either publish “always” or “default” to create the location scheme, then change to “never”.
Because a location scheme is set up for each template, even after setting the template to publish “never” it will still use that template’s location scheme.
Right, there are two location schemes. Perhaps my Content Lists are incorrectly set then.
How about this:
Image content type has two fields: i_Image and i_Thumbnail
There are two templates for Image CT, both initially set to Publish=“Default”: b_Image and b_Thumbnail, using corresponding field bindings
Two Location Schemes (per each template) added to Context1
At this point, b_Thumbnail template can be switched to Publish=“Never”
Two Content Lists created, one to collect all Image CTs, default_template=“default”, the other to collect all images where i_Thumbnail field is not null, default_template=“none”
Those two lists are then added to the Edition going through Context1
In 6.5.2, default_template has only three options: all (or unspecified), dispatch or none. Now I see I had the lists wrong again; it should be
“… - Two Content Lists created, one to collect all Image CTs, default_template=“all”,…”
As they are binary templates could you not use the sys_ListTemplateExpander and then specify the Binary template for each content list. Then it won’t matter if all the templates are set to default, so you can see them in the location scheme without changing things in workbench?
You definitely should be using the ListTemplateExpander for the thumbnail content list. The template should be set to “Publish Never”. I’m not sure which Default setting you are referring to, but Keevan suggestion is correct.
I was referring to the templates publish setting in workbench.
Dave what is the reason behind them being set to never in workbench? I would have thought as you are specifying the binary template to use in the content list there would be no harm in leaving the templates publish setting to default in workbench?
The label is a bit misleading now Rhythmyx has moved to 6.x. It used to mean “never” publish as part of the Site Root Full or Site Root Incremental publishing lists. I think “custom” would be a more appropriate label as you then have to create a custom content list specific for the template.