cheitee
Occasional Observer

Form Rules -> ValueService -> Linkeditors

Jump to solution

Current Setup

Multiple FS_CATALOGs with an sectiontemplate lets call it "st_link_section".
(And before you ask i cant use an FS_CATALOG with type="link" for this)

Problem

For certain FS_CATALOGs i only want to add certain link types.

For Example:
Sectiontemplate A: FS_CATALOG -> st_link_section -> st_link -> all linkeditors allowed
Sectiontemplate B: FS_CATALOG -> st_link_section -> st_link -> only internal linkeditors allowed
...

Question

Is it possible with the Rules and/or and ValueService to tell the "st_link_section" that only certain LINKEDITORS are allowed ?

Or is it possible to determine which parent FS_CATALOG is calling an the "st_link_section" ?
(then i could just add multiple CMS_INPUT_LINKs and only show the one needed right now)

What i would avoid with that

Multiple "st_link_section" Variants with different LINKEDITORS


0 Kudos
Reply
1 Solution

Accepted Solutions
hoebbel
Crownpeak employee

Hello cheitee,

you can access the UID of the template of the outer section (the one which is a child of the body) with this rule:

	<RULE when="ONLOCK">
		<WITH>
			<PROPERTY name="TEMPLATE" source="#global"/>
		</WITH>
		<DO>
			<PROPERTY name="VALUE" source="st_text"/>
		</DO>
	</RULE>

This rule would write the UID into a (CMS_INPUT_TEXT) input component with the name "st_text". (just an example, so you can see how it can be used)

Since you wrote, that you are using different section templates, this way you can identify the different places where the CATALOGs are used. (and only show the desired CMS_INPUT_LINK input component)

best regards
Holger

View solution in original post

2 Replies
hoebbel
Crownpeak employee

Hello cheitee,

you can access the UID of the template of the outer section (the one which is a child of the body) with this rule:

	<RULE when="ONLOCK">
		<WITH>
			<PROPERTY name="TEMPLATE" source="#global"/>
		</WITH>
		<DO>
			<PROPERTY name="VALUE" source="st_text"/>
		</DO>
	</RULE>

This rule would write the UID into a (CMS_INPUT_TEXT) input component with the name "st_text". (just an example, so you can see how it can be used)

Since you wrote, that you are using different section templates, this way you can identify the different places where the CATALOGs are used. (and only show the desired CMS_INPUT_LINK input component)

best regards
Holger

cheitee
Occasional Observer

Thank you Holger 👍

 

0 Kudos
Reply