Re: [xwiki-users] Including and excluding linked text with tags

2013-12-11 Thread Hamster
I think the Include Macro can help here...

The include macro can show a portion of a page, so if you have a
MasterPage with all your text divided in multiple Sections (for example
with H1), then you could create a ApplicationPage and only include those
sections from the MasterPage you want to show.

For example: ApplicationPage, which will show section 1,2,4 and 5:

{{include document=MasterPage section=HSection001/}}
{{include document=MasterPage section=HSection002/}}
{{include document=MasterPage section=HSection004/}}
{{include document=MasterPage section=HSection005/}}

For example: ApplicationPage2, which will show section 2,3 and 5:

{{include document=MasterPage section=HSection002/}}
{{include document=MasterPage section=HSection003/}}
{{include document=MasterPage section=HSection005/}}

If anything changes on the MasterPage, for example some text in section 2,
then all the ApplicationPages will show that change immediatly.



--
View this message in context: 
http://xwiki.475771.n2.nabble.com/Including-and-excluding-linked-text-with-tags-tp7588038p7588349.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Including and excluding linked text with tags

2013-12-06 Thread Guillaume Lerouge
Hi Tapio,

unfortunately I don't see any easy solution for your use case. You could
indeed try to have a velocity macro to achieve this:

{{velocity}}
#if($doc.space == SomeValue)
display line
#end
{{/velocity}}

But it will complicated to maintain for all your content.

Best,

Guillaume

On Tue, Nov 19, 2013 at 12:19 PM, Tapio Seppälä
tapio.sepp...@quanttos.fiwrote:

 Hi all,

 I've been looking for a long time a solution how to exclude some text from
 the source, when linked to another page, but haven't found it yet.

 We use XWiki as base of our help system for several applications. There are
 a lots of common topics which have the same, or almost the same content on
 each application help. So we built 'mother' pages of help which each and
 other different applications help then are using by linking to them. Header
 based tagging (we use XWiki syntax 2.1) is very user friendly for this
 purpose. The problem is, there are slight variations in the content of the
 text here and there between the applications.

 An example:

 There is a page explaining some settings of an application containing some
 200 rows of text. Most, but not all of the rows are the same. I might then
 like to do something like include the whole page in app #1 help, excluding
 only rows 33, 52 and 55 from the page, but include them still to some other
 app's help, and so on...

 I imagine the above could be done with some smart tags, macros and links,
 but as I am not a developer, so I can't do that and haven't found a
 solution. A few years ago we used syntax 1.0, and if I remember right,
 there
 was a possibility to include e.g. a sentence with tags, but not to exclude
 anything inside the linked part of the text.

 It is very irritating to copy and paste large amounts of text to different
 pages with only slight differences between them. And then again, when the
 'root' text has some change, e.g. a setting common to all apps changes, you
 have go and edit each of the pages created with copy-paste. This could be
 avoided if there was a way to include and exclude tagged text other than
 just between the headings.

 ---

 best regards

 Tapio Seppala

 P.S. Congratulations for the 10-year old!

 ___
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/mailman/listinfo/users
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Including and excluding linked text with tags

2013-11-18 Thread Tapio Seppälä
Hi all,

I've been looking for a long time a solution how to exclude some text from
the source, when linked to another page, but haven't found it yet.

 

We use XWiki as base of our help system for several applications. There are
a lots of common topics which have the same, or almost the same content on
each application help. So we built 'mother' pages of help which each and
other different applications help then are using by linking to them. Header
based tagging (we use XWiki syntax 2.1) is very user friendly for this
purpose. The problem is, there are slight variations in the content of the
text here and there between the applications.

 

An example:

There is a page explaining some settings of an application containing some
200 rows of text. Most, but not all of the rows are the same. I might then
like to do something like include the whole page in app #1 help, excluding
only rows 33, 52 and 55 from the page, but include them still to some other
app's help, and so on...

 

I imagine the above could be done with some smart tags, macros and links,
but as I am not a developer, so I can't do that and haven't found a
solution. A few years ago we used syntax 1.0, and if I remember right, there
was a possibility to include e.g. a sentence with tags, but not to exclude
anything inside the linked part of the text.

 

It is very irritating to copy and paste large amounts of text to different
pages with only slight differences between them. And then again, when the
'root' text has some change, e.g. a setting common to all apps changes, you
have go and edit each of the pages created with copy-paste. This could be
avoided if there was a way to include and exclude tagged text other than
just between the headings.

 

---

best regards

Tapio Seppala

 

P.S. Congratulations for the 10-year old!

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users