2

I am trying to organize my content as follows, but I am not certain if it is proper to use variants (if there are variants for mini panels) this way. Suppose I have a page A. I would like to easily re-use A as a block in other pages, say as a block with a portion of the content of A and a read more link and placed in a sidebar of the front page. Note that I want to do this for a few hand-selected pages, and I hope these blocks can be moved around easily like panes. So I was thinking if I can do the content of A in a mini-panel A', and use A' in both A and the front page. But that way I must have two ways to render the mini-panel A'. So how do I add variants to A'?

  • How are you create the page in the first place? Is it a panel page a view page or simply a node? – Mohammed Shameem Jan 21 '13 at 4:59
  • They will be panel pages, and the site uses panels a lot, so I tend to look for a panels-solution. – Pomin Wu Jan 21 '13 at 12:48
2

Minipanels don't support variants, however, you can achieve a similar result by adding visibility rules to show/hide minipanel panes on certain pages, according to specified conditions.

Though more simple options are possible, an example using PHP for a visibility check is here

pane visibility rules pane visibility rule options

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.