Editing Radio 8 Templates with Dreamweaver

Editing Radio 8 Templates with Dreamweaver - Updated: 4/13/04; 9:50:27 PM.

Here’s a quick and dirty fix for the problem Scott Girard is having mentioned on Scripting News yesterday.

Because Dreamweaver 4 is configured via XML files, we can tell dreamweaver to handle Radio 8’s macro tags differently. (This will temporarily make Dreamweaver’s ASP tag functions go away, but it’s a small price to pay right?)

By default Radio 8 macros look like ASP tags in Dreamweaver which require you to click an “edit” button to see or edit the tag/script. Screen Shot

By duplicating and editing Dreamweaver’s asp.xml file (which can be found in ThirdPartyTags folder which a sub-folder of Dreamweaver’s Configuration folder) Screen Shot you can make a radio.xml file with the following code:

<tagspec tag_name="radio" start_string="<%" end_string="%>" detect_in_attribute="true" icon="radio.gif" icon_width="17" icon_height="15"> </tagspec>

Or you can download the radio.xml file and accompanying radio.gif file as a zip archive here - RadioforDW.sit (for Macs) or RadioforDW.zip (For Windows)

With the radio.xml and radio.gif files in the ThirdPartyTags (instead of the corresponding asp files) editing a dreamweaver template will look like this Screen Shot. Notice that now when you click on a radio “macro” icon, the code of the macro appears in the editing box - no more edit button.

One other option is to remove the asp.xml file from the ThirdPartyTags folder without replacing it with anything else. This will show the macros themselves within the page design in the format they will be rendered in Screen Shot

Of course you’ll need to change the #template files from .txt to .html to even begin to effectively edit them in Dreamweaver 4.

0 Response to “Editing Radio 8 Templates with Dreamweaver”


  • No Comments

Leave a Reply




