Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
6 - 5 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: How to get module content
by Peluco on 2007/11/21 21:57:15

I've been looking into XOOPS themes and how the pages are constructed. All content is into a div section called 'conten'. When you call a XOOPS page you call a php file that returns the page with all the sections. I think that maybe is possible to write a function that wraps a call to that module's php file, catchs the html output, and strips all but this div section. This will not be very efficient, because XOOPS constructs all the blocks for nothing, as the function discards them later, but it may work. I'll try to do it. Do you know of some php function/library that lets me parse an html file easily? to do the div section extraction.
Re: How to get module content
by Will_H on 2007/11/21 18:44:35

could a script be written to strip all unwanted data? This is a pretty widely requested feature.... I too would like to be able to call module output individually without the header/footer/blockloops.
Re: How to get module content
by Catzwolf on 2007/11/21 17:59:02

The only way you will be able to do what you want is to make a call to the database and get the information that way.
Re: How to get module content
by tom on 2007/11/21 16:56:40

Could you not consider an RSS feed?

The feed for news can be located at http://www.yoursite.com/backend.php

Many other modules also support RSS.

This would in my eyes be the easiest without hacking anything.
Re: How to get module content
by Peluco on 2007/11/21 13:50:34

No other solution?

Is there any other way to obtain only the content page of a module? For example, in the news module I want to obtain only the content of one of the news, so that I can put some of them in some DHTML tabbed pane.

Who's Online

201 user(s) are online (161 user(s) are browsing Support Forums)


Members: 0


Guests: 201


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits