Current User: Guest Login
Please consider registering


Lost Your Password?

Search Forums:


 






Minimum search word length is 4 characters – Maximum search word length is 84 characters
Wildcard Usage:
*  matches any number of characters    %  matches exactly one character

Display zip and pdf files

Reply to Post Add a New Topic
UserPost

4:57 pm
August 13, 2007


Roland Mueller

Guest

Hello,

i have to track pdf and zip downloads on our site. I want to declare an extra section displaying all pdf and zip downloads of a given subsubfolder. I try this way:

 # Track the download files (php and zip) being in the folder "/uploads/tx_ffbmatlas/"
ExtraSectionName1="Downloads"
ExtraSectionCodeFilter1="200 304"
ExtraSectionCondition1="URL,(^\\/uploads\\/tx_ffbmatlas\\/.*\\.pdf)||URL,(^\\/uploads\\/tx_ffbmatlas\\/zip\\/.*\\.zip)"
ExtraSectionFirstColumnTitle1="Downloads"
ExtraSectionFirstColumnValues1="URL,(.*\\.pdf) || URL,(.*\\.zip)"
ExtraSectionFirstColumnFormat1="<a href='http://www.beton.org%s&#39; target='_blank'>http://www.beton.org%s</a>&quot;
ExtraSectionStatTypes1=HL
ExtraSectionAddAverageRow1=1
ExtraSectionAddSumRow1=1
MaxNbOfExtra1=20000
MinHitExtra1=1

 Unfortenately this code does only display me the pdf-files, not the zip! I have zip files listing in the site list so they are there in the logfile and on the server. What am i still doing wrong? Thanks in advance, 

Roland 

9:37 pm
August 13, 2007


Jean-Luc

Admin

posts 1125

Hi Roland,

I don't think that || is supported in ExtraSectionFirstColumnValues. There is no need to repeat the condition on .pdf and .zip here:

ExtraSectionFirstColumnValues1="URL,^(.*)$"

Jean-Luc

P.S. should work, but not tested.

8:36 am
August 14, 2007


Roland Mueller

Guest

Hi, this morning i saw that it worked with the code above. Seemed that typo3 cached something.

11:38 pm
October 17, 2007


Jean-Luc

Admin

posts 1125

Admin wrote:

I don't think that || is supported in ExtraSectionFirstColumnValues.

This is not correct. You can have lines like this:

ExtraSectionFirstColumnValues1="UA,abcd(.*)||UA,wxyz(.*)"

or even lines like this:

ExtraSectionFirstColumnValues1="UA,abcd(.*)||REFERER,wxyz(.*)"

Not sure that this one will return useful results though…

Jean-Luc

Reply to Post

Reply to Topic:
Display zip and pdf files

Guest Name (Required):

Guest Email (Required):

NOTE: New Posts are subject to administrator approval before being displayed

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
10 + 6
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
12 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 638
Posts: 2709

Membership:

There are 257 Members
There have been 302 Guests

There is 1 Admin
There is 1 Moderator

Top Posters:

cssfsu – 55
deepakgupta – 34
albert_newton – 30
cosminpana – 20
DTNMike – 19
ahtshun83 – 17

Recent New Members: raju, todd2taylor, sbdcunha, mansigill1987, ThomasDuh, ThomasKic

Administrators: Jean-Luc (1125 Posts)

Moderators: Jean-Luc (1125 Posts)