WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: crnogorac081 on July 18, 2009, 04:30:10 PM

Title: WB 2.8 RC1 and classic_theme - unzip
Post by: crnogorac081 on July 18, 2009, 04:30:10 PM
I just noticed that in WB 2.8 in classic_theme there is no checkbox to upload and unzip file  in media.htt file..

I added this code:
Code: [Select]
<!-- BEGIN main_block -->
----------------------------------------------------------------------------------
<script language="javascript" type="text/javascript">
function toggle() {
    var check = document.getElementById("file2");
    if (check.style.visibility == "visible") {
        for (i=2; i<=10; i++) {
            document.getElementById("file" + i).style.visibility = "hidden";
        }
        document.getElementById("delzip").style.display = "inline";
    } else {
        for (i=2; i<=10; i++) {
            document.getElementById("file" + i).style.visibility = "visible";
        }
        document.getElementById("delzip").style.display = "none";
    }
}
</script>
--------------------------------

<h2>{HEADING_BROWSE_MEDIA}</h2>

[code]

and also this one:

[code]
<table cellpadding="3" cellspacing="0" border="0" align="center" width="100%">
<tr>
------------------------------------------------------------------
    <td valign="top"><input type="checkbox" name="unzip" id="unzip"  onclick="toggle();" />
<label for="unzip">{TEXT_UNZIP_FILE}</label>
<span id="delzip" style="display: none;"><br /><input type="checkbox" name="delzip" id="deletezip" />
<label for="deletezip">{TEXT_DELETE_ZIP}</label></span>
</td>

-----------------------------------------------------------------
<td>
        <input type="checkbox" name="overwrite" id="overwrite" value="yes" />
        <label for="overwrite">
        {TEXT_OVERWRITE_EXISTING} {TEXT_FILES}
        </label>
    </td>


but the checkbox is still not working..

I dont mind, but if someone can please check and update the WB 2.8 RC1 file on the WB home page :)

cheers[/code][/code]
Title: Re: WB 2.8 RC1 and classic_theme - unzip
Post by: ruebenwurzel on July 18, 2009, 04:55:50 PM
Hello,

that's correct and it should be this way. Reason: It is the classic theme from 2.7 and in 2.7 there was also not this option.
So classic_theme has the media handling like in 2.7, wb_theme has a media_handling with upload zip and image preview and argos_theme has another more advanced media_handling.

So no update is necessary, this is exactly the way it should be.

Matthias
Title: Re: WB 2.8 RC1 and classic_theme - unzip
Post by: crnogorac081 on July 18, 2009, 05:02:18 PM
oh, ok, I thought it was bug:)

cheers