This topic is locked

Duplicating Custom Views

10/8/2010 8:16:21 AM
PHPRunner General questions
C
crhys author

Hi Everybody,
Is there any way I could make a duplicate (or in my case 24 duplicates) of a custom view then go though each one and make slight edits (each one will show a different piece of info from a database and have different titles).
Any Help would be appreciated.
Rhys

A
ann 10/8/2010

Rhys,
I'm not sure that I fully understand your question.

Just create custom view on the Datasource tables tab, then made desired modifications on the Visual Editor tab.

C
crhys author 10/8/2010

Hi Ann,
Thanks for your reply, I could go down the route of manually creating custom views, adding an sql query, choosing which fields to display, setting an order to the display and then modifying the output table on the visual editor (about 6 different tweaks) 24 times.
But if there was a way to make a copy of a previously made custom view, change its name, change one value in the sql query, and two items in the Visual Editor then that would be much easier and more likely to produce a consistent look to the 24 output pages.
Its just a thought, it could also be useful for charts and reports too.
Rhys

C
crhys author 10/8/2010

I have resorted to good old Cut and Paste, sql queries can be copied then edited, and the visual editor html can also be copied and with a small replace command run the single field and title can be swapped.
This method is not ideal but it does create a consistent look to all the page outputs.
Going to spend the next two hours tapping "Ctrl + C" and "Ctrl + V", ohhh what fun.