From: Jesse W. <wj...@gm...> - 2012-04-16 18:24:22
|
Yeah, I understand the cost of extra HTTP call. Let me see how we can add this feature into our WOM code. Jesse On Mon, Apr 16, 2012 at 8:53 AM, Marcelo Chiaradía < chi...@gm...> wrote: > Yes, it does. But in that way i should do 2 HTTP requests, and due to I > need to manage some great amounts of pages, It takes a lot of time. > > 2012/4/16 Jesse Wang <wj...@gm...> > >> Let's see how can we add it, meanwhile, doesn't MW API support the page >> info you want? >> >> >> On Monday, April 16, 2012, Marcelo Chiaradía wrote: >> >>> Hi Jesse, >>> >>> the WOM extension worked perfect for me, thanks a lot. >>> >>> The only trouble is that I can't get the page info with the WOMGET >>> requests. >>> >>> Im trying to do something like >>> >>> >>> api.php?action=womget&page=MY_TITLE&xpath=//template&format=json&prop=info >>> >>> or >>> >>> >>> api.php?action=womget&page=MY_TITLE&xpath=//template&format=json&prop=pageprops >>> >>> But it seems the womget action doesn't support the &prop parameter. Is >>> there some way to get some page info in the same HTTP request? (I only >>> need the creation date or the "touched" property) >>> >>> Regards, >>> >>> Marcelo. >>> >>> 2012/4/12 Jesse Wang <wj...@gm...> >>> >>>> Marcelo, >>>> Please check out WOM extension: >>>> http://www.mediawiki.org/wiki/Extension:Wiki_Object_Model, I believe >>>> it should do what you want to and beyond. >>>> Please feel free to let us know what you think. >>>> Cheers, >>>> Jesse >>>> >>>> On Wed, Apr 11, 2012 at 1:27 PM, Marcelo Chiaradía < >>>> chi...@gm...> wrote: >>>> >>>>> Hi everyone, >>>>> >>>>> I have a semantic media wiki installed, with the Semantic Forms >>>>> extension. >>>>> >>>>> Im making a small php app, which has to get some data from mi wiki. >>>>> >>>>> Suppose I have a page, which has a category "MyCategory", which can be >>>>> edited by a semantic form call "MySemanticForm", which use a template, >>>>> which has many of fields. >>>>> >>>>> I need a way to get all the fields values of that template, for n >>>>> specific page. >>>>> >>>>> Is some way to do that? I've been looking the mediawiki API (api.php), >>>>> and I cant find a query that covers my needs. >>>>> >>>>> Thanks a lot, >>>>> >>>>> Marcelo. >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Better than sec? Nothing is better than sec when it comes to >>>>> monitoring Big Data applications. Try Boundary one-second >>>>> resolution app monitoring today. Free. >>>>> http://p.sf.net/sfu/Boundary-dev2dev >>>>> _______________________________________________ >>>>> Semediawiki-devel mailing list >>>>> Sem...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/semediawiki-devel >>>>> >>>>> >>>> >>> >> >> -- >> Jesse >> Sent from my phone, please forgive any errors caused by touch and/or >> voice assistant >> > > |