[MGNLSTK-939] Targeting content to a channel works for some areas but not others Created: 09/Apr/12  Updated: 04/Dec/13  Resolved: 19/Apr/12

Status: Closed
Project: Magnolia Standard Templating Kit (closed)
Component/s: None
Affects Version/s: 2.0, 2.0.1, 2.0.2
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Matt Dertinger Assignee: Tobias Mattsson
Resolution: Duplicate Votes: 0
Labels: channels, mobile, stk
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
duplicate
duplicates MAGNOLIA-4011 Exclusion of nodes not working on inh... Closed
Template:
Acceptance criteria:
Empty
Date of First Response:

 Description   

Hi,

Currently, when following the documentation for Targeting content to a channel I can target some content to a channel, for instance it seems to work fine for content in the main area. However, if I try to do the same for content in the extras area, base area, or footer area, the content that should not be rendered for a particular channel is still rendered. I've been able to reproduce the issue on demoauthor site.

Steps to Reproduce:

  1. Add tabChannels to dialogs/pages/footer/stkFooterLinkInternal
  2. On the demo-project home page, edit the Contact Us link in the footer to open the dialog
  3. In the Edit dialog, click on the Channels tab check the Desktop checkbox to exclude the content from the Desktop channel, then click the Save button
  4. Select the Preview button, and choose Desktop from the dropdown menu
  5. Note that the Contact Us link in the footer is still rendered for the Desktop channel.

Let me know if you have any questions.

Cheers,
Matt



 Comments   
Comment by Matt Dertinger [ 12/Apr/12 ]

Hi,

I updated the priority on this issue since I really need this feature, or a workaround soon. I'm hoping it can be fixed with the Magnolia 4.5.3 release.

After a bit more investigation, it appears that targeting content to a channel works in areas that pass in the current content through the content parameter. For example:

Targeting content to channel works
[@cms.area name="main" content=content/]
Targeting content to channel does not work
[@cms.area name="stage"/]

HTH,
Matt

Comment by Federico Grilli [ 12/Apr/12 ]

Hi Matt,

this issue sounds very close to http://jira.magnolia-cms.com/browse/MAGNOLIA-4011 which is scheduled for 4.5.3.

Cheers,

Federico

Generated at Mon Feb 12 07:31:50 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.