rejetto forum

macro: {.add folder|overwrite=XXX.}

0 Members and 1 Guest are viewing this topic.

Offline FRENCH CAN CAN

  • Tireless poster
  • ****
    • Posts: 681
    • View Profile
Ciao rejetto, ti segnalo un BUG su questa macro modificata su HFS 244, infatti NON SI AGGIUNGE in automatico la cartella sul Virtual File System, o provato in diversi modi, ti porto alcuni esempi:

{.add folder|real|..}

o

{.add folder|real|nome_cartella.}

o

{.add folder|overwrite=nome_cartella.}

o

{.add folder|nome_cartella|overwrite=nome_cartella.}

Di fatto "overwrite" dovrebbe servire a sovrascrivere una cartella se già esistente, ma sembra non funzionare, i vari Template che utilizzano:

{.add folder|real|nome_cartella.}

Non funzionano più, cioè NON aggiungono la cartella in automatico sul Virtual File System.

Il BUG è molto fastidioso, infatti bisognerà modificare TUTTI questi Template e probabilmente aggiungere una macro per fare funzionare la cosa. Vedi tu cosa fare. Ciao, French. :o


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
make this test:

1) create a virtual folder in vfs
   and a folder name existing-folder under c:\

2) put those two line as diff template of this new folder
    {.add folder|virtual|FRENCH CANCAN.}
    {.add folder|real|c:\existing-folder|name-in-vfs.}

3) open a web page and browse the folder

4) have a look on the vfs

5)result

-new folder
 |-- FRENCH CANCAN
 |--name-invfs


----------------
overwrite
1) in the vfs under FRENCH CANCAN and name-in-vfs, create somme folders and links
-new folder
 |-- FRENCH CANCAN
 |    |--link1
 |    |--folder1
 |--name-invfs
     |--link2
     |--folder2

2) change the diff template of new folder by this two macro
   {add folder|virtual|FRENCH CANCAN|overwrite=true.}
   {.add folder|real|c:\existing-folder|name-in-vfs|overwrite=true.}
3) refresh the broser page ( yes she is empty, it is not important)

4) have a look on the vfs

5)the new result is as fisrt test
-new folder
 |-- FRENCH CANCAN
 |--name-invfs

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

Finally I conclude that from it there is no bug

If you could post in English (even a bad) in the general topics, it would be good for everybody, of whom do you think of it?

(se potevi imbucare in inglese, stesso un cattivo, nei topics generali, sarebbero buono per tutti, che cosa ne pensi?)
 ;)


to rejetto , wiki is updated with samples http://www.rejetto.com/wiki/index.php/HFS:_Template_macros#Virtual_File_System_manipulation
can you read it to see if any change needed?
« Last Edit: September 03, 2009, 01:28:46 PM by Mars »


Offline FRENCH CAN CAN

  • Tireless poster
  • ****
    • Posts: 681
    • View Profile
Ciao Mars, grazie per la risposta, avevo già visto il wiki, ma secondo me NON funziona, ho già provato in + modi, anche come suggerisci tu.

Ho allegato un file-test, FUNZIONA con HFS 243 NON FUNZIONA con HFS 244, vedi tu se riesci a farlo funzionare, devi installare il Template da DENTRO la cartella denominata: "Modello".

(Penso che la prossima volta metto il post sulla pagina della versione di HFS che ha il BUG in lingua Italiana e lingua Inglese). :'(

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

Hello Mars, thanks for the reply, I had already seen the wiki, but I do not work, I've tried in + ways, as you suggest.

I have attached a file-test, it works with HFS 243 will not work with HFS 244, you see if you can make it work, you must install the Template from inside the folder named "Model".

(I think that next time I put the post on the page version of HFS has the BUG that in Italian and English). :'(


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
I found where is the problem, TSG report a similar bug.

I am posting the solution in the topic build 244

there is a bug but only with the section special:import
 ;)

certainly corrected in build 245


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile