Trigger set design failure

Hi all


I am trying to set up a trigger to apply a design every time a new asset is created, but when the asset is created I recieve these errors.


    
    MySource Warning  
    Unable to Create link: Assets of Type "design_customisation" cannot be "NOTICE" linked to a "content_type_wysiwyg" [SYS0301]  
    
    
    MySource Notice  
    Trigger Action: trigger_action_set_design Failed [CORE0135]  
    
    
    MySource Warning  
    FAILURE: Trigger "thirdlevel" (Trigger# 303), Event "trigger_event_asset_updated" broadcast by "DIV Content" (Id# 595978) [CORE0127]  
    
    
    MySource Warning  
    Unable to Create link: Assets of Type "design_customisation" cannot be "NOTICE" linked to a "bodycopy" [SYS0301]  
    
    
    MySource Notice  
    Trigger Action: trigger_action_set_design Failed [CORE0135]  
    
    
    MySource Warning  
    FAILURE: Trigger "thirdlevel" (Trigger# 303), Event "trigger_event_asset_updated" broadcast by "Page Contents" (Id# 595976) [CORE0127]  
    


My site/asset structure is <root>[standard page] ---> [Folder] ---> <parent> [standard page assets] ----> <children>[standard page assets]

My trigger has a the following options set.

  • Events
    [list]
    [*]Asset Created

[*]Conditions
[list]
[*]Tree location: [folder]
[/list]
[*]Actions
[list]
[*]Set Design: design customization
[/list]
[/list]

The design should be applied to the children standard page assets only, not the parents, as these are static pages that don't need triggers to apply new designs.

Any ideas what could be going wrong with the trigger?

You need to set another condition to only apply it to Standard Page assets, because right now it is trying to add it to that and all its children.

[quote]
You need to set another condition to only apply it to Standard Page assets, because right now it is trying to add it to that and all its children.

[/quote]



Wow something that simple eh… many thanks Nic, that did the trick!

Struck something else if anyone has any idea on how to.


if I have a asset structure such as


    
    
    |
    |
    
    |
    |
    [standard page]
    |
    |
    [standard page] - level 1
    |
    |
    [standard page] - level 2


and I wanted a trigger to apply one design to the child - level 1 assets and a trigger to apply a different design to child - level 2. What conditions would work in this scenario so the right childs receives the correct design?

Bearing in mind that both level 1 and 2 child assets can't be selected as root nodes as they get created on the fly every time as required.

[quote]
What conditions would work in this scenario so the right childs receives the correct design?

[/quote]



How are you creating the level 2 pages? Could you attach some metadata to those, so that the trigger could use that as the condition?

[quote]
How are you creating the level 2 pages? Could you attach some metadata to those, so that the trigger could use that as the condition?

[/quote]



Hi Nic, just through the back end, no asset builder forms. I think this is the approach we will take though. Many thanks for your advice :slight_smile: