Page 1 of 1

How to call custom content blocks from a tag

Posted: Fri Jan 12, 2007 6:59 am
by Unkulunkulu
Is there a way to show the entire content of a page inside a tag-function?

What I'm trying to do is to alter the sitemap-function(tag?) to display entire content of the web site. I changed the "$onecontent->MenuText()" to "$onecontent->Show()" on line 175 on function.sitemap.php and it almost does what I want, but the problem is that Show() shows only the content written in the content-block. I would like it to show the custom content blocks as well. Does anyone if there's a way to do it?

I also tried some random copy-pasting from function.content.php but got nowhere.

The reason I'm doing this is because I'm trying to render the entire content as a single xml to use in Flash. Of course, if someone has some magic render-entire-web-site-as-xml-to-use-in-Flash -module in their back pocket, I would be more than happy to use that instead.

Re: How to call custom content blocks from a tag

Posted: Mon Jan 15, 2007 10:21 am
by Unkulunkulu
After investigating further, I managed to narrow down the problem.

Apparently all the custom content blocks are inside a database table called "cms_content_props". After making some extended search I found that class.content.inc.php contains some pretty promising functions, namely Load(). It has an sql query that says:

"SELECT * FROM ".cms_db_prefix()."content_props WHERE content_id = ?";

Which is pretty much what I want. But how the hell can I use Load-function from inside a tag?

Please help, someone...