Securely-include only part of a page?
I would like to use secure-include to get only part of a page (something similar to the excerpt-include macro.)
More specifically, my linked page has multi-tab contant, and I'd like to include only the content from one tab.
Is there a way to obtain this?
Thanks.
More specifically, my linked page has multi-tab contant, and I'd like to include only the content from one tab.
Is there a way to obtain this?
Thanks.
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
-
Inappropriate?You better post what content you have on the page-tab you want to report in order to get advice if it is possible.
-
Inappropriate?Hi Andrea,
I do not think this is possible with the current Visibility plugin, it basically includes an entire page, however, since you are having multi-tab format layout, you can try to maybe split the tabs into sub pages and then use the {include} macro within the tabs to include the sub-pages, this requires some restructuring of your multi-tabbed page to work but once complete, you can {secure-include} the sub-pages (which now contains the content for a tab.
Eg.
{deck:id=1}
{card:title=card 1}
Card 1 content
{card}
{card:title=card 2}
Card 2 content
{card}
{deck}
Becomes:
{deck:id=1}
{card:title=card 1}
{include:card 1}
{card}
{card:title=card 2}
{include:card 2}
{card}
{deck}
With 2 sub-pages called "card 1" and "card 2" containing "Card 1 content" and "Card 2 content" respectively.
Regards,
Bo Wang
CustomWare
1 person says
this answers the question
-
Inappropriate?Yes, that could be a solution. Thanks for your reply Bo!
-
Inappropriate?FYI, I found another possible approach to this:
The {no-include} user macro (see: http://confluence.atlassian.com/displ...) allows you to mark content in a page that should not be rendered when included by another page.
So secure-include used in conjunction to no-include would allow to include only specific portions of a page content. -
I'm not sure if {no-include} will know if it's being included by {secure-include}, but it's worth a try.
Loading Profile...



EMPLOYEE