[pmwiki-users] Re: Renaming multiple pages?

chr at home.se chr at home.se
Wed Dec 7 05:57:07 CST 2005


On Wed, 7 Dec 2005 chr at home.se wrote:

> I've just (manually) been renaming multiple pages and wonder if there is a 
> better way of doing this. Here's a somewhat similar scenario.
> 
> Initially I had the folloging pages (the hierarchy just illustrates how
> the pages are related, i.e. in practice how they are included, they are
> all located in the same group).
> 
> 	SMX.Plan-version0
> 		SMX.Plan-version0-A
> 		SMX.Plan-version0-B
> 	SMX.Plan-version0-devel
> 		SMX.Plan-version0-devel-A
> 		SMX.Plan-version0-devel-B
> 	SMX.Plan-variant1
> 		SMX.Plan-version1-A
> 		SMX.Plan-version1-B
> 	SMX.Plan-version1-devel
> 		SMX.Plan-version1-devel-A
> 		SMX.Plan-version1-devel-B
> 
> The pages here are plans for complating two versions of a product, and
> each product exists in two variants (normal and development). As an aside,
> if someone has a better word than variant I'd be grateful...
> 
> Anyway, for certain reasons (marketing etc) it was decided that version 0
> should actually be version 1, and version 1 should be version 2. Now I
> suddenly have to rename the pages, which I did manually using 'mv ...' in
> wiki.d/.  Then I also had to go through all the pages and change links 
> etc.
> 
> As you can imagine, this was quite annoying... *especially* since we're 
> now considering to reverse the renaming...
> 
> Does anyone have an idea how the above could be achieved with less work? 
> It might be useful for other people on this list if nothing else.

I'm just replying to myself here. Note that things would have been easier
if the pages would have placed in separate groups, i.e. like this:

        SMXPlanversion0.SMXPlanversion0
                SMXPlanversion0.A
                SMXPlanversion0.B
        SMXPlanversion0devel.SMXPlanversion0devel
                SMXPlanversion0devel.A
                SMXPlanversion0devel.B
        SMXPlanversion1.SMXPlanversion1
                SMXPlanversion1.A
                SMXPlanversion1.B
        SMXPlanversion1devel.SMXPlanversion1devel
                SMXPlanversion1devel.A
                SMXPlanversion1devel.B

However, having lots of groups would clutter things on a higher level, and
the group names become *ugly*. It'd also make the organisation of the site
a bit more difficult (more SideBars and GroupHeaders etc to maintain).

For this particular case, it would actually have been useful with some 
kind of nested or hierarchical groups. As if this could have been used 
(where the hierarchy actually indicates pages in nested groups):

	SMX.SMX	(homepage of the whole group)
	   .Plan  (gathering page for all plans)
		.version0
			.A
			.B
		.version0-devel
			.A
			.B
		.version1
			.A
			.B

The reason I don't write the full names (which might be something like
[[/SMX/Plan/version0/A]]) is that locally speaking, it ought to be
possible from e.g. SMX.Plan.version0 to just use [[./A]] to link properly.

Ok, guess I've diverged quite a bit here... Let me just say that the
problem is that I have several "sub-trees" with similar page structures
(i.e. their names). Since the names are (locally) similar, the SideBars
and GroupHeaders could have been inherited.

So, does people have any thoughts on how to organize something like this
so that it's (easier than now) to maintain?

regards
/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr






More information about the pmwiki-users mailing list