TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-templavoila@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 10.05.2008, 00:49
Niels Fröhling
Gast
 
Beiträge: n/a
Standard [TYPO3-templavoila] TV-preview suggestion

Hy;

Here is a little suggestion to improve usability of Templa Voila:

------------------------------------------------------------

<div id="templavoila-preview-5d6d4a40c6" style="text-align: left;
position: absolute; display: none;">

-- table --
</div>
<div id="templavoila-preview-5d6d4a40c6-wrapper"
onmouseout="

document.getElementById('templavoila-preview-5d6d4a40c6').style.display='none';

document.getElementById('templavoila-preview-5d6d4a40c6-wrapper').attributes.getNamedItem('style').nodeVal ue
= '';
"
onmouseover="

document.getElementById('templavoila-preview-5d6d4a40c6').style.display='block';

document.getElementById('templavoila-preview-5d6d4a40c6-wrapper').attributes.getNamedItem('style').nodeVal ue
= 'border: 2px dashed #333366;';
"
style="">

-- content --
</div>

------------------------------------------------------------

try this instead, please:

------------------------------------------------------------
..templavoila-preview-wrapper:hover {
background: red;
}
..templavoila-preview-wrapper .templavoila-preview-info {
display: none;
}
..templavoila-preview-wrapper:hover .templavoila-preview-info {
display: block;
}

<div id="templavoila-preview-5d6d4a40c6-wrapper"
class="templavoila-preview-wrapper">
<div id="templavoila-preview-5d6d4a40c6"
class="templavoila-preview-info">
-- table --
</div>

-- content --
</div>
------------------------------------------------------------

It solves several problems:

- no javascript needed, cleaner, faster, customizable without forced
"!important"
- hovering the table doesn't go mad (flicker) anymore
- the deactivation of 'border' doesn't reenforce calculation of
surrounding margins
anymore, so it stops the shifting down on hover

It leaves the content-layout basically unchanged while appearing (if you are
not actually using "tv-parent:first-child"). It comes without
complications, nothing
becomes worst, only better.

Ciao
Niels

_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-templavoila
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 10.05.2008, 17:24
Xavier Perseguers
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] TV-preview suggestion

Hi Niels,

Could you please post a patch and open a bug report on bugs.typo3.org? I
think it would then be easier for all of us to test it.

Regards


--
Xavier Perseguers
http://xavier.perseguers.ch/en


Niels Fröhling wrote:
> Hy;
>
> Here is a little suggestion to improve usability of Templa Voila:
>
> ------------------------------------------------------------
>
> <div id="templavoila-preview-5d6d4a40c6" style="text-align: left;
> position: absolute; display: none;">
> -- table --
> </div>
> <div id="templavoila-preview-5d6d4a40c6-wrapper"
> onmouseout="
>
> document.getElementById('templavoila-preview-5d6d4a40c6').style.display='none';
>
>
> document.getElementById('templavoila-preview-5d6d4a40c6-wrapper').attributes.getNamedItem('style').nodeVal ue
> = '';
> "
> onmouseover="
>
> document.getElementById('templavoila-preview-5d6d4a40c6').style.display='block';
>
>
> document.getElementById('templavoila-preview-5d6d4a40c6-wrapper').attributes.getNamedItem('style').nodeVal ue
> = 'border: 2px dashed #333366;';
> "
> style="">
> -- content --
> </div>
>
> ------------------------------------------------------------
>
> try this instead, please:
>
> ------------------------------------------------------------
> .templavoila-preview-wrapper:hover {
> background: red;
> }
> .templavoila-preview-wrapper .templavoila-preview-info {
> display: none;
> }
> .templavoila-preview-wrapper:hover .templavoila-preview-info {
> display: block;
> }
> <div id="templavoila-preview-5d6d4a40c6-wrapper"
> class="templavoila-preview-wrapper">
> <div id="templavoila-preview-5d6d4a40c6"
> class="templavoila-preview-info">
> -- table --
> </div>
> -- content --
> </div>
> ------------------------------------------------------------
>
> It solves several problems:
>
> - no javascript needed, cleaner, faster, customizable without forced
> "!important"
> - hovering the table doesn't go mad (flicker) anymore
> - the deactivation of 'border' doesn't reenforce calculation of
> surrounding margins
> anymore, so it stops the shifting down on hover
>
> It leaves the content-layout basically unchanged while appearing (if you
> are
> not actually using "tv-parent:first-child"). It comes without
> complications, nothing
> becomes worst, only better.
>
> Ciao
> Niels
>

_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-templavoila
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 11.05.2008, 08:09
Niels Fröhling
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] TV-preview suggestion

Hy Xavier;
> Could you please post a patch and open a bug report on bugs.typo3.org? I
> think it would then be easier for all of us to test it.

Okay, I'm trying to do that, meanwhile maybe it's good to explain it
here anyway:

Well ... if you use the view-module or the admin-panels, the TV-modules
generates
additional markup to display a border around the TV-element (page or FCE) as
well as a table containing information about the used template.

In the way this is achieved, it creates some problems for the layout of
the page it
is embedded into, as well as having real implementation issues and
inconveniences.

I can make the patch, but you have to provide some prerequisites. You
have to have a
FCE-element in you verification-page in this way:

<div style="margin-bottom: 1em;">
this is some content with margin to the following FCE element
</div>
<div id="this_is_our_FCE_elements_body" style="margin-top: 1em;
margin-bottom: 1em;">
this is our FCE-element which has margin to above and below
</div>
<div style="margin-top: 1em;">
this is some content with margin to the preceding FCE element
</div>

Looks complicated, but is really basic HTML-stuff. You know that in CSS the
margins overlap each other, so effectively we just have 1em distance,
not 2em.
And now when TV sets the border to 2px something we receive 1em + 2px + 1em.
The introduction of the border forces the re-calculation of the layout
and shifts all
following content 2em down.
Doesn't look so good, and may even corrupt complicated layouts, and so on.
Okay, I stop here, it's just this little thing causes so much trouble,
it should be fixed.
I don't know the TV-code out of mind, but maybe I have to introduce
_CSS_DEFAULT
for it, if it doesn't exist. I hope that's allright.

See you
Niels


_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila (AT) lists...netfielders.de
http://lists.netfielders.de/cgi-bin/...ct-templavoila
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3] CoolURI suggestion Jacob Rasmussen - Concare IT typo3-english@lists.netfielders.de 1 17.10.2007 21:39
[TYPO3] Suggestion for BE htmlarea preview. Asbjørn Morell typo3-english@lists.netfielders.de 0 10.05.2007 10:15
[TYPO3-templavoila] preview and compare shows template error? werner mueller typo3-project-templavoila@lists.netfielders.de 8 29.03.2007 10:30
[TYPO3-german] Templavoila und Preview mit dem Admin Panel David Bender typo3-german@lists.netfielders.de 2 02.03.2007 09:26
[TYPO3] Suggestion BE login image Mike Morris typo3-english@lists.netfielders.de 3 07.02.2007 14:24


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:50 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77