bilibou
Member
Posted 5 years ago #
Hi,
I would like to know if it is possible for a plugin to generate a page.
My aim is to hack the plugin nextgen gallery to make it generate a page hierarchy like this:
- All the album
--galleries in the album1
---gallery1
---gallery2
--galleries in the album2
---gallery3
So i would like to create all that pages automatically without using the write panel, but i can't find what function of the api I have to use to create a page, any ideas ??
Thanks for your help
smartin87
Member
Posted 4 years ago #
Hello,
I am working on a plugin. But I want to do the samething.
Generate a page, so that I don't have to make a page for every subpage.
Do you have found all ready a solution? Or has someone else an idea?
Thanks in advance.
smartin87
Member
Posted 4 years ago #
Hello,
I have found a solution. I don't now it's the best way, but it works :D.
On the mainpage I use the following link to get to the subpage:
href="?subpage=1" (1 = id of subpage in SQL DB)
Then I use the GET methode to get the subpage id. And after that I get the content of the subpage out of the SQL DB and post it.
I hope it is help full for someone ;)