RT PRINT

Hier bekommst Du deutschsprachigen Support. Keine Fehlermeldungen oder Erweiterungswünsche bitte!
Post Reply
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

RT PRINT

Post by markus s »

habe ich beim RT [PRINT] die möglichkeit eine ALT beschreibung dazuzugeben ?
wenn ja wo ?
grüße
markus s

--------------------
Inhalt dieses Threats:
wie ändere ich den replacement tag PRINT
wo stehen die anweisungen für die replacement tags
wie gestalte ich eine DOM anbindung in phpwcms
--------------------
Last edited by markus s on Mon 1. Jan 2007, 22:36, edited 1 time in total.
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi,

z.B. mit einer Grafik:

Code: Select all

[PRINT]<img src="picture/navi/l_print.gif" border="0" vspace="0" hspace="10" alt="Druckansicht" width="21" height="21" title="Drucken" />[/PRINT]
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

ja

Post by markus s »

danke,
aber was ich noch möchte - ich möchte dem href das automatisch durch [PRINT] ausgeführt wird etwas dazuhängern - ein mousover.
geht das ?
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

evt. hier ?

Post by markus s »

kann ich hier ein mouse over enpflegen ?
inder content.func.inc:

Code: Select all

$content["all"] = str_replace('[PRINT]', '<a href="index.php?id='.$aktion[0].','.$aktion[1].',1,'.$aktion[3].','.$aktion[4].','.$aktion[5].$content['print_array'].'" target="_blank">', $content["all"]);	
ich müsste diese mouse over einpflegen:

Code: Select all

onmouseover="domTT_activate(this, event, 'content', 'Suchen Sie Ihre Begriffe', 'trail', true, 'direction', 'northeast', 'delay', 1);" 
geht das ?
grüße
markus s
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Was hältst du von so einer Variante, ohne JS:

Aufruf:

Code: Select all

<div class="print_hover">[PRINT]<img src="img/leer.gif" border="0" vspace="0" hspace="4" alt="Druckansicht" width="21" height="21" title="Drucken" />[/PRINT]</div>
CSS:

Code: Select all

.print_hover A:active,.print_hover A:link,.print_hover A:visited {
  display: block; 
  height: 21px;
  width: 21px;
  margin: 0; padding: 0;
  background: url(../../picture/navi/print1.gif) 0px 0px no-repeat; 
}

.print_hover A:hover {
  display: block; 
  height: 21px;
  width: 21px;
  margin: 0; padding: 0;
  background: url(../../picture/navi/print2.gif) 0px 0px no-repeat; 
}
Nicht getestet, aber müsste eigentlich funktionieren.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Post by markus s »

danke - brauchst du nicht testen funktioniert !
aber sieht nicht so schön aus wie DOM script variante.
vor allem weil bei der SUCHE und beim SITEMAP auch das tool
läuft...
wäre schön wenn ich das dirket ins [PRINT] RT einbauen könnte.
günge dies
grüße
markus s
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Sollte gehen, wenn du es in die Funktion hineinhackst.

Aber dann in deine Patchliste eintragen. Denn das nächste Update kommt bestimmt.

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hi flip-flop.

dann sag ihm doch auch gleich die Datei... die Frage kommt bestimmt :lol:
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hallo pepe,
hat er schon gefunden, drei Post´tsts höher.
Viel schlimmer, ich weiß nicht was eine "DOM script variante" ist.
Ist das Cross-browsing fähig?

[EDIT]Ah, verstehe, wird also mit dem Browser sozusagen mitgeliefert. (Hoffentlich auch mit allen in gleicher Form). [/EDIT]

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Au man ja... jetzt seh ichs auch!
Ich hatte gerade gerade mit beiden Ohren auf 3SAT "gerichtet" und nicht richtig aufgepaßt :oops:

markus s wird uns diese offene Frage aber garantiert gleich beantworten...

oder bei WIKIPEDIA: http://de.wikipedia.org/wiki/Document_Object_Model

Das ist ja das Schöne am forum... alle lernen was dazu.
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

DOM

Post by markus s »

aaallso - das ist was für jeden toolliebhaber:

download der variante unter http://www.mojavelinux.com/projects/domtooltip/

http://www.mojavelinux.com/cooker/downl ... .3.tar.gz/

mit diesem kleinen script kann man mouse over effekte erzeugen.
aus datenbanken oder per hand eingetragen.
ist total easy zu installieren.
einfach in den head schreiben:

Code: Select all

   <script type="text/javascript" language="javascript" src="../domTT/domLib.js"></script>
<script type="text/javascript" language="javascript" src="../domTT/fadomatic.js"></script>
<script type="text/javascript" language="javascript" src="../domTT/domTT.js"></script>
<script type="text/javascript" language="javascript">var domTT_styleClass = 'domTTOverlib';</script>
<style>
@import url(../domTT/example.css);
    </style>
aussehenin der example.css ändern

und im body (oder ich habs imn der fusszeile):

Code: Select all

<a onmouseover="domTT_activate(this, event, 'content', 'Suchen Sie Ihre Begriffe', 'trail', true, 'direction', 'northeast', 'delay', 1);" href="index.php?suche" target="_self" Alt="Suche nach bestimmten Begriffen" >
{IMAGE:search_link.gif}</a>
dann hat man ein wunderschönes mouseover mit dem textihalt
'Suchen Sie Ihre Begriffe''.
ich habe das für meine SUCHE verwedet.

- nur ich möchte das im PRINT verankern !!!!!!
dont forget

grüße
markus
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

wie schauts aus ?

Post by markus s »

nochmal in memoriam:
weiß jemand wie man in das Rtag [PRINT] ein mouse
over nach oben beschriebenem muster einbinden kann ?
ich wäre für infos dankbar.
grüße
markus s :roll:
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
pierre.meli
Posts: 42
Joined: Thu 18. Nov 2004, 23:07
Location: Switzerland
Contact:

Solution: replace [PRINT] by tag <a ...> with mouseove

Post by pierre.meli »

Here is a solution that I tested and you can see here: http://swiss-unitrade.com/index.php?home-de (see print icon on right side). The objective was to use an icon and to change the image on "mouseover".

The solution doesn't need any change in phpwcms. The onl important thing is to build the URI for printing to be able to use the <a> tag. The following line is creating you the URI for printing (use print=2 for PDF generation):

Code: Select all

http://[PHP]echo $_SERVER['SERVER_NAME']; echo $_SERVER['REQUEST_URI'];[/PHP]&print=1
Explanation of the parts:
1. string "http://"
2. echo $_SERVER['SERVER_NAME'] = "swiss-unitrade.com"
3. echo $_SERVER['REQUEST_URI'] = "\index.php?home-de"
4. &print=1 = "&print=1"

Result: "http://swiss-unitrade.com/index.php?home-de&print=1".

The code for the <a> tag looks as follows:

Code: Select all

<a  href="http://[PHP]echo $_SERVER['SERVER_NAME']; echo $_SERVER['REQUEST_URI'];[/PHP]&print=1"
     onMouseover="iconpic03.src='picture/icons/print1.png';" 
     onMouseout="iconpic03.src='picture/icons/print0.png';"
     target="_blank">
<img src="picture/icons/print0.png" name="iconpic03" border="0" />
</a>
You can preload the mouseover image in the header section with:

Code: Select all

<script language="JavaScript" type="text/javascript">
<!--
iconpic = new Image(55, 55);
iconpic.src = "picture/icons/print1.png";
iconpic = new Image(55, 55);
//-->
</script>
Hope this helps....

Best regards
Image
Post Reply