List Info

Thread: More trouble with PageUrl




More trouble with PageUrl
country flaguser name
United Kingdom
2007-05-06 06:52:05
My last correction to fox.php to get the correct $PageUrl
in a function by using

   $PageUrl = PageVar($pagename, '$PageUrl');

has thrown the working of delete links into disarray.
Apparently they relied sometimes on the incorrect assignment
of
$PageUrl.

I try to mend this and have a question:

I have a number of pages each with a markup which generates
a link,
like

  <a class='foxdellink'
href='{$PageUrl}?action=foxdelete.....'>

These pages are listed with pagelist using fmt=#include.

Now the links all point to the holding page with the
pagelist.

Formerly with the incorrect $PageUrl they were pointing each
to the
page the markup is in, which is exactly what I want.

How can I get their page urls into the output?

Is this the exact same problem of not having a page variable
giving
the exact page url?


Thanks for any help on this!
 Hans


_______________________________________________
pmwiki-devel mailing list
pmwiki-develpmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: More trouble with PageUrl
country flaguser name
United Kingdom
2007-05-06 06:59:35
Sunday, May 6, 2007, 12:52:05 PM, Hans wrote:

> How can I get their page urls into the output?

PS: The function FoxDeleteMarkup which generates the link is
called
by the deletelink markup and passes on $pagename, but this
is not
the pagename if the page is included in another page.
Then $pagename is the holding page's name.



Hans


_______________________________________________
pmwiki-devel mailing list
pmwiki-develpmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Re: More trouble with PageUrl
country flaguser name
United Kingdom
2007-05-06 07:16:42
Sunday, May 6, 2007, 12:52:05 PM, Hans wrote:

>   <a class='foxdellink'
href='{$PageUrl}?action=foxdelete.....'>

> These pages are listed with pagelist using
fmt=#include.

> Now the links all point to the holding page with the
pagelist.

I found a solution:

<a class='foxdellink'
href='{$ScriptUrl}/{$targetname}?action=foxdelete...'>

$targetname is passed to the function, from a {$FullName}
page
variable in the link markup. This being absolute the name
refers to
the page the PV is in.

I am relieved, I had a nasty shock. Fox is cleverer than I
thought.


Hans


_______________________________________________
pmwiki-devel mailing list
pmwiki-develpmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )