Displaying diff and edit form side by side

View: New views
2 Messages — Rating Filter:   Alert me  

Displaying diff and edit form side by side

by Desilets, Alain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

For the translation stuff, when a user wants to translate an update to a page, I want him to see a a full screen page with an inline-full diff on the right side of the screen, and a page edit form on the right.

 

I have figured out how to make it so that when you click on the update translation icon, you are sent over to wiki_edit (the full screen edit) instead of tiki-editpage. I have also figured out how to pass the diff information to wiki_edit, and make wiki_edit display it.

 

All that’s left for me to do, is to make it so that the diff and the edit form are displayed side by side.

 

The problem is that I want the two to display with 50%-50% split.

 

I tried putting them in two columns of a table, but the diff part is wider than the edit part, and crunches the edit part into a corner.

 

So… I was thinking about using frames, but I don’t think Tiki is frames friendly, is it? The problem I am having is that the first <FRAME>  tag must come before any content is displayed, I think. But by the time I get to wiki_edit, there is already some content that has been displayed.

 

For example, I tried putting this at the top of wiki_edit.tpl:

 

      <FRAMESET cols="50%, 50%">

            <FRAME src="http://www.google.ca/">

            <FRAME src="http://www.yahoo.ca/">

      </FRAMESET>

 

But it does not in display the google and yahoo pages side by side.

 

Is there any part of tiki that uses frames, from which I could learn to do this?

 

Thx.

 

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tikiwiki-devel mailing list
Tikiwiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel

Re: Displaying diff and edit form side by side

by Desilets, Alain :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Another thought. Could I use div instead of frames or columns to split the screen 50-50, and force it that way (i.e., forcing the left side to use horizontal scrolling if it is too big to fit half the screen).

 

Alain 

 


From: Desilets, Alain [mailto:Alain.Desilets@...]
Sent: Thursday, November 05, 2009 4:33 PM
To: Tikiwiki developers
Subject: [Tikiwiki-devel] Displaying diff and edit form side by side

For the translation stuff, when a user wants to translate an update to a page, I want him to see a a full screen page with an inline-full diff on the right side of the screen, and a page edit form on the right.

 

I have figured out how to make it so that when you click on the update translation icon, you are sent over to wiki_edit (the full screen edit) instead of tiki-editpage. I have also figured out how to pass the diff information to wiki_edit, and make wiki_edit display it.

 

All that’s left for me to do, is to make it so that the diff and the edit form are displayed side by side.

 

The problem is that I want the two to display with 50%-50% split.

 

I tried putting them in two columns of a table, but the diff part is wider than the edit part, and crunches the edit part into a corner.

 

So… I was thinking about using frames, but I don’t think Tiki is frames friendly, is it? The problem I am having is that the first <FRAME>  tag must come before any content is displayed, I think. But by the time I get to wiki_edit, there is already some content that has been displayed.

 

For example, I tried putting this at the top of wiki_edit.tpl:

 

      <FRAMESET cols="50%, 50%">

            <FRAME src="http://www.google.ca/">

            <FRAME src="http://www.yahoo.ca/">

      </FRAMESET>

 

But it does not in display the google and yahoo pages side by side.

 

Is there any part of tiki that uses frames, from which I could learn to do this?

 

Thx.

 

 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tikiwiki-devel mailing list
Tikiwiki-devel@...
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel