Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-07-06 00:55:44

robert1
Member
From: Passau
Registered: 2005-08-07
Posts: 51
Website

[de-de] Downloadgröße und -Anzahl weg nach Update auf 4.0.5

Ich benutze Tags zum Anzeigen der Größe und Häufigkeit von Downloads.

Seit Update auf Textpattern-Version: 4.0.5 (r2466), bleiben die entsprechenden Angaben im Frontend aus. Der Downloadlink sowie der Download klappt nach wie vor.

Im Backend unter Dateien stimmen die Downloadzahlen und es steht OK bei Zustand.

Unter Diagnose habe ich stehen:
Einige PHP-Funktionen sind deaktiviert.: escapeshellcmd, proc_nice, ini_restore

Wenn’s ne Lösung gibt, wäre klasse.
Danke schonmal.

Code im Artikel:
<txp:file_download_link filename="abc.zip">Download abc (zip)</txp:file_download_link> (size: <txp:file_download_size format="auto" decimals="2" />, downloads: <txp:file_download_downloads />).

Offline

#2 2007-07-06 05:19:03

wet
Developer Emeritus
From: Vöcklabruck, Austria
Registered: 2005-06-06
Posts: 3,391
Website GitHub Mastodon

Re: [de-de] Downloadgröße und -Anzahl weg nach Update auf 4.0.5

Die beiden Tags <txp:file_download_size /> und <txp:file_download_downloads /> sind nicht dafür gedacht, direkt in einem Artikel verwendet zu werden, sondern Elemente eines Bausteins, der als form-Attribute für <txp:file_download /> oder <txp:file_download_list /> angegeben wird.

Warum das vor 4.0.5 so wie von dir beschrieben funktioniert hat, kann ich jetzt nicht mehr nachvollziehen.

Wie auch immer, gedacht wäre das so:

Im Artikel kommt dieses Tag vor:

<txp:file_download form="filedetails" id="4711" />

oder auch

<txp:file_download form="filedetails" name="foo.bar" />

Und im Baustein filedetails steht dann:

<txp:file_download_link />Download <txp:file_download_name /> 
(size: <txp:file_download_size format="auto" decimals="2" />, downloads: <txp:file_download_downloads />)

So ungefähr…

Last edited by wet (2007-07-06 05:19:36)

Offline

#3 2007-07-06 11:58:27

robert1
Member
From: Passau
Registered: 2005-08-07
Posts: 51
Website

Re: [de-de] Downloadgröße und -Anzahl weg nach Update auf 4.0.5

Danke Robert,
ich werde das gleich umstellen.

Wieso es vorher ging spielt ja auch keine Rolle.

Offline

Board footer

Powered by FluxBB