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

Grouping « similar » pdf downloads in xx_name.pdf format

Reply to Post Add a New Topic
UserPost

8:46 am
July 14, 2010


dumpuse

Member

posts 13

Hi,

On our site we have a section where the pdf documents are uploaded in different languages :

mysite.com/en/docs/fichier1.pdf

 mysite.com/en/docs/fichier2.pdf

mysite.com/fr/docs/fichier1.pdf

mysite.com/fr/docs/fichier2.pdf

mysite.com/de/docs/fichier1.pdf

mysite.com/de/docs/fichier2.pdf, etc…

In think I  could  relatively easily get the  total number of downloads per document (all languages included) using something similar to:

ExtraSectionCondition1="URL,\\/\\w{2}\\/docs\\/([^\\/]*)$

ExtraSectionFirstColumnValues1="URL,(\\/docs\\/.+)"

ExtraSectionFirstColumnFormat1="%s"

Unfortunately, the webmasters have decided to change the naming of the new files by adding the language prefixes to the pdf name (en_, fr_, de_):

mysite.com/en/docs/en_fichier3.pdf

mysite.com/fr/docs/fr_fichier3.pdf

mysite.com/de/docs/de_fichier3.pdf

Is there a way to get a table :

fichier1.pdf 

fichier2.pdf

fichier3.pdf (that includes  fr_fichier3.pdf + en_fichier3.pdf+ de_fichier3.pdf)

Many thanks for any suggestions.

9:35 am
July 14, 2010


Jean-Luc

Admin

posts 1125

Hi,

Try this:

ExtraSectionCondition1="URL,\\/\\w{2}\\/docs\\/[^\\/]*$

ExtraSectionFirstColumnValues1="URL,\\/docs\\/\\w{2}_(.+)"

ExtraSectionFirstColumnFormat1="%s"

10:48 am
July 14, 2010


dumpuse

Member

posts 13

Thanks for the quick help.

I have tried the suggested solution and I get something like:

/docs/en_90.pdf        25  hits

/docs/en_92.pdf        14

/docs/it_90.pdf          9

/docs/pt_90.pdf         8

/docs/de_90.pdf        7

/docs/fr_92.pdf         7

Total                     70

So, the expression :

ExtraSectionFirstColumnValues1="URL,(\\/docs\\/\\w{2}_(.+))"  

does not ignore the language prefix.

Ideally, I would like to obtain:

/docs/xx_90.pdf            49     (representing 25+9+8+7)

/docs/xx_92.pdf            21

Total                            70

Many thanks and best regards.

10:58 am
July 14, 2010


dumpuse

Member

posts 13

Sorry Jean-Luc,  my fault,

The expression:

ExtraSectionFirstColumnValues1="URL,\\/docs\\/\\w{2}_(.+)"

seems to be working fine. Thanks.

I have messed-up above with the brackets .

Regards 

Reply to Post

Reply to Topic:
Grouping « similar » pdf downloads in xx_name.pdf format

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:
5 + 10
   


About the InternetOfficer.com Forum

Forum Timezone: UTC 1

Most Users Ever Online: 302

Currently Online:
15 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 2
Forums: 9
Topics: 639
Posts: 2710

Membership:

There are 257 Members
There have been 304 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)