Because Dreamweaver 4 is configured via XML files, we can tell dreamweaver to handle Radio 8's macro tags differently. (This will temporarily make Dreamweaver's ASP tag functions go away, but it's a small price to pay right?) By default Radio 8 macros look like ASP tags in Dreamweaver which require you to click an "edit" button to see or edit the tag/script. [Screen Shot][3] By duplicating and editing Dreamweaver's asp.xml file (which can be found in ThirdPartyTags folder which a sub-folder of Dreamweaver's Configuration folder) [Screen Shot][4] you can make a radio.xml file with the following code: ` ` Or you can download the radio.xml file and accompanying radio.gif file as a zip archive here - [Radio_for_DW.sit (for Macs)][5] or [Radio_for_DW.zip (For Windows)][6] With the radio.xml and radio.gif files in the ThirdPartyTags (instead of the corresponding asp files) editing a dreamweaver template will look like this [Screen Shot][7]. Notice that now when you click on a radio "macro" icon, the code of the macro appears in the editing box - no more edit button. One other option is to remove the asp.xml file from the ThirdPartyTags folder without replacing it with anything else. This will show the macros themselves within the page design in the format they will be rendered in [Screen Shot][8] Of course you'll need to change the #template files from .txt to .html to even begin to effectively edit them in Dreamweaver 4. [1]: http://radio.weblogs.com/0100077/2002/01/29.html [2]: http://scriptingnews.userland.com/backissues/2002/01/29#la4809fa462d727fce1133c22ec81afa5 [3]: http://jumpserve.com/blanco/images/dw-radio/asp-icons.gif [4]: http://jumpserve.com/blanco/images/dw-radio/thirdpartytags.gif [5]: http://jumpserve.com/blanco/gems/Radio_for_DW.sit [6]: http://jumpserve.com/blanco/gems/Radio_for_DW.zip [7]: http://jumpserve.com/blanco/images/dw-radio/radio-icons.gif [8]: http://jumpserve.com/blanco/images/dw-radio/no-icons.gif [post_title] => Editing Radio 8 Templates with Dreamweaver [post_category] => 0 [post_excerpt] => [post_lat] => 40.5897 [post_lon] => -73.7411 [post_status] => publish [comment_status] => open [ping_status] => closed [post_password] => [post_name] => editing-radio-8-templates-with-dreamweaver [to_ping] => [pinged] => [post_modified] => 2004-09-25 13:26:44 [post_modified_gmt] => 2004-09-25 18:26:44 [post_content_filtered] => [post_parent] => 0 [guid] => http://jumpserve.com/blanco/archives/2002/01/30/editing-radio-8-templates-with-dreamweaver/ [menu_order] => 0 [post_type] => post [post_mime_type] => [comment_count] => 0 [ancestors] => Array ( ) ) [comments] => Array ( ) [comment_count] => 0 [current_comment] => -1 [comment] => [found_posts] => 0 [max_num_pages] => 0 [max_num_comment_pages] => 0 [is_single] => 1 [is_preview] => [is_page] => [is_archive] => [is_date] => [is_year] => [is_month] => [is_day] => [is_time] => [is_author] => [is_category] => [is_tag] => [is_tax] => [is_search] => [is_feed] => [is_comment_feed] => [is_trackback] => [is_home] => [is_404] => [is_comments_popup] => [is_admin] => [is_attachment] => [is_singular] => 1 [is_robots] => [is_posts_page] => [is_paged] => [query] => Array ( [year] => 2002 [monthnum] => 01 [day] => 30 [name] => editing-radio-8-templates-with-dreamweaver ) [posts] => Array ( [0] => stdClass Object ( [ID] => 178 [post_author] => 2 [post_date] => 2002-01-30 18:06:17 [post_date_gmt] => 2002-01-30 23:06:17 [post_content] => Editing Radio 8 Templates with Dreamweaver - Updated: 4/13/04; 9:50:27 PM. Here's a quick and dirty fix for the [problem][1] Scott Girard is having mentioned on [Scripting News][2] yesterday. Because Dreamweaver 4 is configured via XML files, we can tell dreamweaver to handle Radio 8's macro tags differently. (This will temporarily make Dreamweaver's ASP tag functions go away, but it's a small price to pay right?) By default Radio 8 macros look like ASP tags in Dreamweaver which require you to click an "edit" button to see or edit the tag/script. [Screen Shot][3] By duplicating and editing Dreamweaver's asp.xml file (which can be found in ThirdPartyTags folder which a sub-folder of Dreamweaver's Configuration folder) [Screen Shot][4] you can make a radio.xml file with the following code: ` ` Or you can download the radio.xml file and accompanying radio.gif file as a zip archive here - [Radio_for_DW.sit (for Macs)][5] or [Radio_for_DW.zip (For Windows)][6] With the radio.xml and radio.gif files in the ThirdPartyTags (instead of the corresponding asp files) editing a dreamweaver template will look like this [Screen Shot][7]. Notice that now when you click on a radio "macro" icon, the code of the macro appears in the editing box - no more edit button. One other option is to remove the asp.xml file from the ThirdPartyTags folder without replacing it with anything else. This will show the macros themselves within the page design in the format they will be rendered in [Screen Shot][8] Of course you'll need to change the #template files from .txt to .html to even begin to effectively edit them in Dreamweaver 4. [1]: http://radio.weblogs.com/0100077/2002/01/29.html [2]: http://scriptingnews.userland.com/backissues/2002/01/29#la4809fa462d727fce1133c22ec81afa5 [3]: http://jumpserve.com/blanco/images/dw-radio/asp-icons.gif [4]: http://jumpserve.com/blanco/images/dw-radio/thirdpartytags.gif [5]: http://jumpserve.com/blanco/gems/Radio_for_DW.sit [6]: http://jumpserve.com/blanco/gems/Radio_for_DW.zip [7]: http://jumpserve.com/blanco/images/dw-radio/radio-icons.gif [8]: http://jumpserve.com/blanco/images/dw-radio/no-icons.gif [post_title] => Editing Radio 8 Templates with Dreamweaver [post_category] => 0 [post_excerpt] => [post_lat] => 40.5897 [post_lon] => -73.7411 [post_status] => publish [comment_status] => open [ping_status] => closed [post_password] => [post_name] => editing-radio-8-templates-with-dreamweaver [to_ping] => [pinged] => [post_modified] => 2004-09-25 13:26:44 [post_modified_gmt] => 2004-09-25 18:26:44 [post_content_filtered] => [post_parent] => 0 [guid] => http://jumpserve.com/blanco/archives/2002/01/30/editing-radio-8-templates-with-dreamweaver/ [menu_order] => 0 [post_type] => post [post_mime_type] => [comment_count] => 0 [ancestors] => Array ( ) ) ) [comments_by_type] => Array ( [comment] => Array ( ) [trackback] => Array ( ) [pingback] => Array ( ) [pings] => Array ( ) ) )

SERVER

Array
(
    [REDIRECT_STATUS] => 200
    [HTTP_HOST] => jumpserve.com
    [HTTP_USER_AGENT] => CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
    [HTTP_ACCEPT] => Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
    [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
    [HTTP_ACCEPT_ENCODING] => gzip
    [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
    [HTTP_CONNECTION] => close
    [HTTP_CACHE_CONTROL] => no-cache
    [HTTP_PRAGMA] => no-cache
    [PATH] => /bin:/usr/bin:/sbin:/usr/sbin
    [SERVER_SIGNATURE] => 
    [SERVER_SOFTWARE] => Apache
    [SERVER_NAME] => jumpserve.com
    [SERVER_ADDR] => 207.7.108.21
    [SERVER_PORT] => 80
    [REMOTE_ADDR] => 38.103.63.61
    [DOCUMENT_ROOT] => /users/home/blanco/domains/jumpserve.com/public_html
    [SERVER_ADMIN] => web@one.textdrive.com
    [SCRIPT_FILENAME] => /users/home/blanco/domains/jumpserve.com/public_html/blanco/index.php
    [REMOTE_PORT] => 39274
    [REDIRECT_URL] => /blanco/archives/2002/01/30/editing-radio-8-templates-with-dreamweaver/
    [GATEWAY_INTERFACE] => CGI/1.1
    [SERVER_PROTOCOL] => HTTP/1.1
    [REQUEST_METHOD] => GET
    [QUERY_STRING] => 
    [REQUEST_URI] => /blanco/archives/2002/01/30/editing-radio-8-templates-with-dreamweaver/
    [SCRIPT_NAME] => /blanco/index.php
    [PHP_SELF] => /blanco/index.php
    [REQUEST_TIME] => 1231282883
)

REQUEST

Array
(
)
-->