Re: [pmwiki-users] Borrowing title from another page

2008-01-24 Thread Sameer Kumar
Thursday, January 24, 2008, 7:12:05 PM, Sameer Kumar wrote:

 

> For each page in Projects, there is a corresponding page in
Projecttext.

 

> Each page in Projects group has a specified (:title:). 

 

> I would like the pages in Projecttext to inherit the Title of the

> corresponding page in the Projects group.

 

 

> I have tried to put the following in the Projecttext.GroupHeader

 

 

> (:title {Projects.{*$Name}$Title}:)

 

{Projects.ProjectName$Title} is the page variable giving the title for

page Projects.ProjectName, and

 

(:title {Projects.ProjectName$Title}:) will give you that title in any

page.

 

(:title {Projects.{*$Name}$Title}:) or (:title
{Projects.{$Name}$Title}:)

in Projecttext.GroupHeader should give you the required title.

It does for me.

 

 

 (:redirect Projects.{*$Name}:) in the GroupHeader should also work,

but browsing the page will get impossible (which is the intention I

suppose), so a title directive on that page seems pointless to me.

 

The point is that when in the search results, I get page names which are
in the form Projects.2, Projects.4 and Projecttext.2,
Projecttext.4 etc. These numeric pagenames are generated by the
wikiforms recipe and have no relationship with the more meaningful page
titles.

 

I am trying real hard to get back to more meaningful search results. 

 

However, this does not seem to solve all my problems... people still
have to add both the pages to their Watchlists to track them!!

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Borrowing title from another page

2008-01-24 Thread Hans
Thursday, January 24, 2008, 9:12:49 PM, Sameer Kumar wrote:
> I have also tried adding the following at the top of the Projecttext
> page using an EditTemplate:

> (:title {Projects.{*$Name}$Title}:)
 
> The problem I face now is that when this page gets “included”
> into the corresponding Projects page, the two titles conflict and I
> lost the title of the Projects page!

The last title markup on a page wins!

If you use (:title {Projects.{$Name}$Title}:) it will show you the
title of the page.

But I am not getting the point why the Projecttext pages have titles,
if they are tied to the Project pages by being automatically included.


  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Borrowing title from another page

2008-01-24 Thread Hans
Thursday, January 24, 2008, 7:12:05 PM, Sameer Kumar wrote:

> For each page in Projects, there is a corresponding page in Projecttext.

> Each page in Projects group has a specified (:title:). 

> I would like the pages in Projecttext to inherit the Title of the
> corresponding page in the Projects group.

 

> I have tried to put the following in the Projecttext.GroupHeader

 

> (:title {Projects.{*$Name}$Title}:)

{Projects.ProjectName$Title} is the page variable giving the title for
page Projects.ProjectName, and

(:title {Projects.ProjectName$Title}:) will give you that title in any
page.

(:title {Projects.{*$Name}$Title}:) or (:title {Projects.{$Name}$Title}:)
in Projecttext.GroupHeader should give you the required title.
It does for me.

(:redirect Projects.{*$Name}:) in the GroupHeader should also work,
but browsing the page will get impossible (which is the intention I
suppose), so a title directive on that page seems pointless to me.



  ~Hans


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Borrowing title from another page

2008-01-24 Thread Sameer Kumar
Sameer Kumar wrote:

> I have two groups: 'Projects' and 'Projecttext'.

> 

> For each page in Projects, there is a corresponding page in
Projecttext.

> 

> Each page in Projects group has a specified (:title:). 

> 

> I would like the pages in Projecttext to inherit the Title of the

> corresponding page in the Projects group.

> 

I don't think there is any non-recipe approach that will work. The title

for a page is saved in that pages' meta-information when the page is
saved.

 

I think you would need to write a recipe that overrode the default title

handling in order to get the effect you want.

 

I am not a programmer and have no experience with php. So writing a
recipe is a bit of an uphill task for me!

 

I have also tried adding the following at the top of the Projecttext
page using an EditTemplate:

(:title {Projects.{*$Name}$Title}:)

 

The problem I face now is that when this page gets "included" into the
corresponding Projects page, the two titles conflict and I lost the
title of the Projects page!

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Borrowing title from another page

2008-01-24 Thread Stirling Westrup
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sameer Kumar wrote:
> I have two groups: 'Projects' and 'Projecttext'.
> 
> For each page in Projects, there is a corresponding page in Projecttext.
> 
> Each page in Projects group has a specified (:title:). 
> 
> I would like the pages in Projecttext to inherit the Title of the
> corresponding page in the Projects group.
> 
I don't think there is any non-recipe approach that will work. The title
for a page is saved in that pages' meta-information when the page is saved.

I think you would need to write a recipe that overrode the default title
handling in order to get the effect you want.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeY96IACgkQ5dZZEoPlyIVIWwCghUfTdm6cVVBKuD2rqlF1GrGq
qMEAn0ati/lqP/9msIJZPQRR8N6z5s9+
=Upvu
-END PGP SIGNATURE-

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


[pmwiki-users] Borrowing title from another page

2008-01-24 Thread Sameer Kumar
I have two groups: 'Projects' and 'Projecttext'.

For each page in Projects, there is a corresponding page in Projecttext.

Each page in Projects group has a specified (:title:). 

I would like the pages in Projecttext to inherit the Title of the
corresponding page in the Projects group.

 

I have tried to put the following in the Projecttext.GroupHeader

 

(:title {Projects.{*$Name}$Title}:)

(:redirect Projects.{*$Name}:)

 

However, this does not work. The pages in Projecttext do not show up
with titles in searchresults.

 

FYI, all the pages in the Project group have their corresponding pages
from Projecttext "included" as a GroupFooter.

 

If this is not clear, let me know and I will try to be even more
explicit.

 

Thanks!

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users