call a udt from a udt (reuse a dbconnect user defined tag in a user defined tag)
Posted: Fri Nov 06, 2009 6:59 pm
I searched for calguy1000's example as stated in other post but did not find it.
I use the news module to display pages generated by UDTs. (Kids parents, kids birthday, kids favorites, Kids siblings) I though it a rather clever idea. Now, I am trying out virtualmin, on another server, and virtualmin creates a single db for everything, so after moving I have to update a bunch of db connection names at the beginning of each UDT. Ideally I would insert a db UDT {mydatabaseconnection} at the start of each display UDT {kidsbirthdays} and so only have to update {mydatabaseconnection} if I switch db or username etc.
I have experimented with literals, links to scripts and looked for a db connect tag, but have so far been unsuccessful.
Thank you
I use the news module to display pages generated by UDTs. (Kids parents, kids birthday, kids favorites, Kids siblings) I though it a rather clever idea. Now, I am trying out virtualmin, on another server, and virtualmin creates a single db for everything, so after moving I have to update a bunch of db connection names at the beginning of each UDT. Ideally I would insert a db UDT {mydatabaseconnection} at the start of each display UDT {kidsbirthdays} and so only have to update {mydatabaseconnection} if I switch db or username etc.
I have experimented with literals, links to scripts and looked for a db connect tag, but have so far been unsuccessful.
Thank you