Editable Body ID in Template
I have been trying to make the body id tag attribute editable
in a template I am working on. I have followed the steps listed the
help page "Specify editable tag attributes in a template", and have
read threads on this forum, and yet the recommended technique does
not seem to work.
Upon selecting the <body id="home"> tag, and choosing
'Modify/Templates/Make Attribute Editable...', I have selected the
'Make attribute editable' checkbox, set the label to 'id' (I have
tried numerous names here to see if that may have caused the
problem), left the type as 'Text' and set the Default to 'home'
(also tried other text here).
Once I make these selections and choose 'OK', the only
changes to the source code are that the body id, changes from
<body id="home"> to <body id="@@(id)@@">, and the
following code is inserted in the <head> section: <!--
TemplateParam name="id" type="text" value="home" -->
All seems well, however, when creating a new page from this
template, my choices in 'Modify/Templates' do not contain the 'id',
only 'head' and 'Content' (an editable region of the template).
As a test, I tried the same process with a <DIV> tag,
setting the ID as editable, and it did not work, either.
As a side note, I am using DW CS3, in Mac OS X 10.5, if this
has any bearing.
Any help here would be greatly appreciated!
Thank you in advance,
-Rob
NO NO NO! That will not work.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"E Michael Brandt" <[email protected]> wrote
in message
news:[email protected]...
>I do not use this feature, and could not find the
menuitem for it either,
>however, all you have to do is edit in Code View on each
Child page:
>
> <!-- TemplateParam name="id" type="text" value="home"
-->
>
> to, for example:
>
> <!-- TemplateParam name="id" type="text"
value="anotherpageid" -->
>
> emichael
>
>
> rnordvik wrote:
>> I have been trying to make the body id tag attribute
editable in a
>> template I am working on. I have followed the steps
listed the help page
>> "Specify editable tag attributes in a template", and
have read threads on
>> this forum, and yet the recommended technique does
not seem to work.
>>
>> Upon selecting the <body id="home"> tag, and
choosing
>> 'Modify/Templates/Make Attribute Editable...', I
have selected the 'Make
>> attribute editable' checkbox, set the label to 'id'
(I have tried
>> numerous names here to see if that may have caused
the problem), left the
>> type as 'Text' and set the Default to 'home' (also
tried other text
>> here).
>>
>> Once I make these selections and choose 'OK', the
only changes to the
>> source code are that the body id, changes from
<body id="home"> to <body
>> id="@@(id)@@">, and the following code is
inserted in the <head> section:
>> <!--
>> TemplateParam name="id" type="text" value="home"
-->
>>
>> All seems well, however, when creating a new page
from this template, my
>> choices in 'Modify/Templates' do not contain the
'id', only 'head' and
>> 'Content' (an editable region of the template).
>>
>> As a test, I tried the same process with a
<DIV> tag, setting the ID as
>> editable, and it did not work, either.
>>
>> As a side note, I am using DW CS3, in Mac OS X 10.5,
if this has any
>> bearing.
>>
>> Any help here would be greatly appreciated!
>>
>> Thank you in advance,
>> -Rob
>>
>
>
> --
>
>
> E. Michael Brandt
>
> www.divahtml.com
>
www.divahtml.com/products/scripts_dreamweaver_extensions.php
> Standards-compliant scripts and Dreamweaver Extensions
>
> www.valleywebdesigns.com/vwd_Vdw.asp
> JustSo PictureWindow
> JustSo PhotoAlbum, et alia
>
> --
Similar Messages
-
I have an Editable Region in a template and want to remove it
When I have an Editable Region in a template and want to
remove it, and from all child-pages, what to do[mx 2004] ? The
below code if is in logout.php how is get included in a file ?
I use:
<!--#include file="../customeradmin/logout_links.php"
-->
but isset($_SESSION["email"] does not working .... well ?
[code]<?php
if (isset($_SESSION["email"])) {
?>
<link href="/css-styles.css" rel="stylesheet"
type="text/css"><body class="text_normal">
<span class="text_normal">LOGGED IN(<a
class="text_normal"
href="/php_files/logout.php">Customer-LogOut</a>)</span>
<?php
?><br />
<?php
if (isset($_SESSION["email-affiliates"])) {
?>
LOGGED IN(<a class="text_normal"
href="/php_files/affout.php">Affiliate-LogOut</a>)
<?php
?>
[/code]Click in the editable region in the Template file. Right
click on the
mmeditable tag you see on the tag selection and choose Remove
Tag from the
menu. Save the Template.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"123polis123" <[email protected]> wrote in
message
news:gf7pu8$p69$[email protected]..
> When I have an Editable Region in a template and want to
remove it, and
> from
> all child-pages, what to do[mx 2004] ? The below code if
is in logout.php
> how
> is get included in a file ?
>
> I use:
> <!--#include file="../customeradmin/logout_links.php"
-->
> but isset($_SESSION["email"] does not working .... well
>
> [code]<?php
> if (isset($_SESSION["email"])) {
> ?>
> <link href="/css-styles.css" rel="stylesheet"
type="text/css"><body
> class="text_normal">
> <span class="text_normal">LOGGED IN(<a
class="text_normal"
>
href="/php_files/logout.php">Customer-LogOut</a>)</span>
> <?php
> }
> ?><br />
> <?php
> if (isset($_SESSION["email-affiliates"])) {
> ?>
> LOGGED IN(<a class="text_normal"
>
href="/php_files/affout.php">Affiliate-LogOut</a>)
> <?php
> }
> ?>
> [/code]
>
>
> -
Motion quits unexpectedly during text edit on 3D text template
Motion quits unexpectedly during text edit on 3D text template. When I was trying to select 'live font' instead of 'system font'... I recently updated to snow leopard and I'm having trouble using FCP, motion... very simple procedures, it quits... what's wrong? help me out. OS 10.6.3... Motion 3.0.2
Process: Motion [4779]
Path: /Applications/Motion.app/Contents/MacOS/Motion
Identifier: com.apple.motion
Version: 3.0.2 (3.0.2)
Build Info: Motion-2025000~2
Code Type: X86 (Native)
Parent Process: launchd [146]
Date/Time: 2010-03-29 22:37:02.960 -0400
OS Version: Mac OS X 10.6.3 (10D573)
Report Version: 6
Interval Since Last Report: 16640 sec
Crashes Since Last Report: 1
Per-App Interval Since Last Report: 1082 sec
Per-App Crashes Since Last Report: 1
Anonymous UUID: F81B548F-07A4-4001-BC62-C46947ACDA76
Exception Type: EXCBADACCESS (SIGBUS)
Exception Codes: KERNPROTECTIONFAILURE at 0x0000000000000004
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 com.apple.LiveType.framework 0x0183defb LTContextSyncGlyph + 72
1 com.apple.LiveType.framework 0x0183e0f6 LTContextGetGlyphMetrics + 36
2 com.apple.motion.TextFramework 0x08a9f3be TXLiveFontGlyph::getLTGlyphMetrics(double, float) + 336
3 com.apple.motion.TextFramework 0x08a9f400 TXLiveFontGlyph::getLTGlyphMetrics(TXGlyphRequest const&) + 58
4 com.apple.motion.TextFramework 0x08a9f510 TXLiveFontGlyph::getPivot(double*, double*, TXGlyphRequest const&) + 32
5 com.apple.motion.TextFramework 0x08a5bf56 TXTextObject::getPivot(double*, double*, PCTimeValue const&) + 136
6 com.apple.motion.TextFramework 0x08a62bd6 TXTextObject::getTransform(OZRenderParams&, bool) const + 912
7 com.apple.motion.TextFramework 0x08a637a6 TXTextObject::getTransformedCorners(PCRect<double> const&, OZRenderParams&, OZQuad3D&) + 66
8 com.apple.motion.TextFramework 0x08a639e9 TXTextObject::getTransformedTypographicCorners(OZRenderParams&, OZQuad3D&) + 41
9 com.apple.motion.TextFramework 0x08a580a4 TXTextLayout::getRangeRegions(TXSelectionRange const&, OZRenderParams&, std::vector<OZQuad3D, std::allocator<OZQuad3D> >&, bool) + 264
10 com.apple.motion.TextFramework 0x08a5836d TXTextLayout::getHighlightRegions(OZRenderParams&, std::vector<OZQuad3D, std::allocator<OZQuad3D> >&) + 49
11 com.apple.motion.TextFramework 0x089fbca7 -[TXTextTool draw:viewTransformation:] + 649
12 Ozone 0x0052008b -[OZOnScreenControl render:viewTransformation:] + 287
13 Ozone 0x008ab566 -[OZGLViewerOSC drawTool] + 450
14 Ozone 0x00476eec -[OZGLViewer drawRect:] + 3654
15 com.apple.AppKit 0x937c00f9 -[NSView _drawRect:clip:] + 3510
16 com.apple.AppKit 0x937bed97 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 1600
17 com.apple.AppKit 0x937bf0cc -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] + 2421
18 com.apple.AppKit 0x937bd2b6 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 711
19 com.apple.AppKit 0x937be22b -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
20 com.apple.AppKit 0x937be22b -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
21 com.apple.AppKit 0x937be22b -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
22 com.apple.AppKit 0x937be22b -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
23 com.apple.AppKit 0x937be22b -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
24 com.apple.AppKit 0x937be22b -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 4668
25 com.apple.AppKit 0x937bce2b -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 265
26 com.apple.prokit 0x0005aa50 -[NSProWindowFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectFor View:topView:] + 105
27 com.apple.AppKit 0x937b9771 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] + 3309
28 com.apple.AppKit 0x9371a3ee -[NSView displayIfNeeded] + 818
29 com.apple.AppKit 0x936e36ec -[NSWindow displayIfNeeded] + 204
30 Ozone 0x00721da5 -[OZDocumentWindow displayIfNeeded] + 71
31 com.apple.AppKit 0x93714c26 _handleWindowNeedsDisplay + 696
32 com.apple.CoreFoundation 0x929a02e2 __CFRunLoopDoObservers + 1186
33 com.apple.CoreFoundation 0x9295ca1d __CFRunLoopRun + 557
34 com.apple.CoreFoundation 0x9295c0f4 CFRunLoopRunSpecific + 452
35 com.apple.CoreFoundation 0x9295bf21 CFRunLoopRunInMode + 97
36 com.apple.HIToolbox 0x912f40fc RunCurrentEventLoopInMode + 392
37 com.apple.HIToolbox 0x912f3eb1 ReceiveNextEventCommon + 354
38 com.apple.HIToolbox 0x912f3d36 BlockUntilNextEventMatchingListInMode + 81
39 com.apple.AppKit 0x936eb135 _DPSNextEvent + 847
40 com.apple.AppKit 0x936ea976 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156
41 com.apple.AppKit 0x936acbef -[NSApplication run] + 821
42 com.apple.prokit 0x00036ab1 NSProApplicationMain + 326
43 com.apple.motion 0x00005bb4 0x1000 + 19380
44 com.apple.motion 0x0000325a 0x1000 + 8794
45 com.apple.motion 0x00003181 0x1000 + 8577
------------ Skipping other threads and binary images ------------
Model: MacPro3,1, BootROM MP31.006C.B05, 8 processors, Quad-Core Intel Xeon, 3 GHz, 8 GB, SMC 1.25f4
Graphics: ATI Radeon HD 2600 XT, ATI Radeon HD 2600, PCIe, 256 MB
Memory Module: global_name
Bluetooth: Version 2.3.1f4, 2 service, 19 devices, 1 incoming serial ports
Network Service: Built-in Ethernet, Ethernet, en0
PCI Card: ATI Radeon HD 2600, Display, Slot-1
Serial ATA Device: WDC WD3200AAJS-41VWA0, 298.09 GB
Serial ATA Device: ST3750640NS, 698.64 GB
Serial ATA Device: ST3750640NS, 698.64 GB
Parallel ATA Device: PIONEER DVD-RW DVR-112D
USB Device: Hub, 0x05ac (Apple Inc.), 0x9120, 0xfd400000
USB Device: Apple Cinema HD Display, 0x05ac (Apple Inc.), 0x9220, 0xfd430000
USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8206, 0x5d200000
USB Device: Hub in Apple Pro Keyboard, 0x05ac (Apple Inc.), 0x1003, 0x5d100000
USB Device: Apple Optical USB Mouse, 0x05ac (Apple Inc.), 0x0304, 0x5d110000
USB Device: Apple Pro Keyboard, 0x05ac (Apple Inc.), 0x020b, 0x5d130000
FireWire Device: built-in_hub, Up to 800 Mb/sec
FireWire Device: unknown_device, Unknownhi,
I also have had many many problems with SL and the latest Final Cut Studio, many of them with fonts. I have been through all my fonts with Font Book and disabled a whole bunch of them. For me Motion 4 had problems with non standard fonts. It might even have been a problem with double byte fonts, who knows? I've just installed 10.6.3 and the fcs updates. I havent done anything major with it yet, but a very quick test showed that the usual lag when using motion projects on an fcp timeline have been fixed. Yaaayyyy! So not much help to you, but i think some of the issues can't be fixed without a full wipe clean and resore of the whole system, or hopefully a well targeted update.
adam -
Editing and changing a template in Dreamweaver
Hi,
I'm using Dreamweaver, v.11.0 in Windows 7. I have a template with a bunch of web pages that use it. When I edit and save the template, it resaves all of the pages that use it (as it should). However, when someone who has used my site before opens one of those page, they get the page that has been previously cached, and they don't see the updated page or template. Is there a way to save the pages so that users will always see the up-to-date template and content?
Thanks,
BobThanks Subhadeep and Murray,
This was very helpful in that I know there is nothing that can be done - except that for the most part, people will have restarted their browser and cleared the cache since the last time they visited this website. And then it should not be a problem.
Bob -
How do I edit the "favoriteprocess.aspx" template in DNN?
How do I edit the "favoriteprocess.aspx" template in DNN? Here is a link to the page:
http://www.visitspartanburg.com/FavoriteProcess.aspx?OID=2185366&OTYPE=35On the BC Admin, you can find it under Site Manager > Module Templates > Favorite Layouts.
Nicole - BCGurus.com -
How to make metatags "Editable" region in my template?
How can I make my metatags "editable" regions in my template?
I tried doing it as shown below . . . but when trying to update the individual pages from the template, I get an error message that looks like its trying to tell me something is missing from the <!-- TemplateBeginEditable --> instruction.
Can anyone help?
I appreciate it!
<head>
<!-- TemplateBeginEditable -->
<meta name="keywords" content="cat, dog, apple, banana">
<meta name="description" content="My Description will go here.">
<title>My Title will go here</title>
<!-- TemplateEndEditable --><!-- InstanceBeginEditable -->
<title>undefined</title>
<!-- InstanceEndEditable -->Thanks for your response, David
Well, I've tried to implement your instructions on the template (see below for EXACT code). But on all the "child" pages, I am ONLY still allowed to edit the "Title" tag. Everything else is still GRAYED-OUT (unable to edit).
What did I do wrong?
- Jim
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<!-- TemplateBeginEditable name="head" -->
<meta name="keywords" content="resume,resume service,resume writer,resume assistance,resume assistant">
<meta name="description" content="Professionally-written Resumes ready in 60 minutes! Great quality & friendly service. Just $49.95. Lowest prices! Our 19th year. Work with a real person on the phone. Hassle-free (no forms to fill out like our competition). Guaranteed Job-Winning Resumes. Open 7 days til 12 Midnight.">
<title>Best c Resumes - Ready in 1 Hour!</title>
<style>
<!--
a {
color: #0000FF
-->
</style>
<link rel="File-List" href="../u4/17YUvRBD_files/filelist.xml">
<meta name="Microsoft Theme" content="blends 011">
<!-- TemplateEndEditable -->
</head> -
How to find and edit the seeded invoice template from receivables
Hi,
I want to edit the seeded invoice template which comes from receivables. How can I see the name of the template, as I run the invoice from Transaction -> Transactions -> Open an Invoice and then click on the button next to the Transaction Number. I have tried finding it in XML Publisher responsibility, but I cannot find that particular template.
Thank you in advance!Hi,
I believe I have my answer now, or at least a good thread on the subject going hear:
http://forums.java.net/jive/thread.jspa?threadID=45148
Thanks,
Mark -
Edit body on Forwarded Email.( business class usage)
I use email on my phone om a daily basis.
The Major problem with the webos is that while its email works well to read emails. I have to wait until i get back to the office to do nearly 90% of my work.
When I fwd an email i cannot answer inline the questions posed.
and hitting reply and changing email address drops any attachments so that does not work either.
for a true business class email on a phone i need functionality that will let me fully edit body of the email not just header info.
No reason to keep users hands tied with a sub standard email client.
Please update ASAP.
Post relates to: Pre p100eww (Sprint)In addition to these issues, another huge bug is that the font size on emails sent from the phone through EAS is 12pt verdana, which looks really unprofessional. And the formatting for replies and forwards isn't the same. I don't understand why they can't add a feature to either let the user specify a default font and size, or at least set it to something commonly used in the business world (say 10pt arial). I end up using the pre to read e-mails and then waiting until I'm in front of a computer to respond, which is kind of a productivity problem (I'm falling behind on emails, etc.) Kind of defeats the purpose of having a "business smartphone". I've left feedback and complained about this in other threads... I use the phone about 90% for business and at this point I'm frustrated enough that I'm ready to dump the Pre if this doesn't get fixed in the next release.
-
Editing uneditable regions on template using CS4
I am updating an existing website using CS4.(I'm new at this) I went into the template made changes & saved it. None of the changes show up on the web pages. The update dialog box did not show up when I saved the changes. When I went into the Asset file under templates there were none showing up. But the template file is under the local files. Obviously I'm missing something. Please help.
I'll save the original poster some trouble.
Here are seven common mistakes that will result in changes not propagating from Template to child -
1. Rename the Templates folder
2. Move the Templates folder to some other folder level in the site other than root level
3. Move a template out of the Templates folder.
4. Make changes to an editable region of the Template (which will not propagate)
5. Assume that Template changes will be effected by just uploading the changed Template file to the server without also uploading the changed local files
6. Corrupt the site cache so that the link between Template and child page is broken
7. Improperly create your child pages by simply opening the Template, adding page specific content, and resaving the Template with an *.html extension rather thanits *.dwt extension. (you can tell if this is the case by looking at the code on a child page - if you see anything like <!-- TemplateBeginEditable... then this is what you have done). If you *have done this*, then recreate the child pages (in DW) using FILE | New > Page from Template, select the Template and click CREATE.
The 6th problem can be repaired by using SITE | Advanced > Recreate Site Cache, and the six others can be fixed by just not doing them. Have you done any of those?
Or, read this -
http://www.adobe.com/go/dd83ba8b -
Editing an existing InfoPath template - SharePoint 2010
Hi,
I opened an existing .xsn template form of a library (Content Type is enabled), save the form and publishing it. After published it when i open the form i cannot see the changes, only the old form pop-up. If i open the template form again i see the changes,
they are just not visible in the browser (even if i refresh the cache).
Am i missing something??Hi,
According to your description, my understanding is that the infopath template not render the change after publishing when you open the form in browser.
In my environment, editing an exist template form, it will deploy to the original list and will render the change after refreshing the form page.
For a better troubleshooting, I suggest you can create a new list and editing the list form template to test if it works.
After saving and deploying the template, you can open the list via the link in pop-up dialogue like below:
Here is a detailed article for your reference:
https://support.office.microsoft.com/en-us/article/Introduction-to-updating-existing-form-templates-e5656389-3cb7-436d-a441-73ad2f244e7c?CorrelationId=ad7a9422-59d5-4490-af17-2f192f0d2e8d&ui=en-US&rs=en-001&ad=US
Best Regards,
Thanks
Best Regards
Jerry Guo
TechNet Community Support -
Template won't let me edit Body tag
Hi - I would like to add Google maps API to my website
however I can't change the <body> tag to:
<body onload="load()" onunload="GUnload()">
because it is locked through the template. Can't seem to work
out how to get around this.
Is there another way to get Google maps to work other than
changing the body tag?
Thanks
Brett Kinross
P.S. Still fairly new to this!Attribute: onload
Label: monkeybutt
Type: TEXT
Default:
If you leave the default null, then every page will be
written like this -
<body onload=""....
It's not harmful, but it's ugly.
Open each child page, use MODIFY | Template Properties >
select monkeybutt
(or whatever your label is) in the list of editable regions,
and enter your
desired content of the onload event.
Does that help?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Brett Kinross" <[email protected]> wrote in
message
news:eeq3oa$15e$[email protected]..
> Thanks for your reply Murray. However I find the help
very confusing. I am
> able
> to make attributes such as background colour etc
editable however I can't
> work
> out how to make the load and unload functions
editable?!?
> Can you please help what I should enter for the
following boxes:
>
> Attribute: ?
> Label: ?
> Type: TEXT I presume
> Default: ?
>
> to get the following result: <body onload="load()"
onunload="GUnload()">
>
> Thanks
> -
Edit an OS Commerce template in dreamweaver
Hi
I downloaded an os commerece template for my first e commerce store and everything is set up ok, just need to edit the whole template to my products and colours. I am trying to remove the stamp at the bottom that says designed by monstertemplate, with their website links at the bottom but not having any luck. I can see the the links code when I turn on the live code view in dreamweaver but cant see it when I go to codes to try and edit it. Maybe I am missing something and would appricate any help. This is the website:
http://creativeinky.com/site/index.php - The links I want to remove are at the footer of the website. This has not been edited yet and the store is not functional.
This is what I see in codes:( I have tried to remove oscommerce at the top but that does not help). Which code is for the stamp at the bottom links as I cannot see it in this code view where I can edit it. Please help.
<?php
$Id: index.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
require('includes/application_top.php');
// the following cPath references come from application_top.php
$category_depth = 'top';
if (isset($cPath) && tep_not_null($cPath)) {
$categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$cateqories_products = tep_db_fetch_array($categories_products_query);
if ($cateqories_products['total'] > 0) {
$category_depth = 'products'; // display products
} else {
$category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'");
$category_parent = tep_db_fetch_array($category_parent_query);
if ($category_parent['total'] > 0) {
$category_depth = 'nested'; // navigate through the categories
} else {
$category_depth = 'products'; // category has no products, but display the 'no products' message
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<?php require(DIR_WS_INCLUDES . 'header_includes.php'); ?>
</head>
<?php
if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
$category = tep_db_fetch_array($category_query);
?>
<body>
<!-- header //-->
<?php $tab_sel = 2; ?>
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0">
<tr>
<td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php include(DIR_WS_BOXES . 'panel_top.php');?>
<?php echo tep_draw_top();?>
<?php new contentBoxHeading_ProdNew($info_box_contents);?>
<?php echo tep_draw3_top();?>
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="main sub_category">
<tr>
<?php
if (isset($cPath) && strpos('_', $cPath)) {
// check to see if there are deeper categories within the current category
$category_links = array_reverse($cPath_array);
for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
$categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
$categories = tep_db_fetch_array($categories_query);
if ($categories['total'] < 1) {
// do nothing, go through the loop
} else {
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
break; // we've found the deepest category the customer is in
} else {
$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
$number_of_categories = tep_db_num_rows($categories_query);
$rows = 0;
while ($categories = tep_db_fetch_array($categories_query)) {
$rows++;
$cPath_new = tep_get_path($categories['categories_id']);
$p_pic_sub = '<a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '</a>';
$p_name_sub = '<b><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></b>';
$width = (int)(100 / (MAX_DISPLAY_CATEGORIES_PER_ROW-0)) . '%';
echo '<td align="center" width="' . $width . '">'.tep_draw_prod2_top().'
<table cellpadding="0" cellspacing="0" border="0" class="wrapper_box">
<tr><td class="pic4_padd">'.tep_draw_prod_pic_top().''.$p_pic_sub.''.tep_draw_prod_pic_bottom().' </td></tr>
<tr><td class="name name4_padd">'.$p_name_sub.'</td></tr>
</table>'.tep_draw_prod2_bottom().'
</td>'."\n";
if ($col!=(MAX_DISPLAY_CATEGORIES_PER_ROW-1)){
echo '
<td>'.tep_draw_separator('spacer.gif', '1', '1').'</td>
}else{
if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
echo '
</tr><tr><td class="prod_line_x" colspan="'.(MAX_DISPLAY_CATEGORIES_PER_ROW + MAX_DISPLAY_CATEGORIES_PER_ROW -1).'">'.tep_draw_separator('spacer.gif', '1', '18').'</td></tr>' . "\n";
echo '<tr>' . "\n";
if ($col==MAX_DISPLAY_CATEGORIES_PER_ROW-1){
$col=0;
}else{
$col++;
// needed for the new products module shown below
$new_products_category_id = $current_category_id;
?>
</tr>
</table>
<?php echo tep_draw3_bottom();?>
<?php echo tep_draw_bottom();?>
<?php echo tep_draw_top();?>
<?php new contentBoxHeading_WHATS_NEW($info_box_contents, true, false);?>
<?php echo tep_draw3_top();?>
<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
<?php echo tep_draw3_bottom();?>
<?php echo tep_draw_bottom();?>
</td>
<!-- body_text_eof //-->
<td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
<?php
} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {
// create column list
$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,
'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);
asort($define_list);
$column_list = array();
reset($define_list);
while (list($key, $value) = each($define_list)) {
if ($value > 0) $column_list[] = $key;
$select_column_list = '';
for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
switch ($column_list[$i]) {
case 'PRODUCT_LIST_MODEL':
$select_column_list .= 'p.products_model, ';
break;
case 'PRODUCT_LIST_NAME':
$select_column_list .= 'pd.products_name, ';
break;
case 'PRODUCT_LIST_MANUFACTURER':
$select_column_list .= 'm.manufacturers_name, ';
break;
case 'PRODUCT_LIST_QUANTITY':
$select_column_list .= 'p.products_quantity, ';
break;
case 'PRODUCT_LIST_IMAGE':
$select_column_list .= 'p.products_image, ';
break;
case 'PRODUCT_LIST_WEIGHT':
$select_column_list .= 'p.products_weight, ';
break;
// show the products of a specified manufacturer
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only a specific category
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "'";
} else {
// We show them all
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'";
} else {
// show the products in a given categorie
if (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {
// We are asked to show only specific catgeory
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '" . (int)$HTTP_GET_VARS['filter_id'] . "' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
} else {
// We show them all
$listing_sql = "select " . $select_column_list . " p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS . " p left join " . TABLE_MANUFACTURERS . " m on p.manufacturers_id = m.manufacturers_id left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '" . (int)$languages_id . "' and p2c.categories_id = '" . (int)$current_category_id . "'";
if ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad]$', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {
for ($i=0, $n=sizeof($column_list); $i<$n; $i++) {
if ($column_list[$i] == 'PRODUCT_LIST_NAME') {
$HTTP_GET_VARS['sort'] = $i+1 . 'a';
$listing_sql .= " order by pd.products_name";
break;
} else {
$sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);
$sort_order = substr($HTTP_GET_VARS['sort'], 1);
switch ($column_list[$sort_col-1]) {
case 'PRODUCT_LIST_MODEL':
$listing_sql .= " order by p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_NAME':
$listing_sql .= " order by pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
break;
case 'PRODUCT_LIST_MANUFACTURER':
$listing_sql .= " order by m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_QUANTITY':
$listing_sql .= " order by p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_IMAGE':
$listing_sql .= " order by pd.products_name";
break;
case 'PRODUCT_LIST_WEIGHT':
$listing_sql .= " order by p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
case 'PRODUCT_LIST_PRICE':
$listing_sql .= " order by final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
break;
?>
<body>
<!-- header //-->
<?php $tab_sel = 2; ?>
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0">
<tr>
<td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0">
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
</table></td>
<!-- body_text //-->
<td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php include(DIR_WS_BOXES . 'panel_top.php');?>
<?php echo tep_draw_top();?>
<?php
// optional Product List Filter
if (PRODUCT_LIST_FILTER > 0) {
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' and p.manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "' order by cd.categories_name";
} else {
$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_MANUFACTURERS . " m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '" . (int)$current_category_id . "' order by m.manufacturers_name";
$filterlist_query = tep_db_query($filterlist_sql);
if (tep_db_num_rows($filterlist_query) > 1) {
echo tep_draw_side_top();
echo '
<table cellpadding="0" cellspacing="0" border="0" class="select2">
<tr><td align="right" class="main">' . tep_draw_form('filter', FILENAME_DEFAULT, 'get') . '<b>'.TEXT_SHOW . '</b> ';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);
$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));
} else {
echo tep_draw_hidden_field('cPath', $cPath);
$options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));
echo tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort']);
while ($filterlist = tep_db_fetch_array($filterlist_query)) {
$options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']);
echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');
echo tep_hide_session_id() . '</form></td></tr>
</table>' . "\n";
echo tep_draw_side_bottom();
// Get the right image for the top-right
$image = DIR_WS_IMAGES . 'table_background_list.gif';
if (isset($HTTP_GET_VARS['manufacturers_id'])) {
$image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");
$image = tep_db_fetch_array($image);
$image = $image['manufacturers_image'];
} elseif ($current_category_id) {
$image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'");
$image = tep_db_fetch_array($image);
$image = $image['categories_image'];
?>
<?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?>
<?php echo tep_draw_bottom();?>
</td>
<!-- body_text_eof //-->
<td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
<?php
} else { // default page
?>
<body>
<!-- header //-->
<?php $tab_sel = 222; ?>
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" class="<?php echo MAIN_TABLE; ?>" cellspacing="0" cellpadding="0">
<tr>
<?php
if ($tab_sel == 222) {
?>
<td class="<?php echo BOX_WIDTH_TD_LEFT; ?>"><table border="0" class="<?php echo BOX_WIDTH_LEFT; ?>" cellspacing="0" cellpadding="0">
<!-- right_navigation //-->
<tr><td><?php require(DIR_WS_INCLUDES . 'column_left.php'); ?></td></tr>
<!-- right_navigation_eof //-->
</table></td>
<?php
?>
<!-- body_text //-->
<td class="<?php echo CONTENT_WIDTH_TD; ?>"><?php include(DIR_WS_BOXES . 'panel_top.php');?>
<?php echo tep_draw_top();?>
<!-- Welcome_box_start -->
<?php /* tep_draw_heading_top(); */?>
<?php /* tep_draw_heading_top_3(); */?>
<?php /* echo tep_draw_prod_top(); */ ?>
<!-- <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr><td class="main"><?php /* echo tep_customer_greeting(); */ ?></td></tr>
<tr><td><?php /* echo tep_draw_separator('pixel_trans.gif', '100%', '10'); */ ?></td></tr>
<tr><td class="main"><?php /* echo TEXT_MAIN; */ ?></td></tr>
</table> -->
<?php /* echo tep_draw_prod_bottom(); */ ?>
<?php /* tep_draw_heading_bottom_3(); */?>
<?php /* echo tep_draw_separate(); */ ?>
<!-- Welcome_box_end -->
<?php new contentBoxHeading_ProdNew($info_box_contents);?>
<?php echo tep_draw3_top();
$sum2 = 4;
?>
<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS);?>
<?php echo tep_draw3_bottom();?>
<?php include(DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS); ?>
<?php echo tep_draw_bottom();?>
</td>
<!-- body_text_eof //-->
<td class="<?php echo BOX_WIDTH_TD_RIGHT; ?>"><table border="0" class="<?php echo BOX_WIDTH_RIGHT; ?>" cellspacing="0" cellpadding="0">
<!-- right_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!-- right_navigation_eof //-->
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<?php
?>
</body>
<?php require(DIR_WS_INCLUDES . 'footer_includes.php'); ?>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>Obviousy this is not as plain saliling as I thought. Being as though its OScommerce you probably have to jump through hiops to get to what you need.
Try:
includes/configure.php
or
admin/includes/configure.php -
How to insert a widget in a editable region from a template
Hi there,
ok so basically I am trying to create a HTML page from a template i have already designed.
when I try to insert a widget (Lightbox Gallery) in the editable region I get the following error.
"the widget requires code that must be inserted into the head of the document. insertion cannot happen because this document is read only"
I saw a previous thread (http://forums.adobe.com/thread/901299) that had the same problem with a solution but cant seem to make sense of it.
Not exactly sure where and what to paste in the header of the HTML page.
Any help will be much appreciated.
ThanksHi Murray,
ha funny you would say that is the exact answer you would give me seeing you posted it
I understand the logic behind it though not sure what i need to copy and where.
Basically i craeted a "dummy page" and inserted the widget-no problem there.
next step- what code do i copy from the dummy page and where do i paste it? in the template or HTML page.
Dummy HTML with widget code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script src="file:///C|/Users/Ashley/AppData/Roaming/Adobe/Dreamweaver CS5/en_US/Configuration/Temp/Assets/eamA1E8.tmp/scripts/jquery.js" type="text/javascript"></script>
<script src="file:///C|/Users/Ashley/AppData/Roaming/Adobe/Dreamweaver CS5/en_US/Configuration/Temp/Assets/eamA1E8.tmp/scripts/lightbox.js" type="text/javascript"></script>
<link href="file:///C|/Users/Ashley/AppData/Roaming/Adobe/Dreamweaver CS5/en_US/Configuration/Temp/Assets/eamA1E8.tmp/css/lightbox.css" rel="stylesheet" type="text/css" />
<link href="file:///C|/Users/Ashley/AppData/Roaming/Adobe/Dreamweaver CS5/en_US/Configuration/Temp/Assets/eamA1E8.tmp/css/sample_lightbox_layout.css" rel="stylesheet" type="text/css" />
<style type="text/css">
/* BeginOAWidget_Instance_2127022: #gallery */
.lbGallery {
/*gallery container settings*/
background-color: #CCC;
padding-left: 20px;
padding-top: 20px;
padding-right: 20px;
padding-bottom: 20px;
width: 540px;
height: auto;
text-align:left;
.lbGallery ul { list-style: none; margin:0;padding:0; }
.lbGallery ul li { display: inline;margin:0;padding:0; }
.lbGallery ul li a{text-decoration:none;}
.lbGallery ul li a img {
/*border color, width and margin for the images*/
border-color: #3e3e3e;
border-left-width: 10px;
border-top-width: 10px;
border-right-width: 10px;
border-bottom-width: 20px;
margin-left:5px;
margin-right:5px;
margin-top:5px;
margin-bottom:5px:
.lbGallery ul li a:hover img {
/*background color on hover*/
border-color: #ffffff;
border-left-width: 10px;
border-top-width: 10px;
border-right-width: 10px;
border-bottom-width: 20px;
#lightbox-container-image-box {
border-top: 0px none #ffffff;
border-right: 0px none #ffffff;
border-bottom: 0px none #ffffff;
border-left: 0px none #ffffff;
#lightbox-container-image-data-box {
border-top: 0px;
border-right: 0px none #ffffff;
border-bottom: 0px none #ffffff;
border-left: 0px none #ffffff;
/* EndOAWidget_Instance_2127022 */
</style>
<script type="text/xml">
<!--
<oa:widgets>
<oa:widget wid="2127022" binding="#gallery" />
</oa:widgets>
-->
</script>
</head>
<body>
<div id="gallery" class="lbGallery">
<ul>
<li> <a href="/images/lightboxdemo1.jpg" title=""><img src="/images/lightboxdemo_thumb1.jpg" width="72" height="72" alt="Flower" /></a> </li>
<li> <a href="/images/lightboxdemo2.jpg" title=""><img src="/images/lightboxdemo_thumb2.jpg" width="72" height="72" alt="Tree" /></a> </li>
<li> <a href="/images/lightboxdemo3.jpg" title=""><img src="/images/lightboxdemo_thumb3.jpg" width="72" height="72" alt="" /></a> </li>
<li> <a href="/images/lightboxdemo4.jpg" title=""><img src="/images/lightboxdemo_thumb4.jpg" width="72" height="72" alt="" /></a> </li>
<li> <a href="/images/lightboxdemo5.jpg" title=""><img src="/images/lightboxdemo_thumb5.jpg" width="72" height="72" alt="" /></a> </li>
</ul>
</div>
<script type="text/javascript">
// BeginOAWidget_Instance_2127022: #gallery
$(function(){
$('#gallery a').lightBox({
imageLoading: '/images/lightbox/lightbox-ico-loading.gif', // (string) Path and the name of the loading icon
imageBtnPrev: '/images/lightbox/lightbox-btn-prev.gif', // (string) Path and the name of the prev button image
imageBtnNext: '/images/lightbox/lightbox-btn-next.gif', // (string) Path and the name of the next button image
imageBtnClose: '/images/lightbox/lightbox-btn-close.gif', // (string) Path and the name of the close btn
imageBlank: '/images/lightbox/lightbox-blank.gif', // (string) Path and the name of a blank image (one pixel)
fixedNavigation: false, // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface.
containerResizeSpeed: 400, // Specify the resize duration of container image. These number are miliseconds. 400 is default.
overlayBgColor: "#999999", // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color.
overlayOpacity: .6, // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9
txtImage: 'Image', //Default text of image
txtOf: 'of'
// EndOAWidget_Instance_2127022
</script>
</body>
</html>
thanks again -
Can I edit the default HTML5 template?
Hi all.
Got a question here. When I start a new HTML document in Dreamweaver CC I end up with the following code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
What I would like is to be able to edit this default template to start with the following:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<!--Edit below line for external css-->
<link rel="stylesheet" href="#.css" media="screen>
<link rel="stylesheet" href="#.css" media="print">
<link rel="stylesheet" href="#.css" media="handheld>
<!--Edit below line for external js-->
<script src="#.js"></script>
<!--Edit below line for search engine description-->
<meta name="description" content="">
<!--Edit below line for search engine keywords-->
<meta name="keywords" content="">
<!--Edit below line for author-->
<meta name="author" content="">
<title>Untitled Document</title>
</head>
<body>
</body>
</html>
I've edited the default.html found in Adobe\Adobe Dreamweaver CC 2014.1\configuration\Templates and saved it but whenever I open a new HTML file and select HTML5 I wind up with the original code.
Can this be changed or am I just stuck with saving the desired code somewhere and constantly using that file to start all my new projects with?
Thanks.Try C:/Program Files/Adobe/Adobe Dreamweaver CC 2014.1/configuration/DocumentTypes/New Documents/default.html for starters. Tip - make a backup of this file before making any changes to it.
-
Error adding editable region in nested template Header
I have a base template for the website (establishing basic
menus), and a secondary template using that base template, which
establishes a common table layout for one part of the site. Having
created the PHP to drive the page, I need to lock down that
secondary nested region - otherwise any edit I make to my secondary
"table-defining" template is not passed through
to the final pages using the secondary template. I have
successfully created a secondary editable region in each part of
the <body> area, and sure enough, it locks down text
outside the secondary editable region just as DW help says it
should. So far so good.
Now the problem - I cannot create a region inside the
<head> editable region to lock down that region too.
Normally one would want keywords and so on to be variable from page
to page, but as I am filling variable keywords from a database, it
makes sense to lock down the <head> too. Does anyone
know why that generates an error "cannot create an
optional region here"? Is there anything that can be done
about it?Posts are hard to read when they are all crammed together
like yours. Try
making some paragraphs!
Nevertheless, I think I understand what you are saying., but
honestly, I
just wouldn't do it that way. Anymore, my templates are just
one editable
region in the body, and a bunch of server-side includes. I
find nested
templates much too complex, and troublesome to work with, and
have really
never found a scenario where I could do things with them that
I could not do
more easily with other methods.
> However, I have an Editable
> region with the HTML Head area, and DW does not permit
me to add a
> 'secondary-template Editable Region' within it to lock
it down.
Is it only you working on the site? Who are you trying to
'lock down'? If
it's only you, I'd forget about this. Invariably the things
like this that
you think are a good idea come back later to bite you.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"suddensurprise" <[email protected]> wrote
in message
news:[email protected]...
> Murray 'ACE' wanted to understand why I am using nested
templates.
>
Primary
> Template or 'base layout' I have a primary template
which establishes
> the
> top, left and bottom borders for the site. These contain
Spry menus - if
> I
> change the menu on the primary template, all pages will
be updated. The
> primary template has a 'work area box' which is where
the page content
> goes for
> each different page.
Secondary or 'nested' template Next I have a
> secondary template, or nested template. It starts with
the primary
> template
> but this time the 'work area box' is set up with a
product table and
> various
> fixed column headings. The table is filled from
different database
> records
> using PHP and MySQL. Therefore the secondary or 'nested'
template
> establishes
> a common format for the product table. For example, a
change to a heading
> in
> the secondary template is updated into all pages using
it. And to
> reiterate, a
> change to the Spry menu bar on the primary template will
update the
> secondary
> template and all pages created from that template.
Similarly, I have
> several
> other secondary templates, all created from the primary
template, all
> setting
> standard sections of the website so that multiple pages
can be updated at
> once
> via a single template change.
Note: the code in the secondary
> template
> needs to be 'locked' so that edits within it are passed
on to its slave
> pages.
> This is done by creating an empty Editable region at the
beginning of the
> 'work
> area box' I talked about.
Other Approaches? If anyone knows a
> better
> way of enabling site edits to be passed consistently
down into different
> standard-section blocks of the website, I would welcome
your input.
>
The
> Problem Now to reiterate the problem with which I
started this thread.
> In
> a secondary template it works fine creating a second
Editable Region
> within the
> Body of the HTML document - the rest of the code in that
'primary template
> editable region' is now locked out as is required.
However, I have an
> Editable
> region with the HTML Head area, and DW does not permit
me to add a
> 'secondary-template Editable Region' within it to lock
it down. I am
> wondering
> if anyone in the Community knows why or can suggest a
solution. Regards
> Richard
>
Maybe you are looking for
-
Using Labview 6i and Matlab 6.1. I want to be able to see Matlab warnings and error messages either in the Matlab Command Window or in Labview itself. Currently Matlab is called by Labview (which is working). However I would like to debug and/or modi
-
Photos: downloading only
Another naive question from a newcomer to iPhone (iPhone 3G): when syncing with my Mac, how can I download photos from my phone to iPhoto without uploading photos that are already in the iPhoto library to the phone? I have searched the Users' Manual
-
Just to calrify, I am running Mac OSX 10.4 and I am trying to sync and brand new Ipad 2 which I did NOT buy from Apple and my I tunes does not recognize the device when I plug in the USB cable. Is this because I need ot downloand OSX 10.5 or higher?
-
UPDATE STANDBY SITE NAME with DATAGUARD BROKE "DGMGRL"
I've a llitlle PB with my Dataguard After shutdown both sites to increase SGA size in Primary site and update in secondary site too I start the Primary site without Pb. But the Secondary site don't want to start. When I do a startup it fails.i check
-
When restarting my iPad 1 freezes on the apple logo. It even does when I try and do a reset by holding power and the hold button for 10 seconds.