logo       

Re: Edit Page Desc in PHPWiki 1.3.6?: msg#00033

web.wiki.phpwiki.talk

Subject: Re: Edit Page Desc in PHPWiki 1.3.6?


On Saturday, December 6, 2003, at 05:43 pm, Michael Wexler wrote:

Ok, I understand that the gleandescription function looks at

the first 2 lines of a page, and makes that the description.

But this shows up in meta tags forever more, even after you

edit the page and delete those lines... and it never gets

updated. Do you have a suggestion on an easy way to edit

the description field for a page?



I don't understand how its stored in the DB (its like part

of a nested array stored in a field in mysql), and I don't

understand how to change the "edit" functionality to make

this available to the user.



Suggestions are appreciated,



Michael

wexler@xxxxxxxxx


Hi Michael,

I'm not really familiar with that part of code myself, so this may be a longshot.

Does purging the markup cache of the page bring the description up to date? (add &nocache=purge to the page url you are viewing)

If so, try this patch and see if it works. Let me know if this does it, I'll check it into CVS.

Carsten

Proposed experimental patch:
Index: CachedMarkup.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/CachedMarkup.php,v
retrieving revision 1.7
diff -U2 -r1.7 CachedMarkup.php
--- CachedMarkup.php 25 Mar 2003 21:04:41 -0000 1.7
+++ CachedMarkup.php 7 Dec 2003 18:39:05 -0000
@@ -126,5 +126,5 @@
$this->_buf .= "</$item->_tag>";

- if (!isset($this->_description) and $item->getTag() == 'p')
+ if ($item->getTag() == 'p')
$this->_glean_description($item->asString());
}



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise