HKC1COB
New Creator

Hide CMS_INPUT_COMBOBOX (lt_id) in all Templates except Header GCA

Hello Team

In the External and Internal Link templates I have added a CMS_INPUT_COMBOBOX component (lt_id).

PIc1.png

The requirement is to make it visible only in the Header GCA (UID :- gc_o_header)

pic2.png

I have given the below rules to make it visible only in the Header GCA and to make it mandatory in the Header GCA.

pic3.pngpic4.png

 

With these rules it (lt_id) is hiding in templates but it (lt_id) is getting visible in Data sources and Global Settings -->Project Settings

pic5.pngpic6.png

Please kindly let me know how to make the lt_id hide in all the templates (except Header GCA) , Data Source, and Projects Settings.

@hoebbel , @Hendrik 

0 Kudos
1 Reply
hoebbel
Crownpeak employee

Dear HKC1COB,

I would first use a rule that restricts the store to the globalstore

<RULE>
	<WITH>
		<AND>
			<EQUAL>
				<PROPERTY name="STORETYPE" source="#global"/>
				<TEXT>globalstore</TEXT>
			</EQUAL>
		</AND>
	</WITH>
	<DO>
		<PROPERTY name="VISIBLE" source="lt_id"/>
	</DO>
</RULE>

And if this isn't sufficient (because the link template can still be used on other global pages), then I would additionally restrict to the UID of the template.

Best regards
Holger

0 Kudos