Placing library item into page
This script for placing library item into page and applying object style to the item. In line 16, script shows that "assets" property does not support. Please resolve this.
if (app.documents.length==0){
alert("Please open the Document");
exit();
if (app.libraries.length==0){
alert("Please open the Library");
exit();
app.findTextPreferences=app.changeTextPreferences=null;
app.findTextPreferences.appliedParagraphStyle="MN";
var myfound=app.activeDocument.findText();
alert(myfound.length);
for(i=0; i<myfound.length; i++){
var mylib=app.libraries.assets.itemByName("Box").placeAsset(myfound[i].insertionPoints[0]);
var mymove=myfound[i].move(LocationOptions.atBeginning, mylib.insertionPoints[0])
mylib.appliedObjectStyle="MN_Obj";
To make that work, you have to address an open library (line 16).
app.libraries describes the collection of all open libraries, not a distinct one.
If only one library is open you could address the one with its index:
app.libraries[0]
If you already know the name of the library or better, the exact path of the library, you can:
1. Make sure to open it
2. Call it by its name
Let's assume you know the name and you know that the asset you want to place is stored inside, you could do it this way:
app.libraries.itemByName("TheNameOfTheLibrary").assets.itemByName("Box").placeAsset(
/*Wherever you want*/
Now, what will this line return?
A library object? Hardly. So be cautious with using a variable name like "mylib".
According to documentation it is returning an Array, and we can assume, that in this array is the object that is placed out of the library. Your asset stored in the library which goes by the name of "Box". Whatever that is.
If you want to find out, you can use the following, more descriptive variable: "myPlacedAsset". That sounds more neutral.
var myPlacedAsset = app.libraries.itemByName("TheNameOfTheLibrary").assets.itemByName("Box").placeAsset(
/*Wherever you want*/
Using the ESTK (ExtendScript Toolkit) together with $.writeln() can write the true nature of the placed asset to your JavaScript Console:
$.writeln(myPlacedAsset.constructor.name);
is informing you what kind of object "myPlacedAsset" really is. If indeed it is an Array, you could look for its length. If its length is "1", you get to the "heart" of your placed object by:
$.writeln(myPlacedAsset[0].constructor.name);
Or by that more inquisitory question:
$.writeln(myPlacedAsset[0].getElements()[0].constructor.name);
If your array is of a greater length, you have to loop through this array and question every single object!
Before testing, exchange my comment "/*Wherever you want*/" with the code you like to use: Obviously the first insertion point of your found text. Hold on! This will backfire to you, because every time you place one instance of the asset you will add a character to your found text and shift the original insertionPoint. Better loop from back to forth or do the search from back to forth.
Adobe InDesign CS6 (8.0) Object Model JS: Text
Please, try that and report back…
(Isn't noone reading the documentation these days?)
Indesign JavaScript Help
Adobe InDesign CS6 (8.0) Object Model JS: Table of Contents, Libraries Suite
Adobe InDesign CS6 (8.0) Object Model JS: Library
Adobe InDesign CS6 (8.0) Object Model JS: Asset
Adobe InDesign CS6 (8.0) Object Model JS: Asset
Uwe
Similar Messages
-
CS3 [JS] Placing Library Items
myDoc = app.activeDocument
myRule = app.libraries[0].assets[0].placeAsset(myDoc);
myRule.move(myDoc.pages[0]);
I get an error myRule.move() is not a function. What am I doing wrong?
myRule is definitely getting a reference to the placed item (a text
frame), so it says in the Data Browser.Hmm... I tried myRule.remove() and it gives me a similar error.
Apparently, despite the fact the data browser is showing I have a
reference to the item, I don't. Why would that be? -
Library items in DWT templates
I have setup a dynamic menu and created a library item from
it. When I insert it into a new document (or update the library
item) the urls within it keep getting the prefix /library/ added
and so don't work:
original menu
===========
<div id="lhsidemenu">
<ul>
<?php
require_once('Connections/ecommercetemplate_523.php'); ?>
<?php
mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
$query_categorymenu = "SELECT sectionID, sectionName FROM
sections ORDER BY sectionName ASC";
$categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523) or die(mysql_error());
$row_categorymenu = mysql_fetch_assoc($categorymenu);
$totalRows_categorymenu = mysql_num_rows($categorymenu);
?>
<?php do { ?>
<li><a href="products.php?cat=<?php echo
$row_categorymenu['sectionID']; ?>" ><?php echo
ucwords($row_categorymenu['sectionName']);
?></a></li>
<?php } while ($row_categorymenu =
mysql_fetch_assoc($categorymenu)); ?>
<?php
mysql_free_result($categorymenu);
?>
</ul></div>
Menu after becomin a library item
==========================
<!-- #BeginLibraryItem "/library/categorymenu.lbi" -->
<div id="lhsidemenu">
<ul>
<?php require_once('
library/Connections/ecommercetemplate_523.php'); ?>
<?php
mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
$query_categorymenu = "SELECT sectionID, sectionName FROM
sections ORDER BY sectionName ASC";
$categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523) or die(mysql_error());
$row_categorymenu = mysql_fetch_assoc($categorymenu);
$totalRows_categorymenu = mysql_num_rows($categorymenu);
?>
<?php do { ?>
<li><a href="
library/products.php?cat=<?php echo
$row_categorymenu['sectionID']; ?>" ><?php echo
ucwords($row_categorymenu['sectionName']);
?></a></li>
<?php } while ($row_categorymenu =
mysql_fetch_assoc($categorymenu)); ?>
<?php
mysql_free_result($categorymenu);
?>
</ul></div><!-- #EndLibraryItem -->
doe anyone know how to resolve this? thanksYou are placing this library item into an editable region of
the child page?
Why do this instead of just using an include?
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
==================
"bikeman01" <[email protected]> wrote in
message
news:[email protected]...
>I have setup a dynamic menu and created a library item
from it. When I
>insert
> it into a new document (or update the library item) the
urls within it
> keep
> getting the prefix /library/ added and so don't work:
>
> original menu
> ===========
>
> <div id="lhsidemenu">
>
> <?php
require_once('Connections/ecommercetemplate_523.php'); ?>
> <?php
> mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
> $query_categorymenu = "SELECT sectionID, sectionName
FROM sections ORDER
> BY
> sectionName ASC";
> $categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523)
> or
> die(mysql_error());
> $row_categorymenu = mysql_fetch_assoc($categorymenu);
> $totalRows_categorymenu = mysql_num_rows($categorymenu);
> ?>
> <?php do { ?>
>
<a href="products.php?cat=<?php echo
> $row_categorymenu['sectionID']; ?>" ><?php echo
> ucwords($row_categorymenu['sectionName']);
?></a></li>
> <?php } while ($row_categorymenu =
> mysql_fetch_assoc($categorymenu)); ?>
> <?php
> mysql_free_result($categorymenu);
> ?>
>
</div>
>
> Menu after becomin a library item
> ==========================
> <!-- #BeginLibraryItem "/library/categorymenu.lbi"
-->
> <div id="lhsidemenu">
>
> <?php
> require_once('
library/Connections/ecommercetemplate_523.php'); ?>
> <?php
> mysql_select_db($database_ecommercetemplate_523,
$ecommercetemplate_523);
> $query_categorymenu = "SELECT sectionID, sectionName
FROM sections ORDER
> BY
> sectionName ASC";
> $categorymenu = mysql_query($query_categorymenu,
$ecommercetemplate_523)
> or
> die(mysql_error());
> $row_categorymenu = mysql_fetch_assoc($categorymenu);
> $totalRows_categorymenu = mysql_num_rows($categorymenu);
> ?>
> <?php do { ?>
>
<a href="
library/products.php?cat=<?php echo
> $row_categorymenu['sectionID']; ?>" ><?php echo
> ucwords($row_categorymenu['sectionName']);
?></a></li>
> <?php } while ($row_categorymenu =
> mysql_fetch_assoc($categorymenu)); ?>
> <?php
> mysql_free_result($categorymenu);
> ?>
>
</div><!-- #EndLibraryItem -->
>
>
> doe anyone know how to resolve this? thanks
> -
Hi All,
I have coding to place Library Item into the Page Layout, my Script placing the library Item into that parent Page,
But my Problem is I can not place XMLElement Into that Library Element Box.
Here is my Script:
myDoc.select(myElement);
var mySideBarXML = app.selection[0];
try {
myAsset = myCurrentLib.assets.item("Box"); // Name of the library item is "bx1"
myLibraryItem = myAsset.placeAsset(myElement.insertionPoints[-1]);
catch (err) {
alert ("There is no library element with the name Box");
exit();
// TO PLACE TEXT IN LIBRARY ITEM
try {
myLibraryItem[0].textFrames[0].placeXML(mySideBarXML); // if the library element is group of frames.
catch (ee) {
try {
myLibraryItem[0].placeXML(mySideBarXML); // if the library element is a single frame.
catch (ee) { }
can any one help on this.
Regards
HurixHi hurix,
Are you try the above requirement in manually, You can't do even manually, because you already placed the library item into the XML text in between, again you drag the you respective box element xml text into the box, definitely its shown the error in InDesign like this...("Elements cannot be placed into an inline").
Now, what you have to do it for your requirement to meet. First you placed the library item into the respective page, then placed the box xml element content into the library item text frame.
try{
var mySideBarXML = myElement;
var myLibraryItem = app.libraries[0].assets.item("Box").placeAsset(myDoc)[0];// here you give the page, i.e., you selection element text parent page;
myLibraryItem.move(mySideBarXML.xmlContent.parentTextFrames[0].parentPage);
try {
myLibraryItem.textFrames[0].placeXML(myElement); // if the library element is group of text frame.
catch (ee) {
myLibraryItem.placeXML(myElement);// single text frame no group.
thx,
csm_phil, -
Spry widget menu bar as a library item - problems
I created a spry vertical menu bar and made it a library item. The original works great, however when I insert the library item into its own div tag on another page, the submenus will not pop out, either in DW or the browser view. The div tag is the correct size and I made the z index high enough. Here is the code of the page that works properly:
<!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>DM Consulting Dry Dock Training</title>
<link href="css styles/drydock2.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-image: url(images/vertborderblue2.jpg);
background-repeat: repeat-x;
-->
</style>
</head>
<body>
<div id="container">
<div id="header"><img src="images/header_title_white.png" width="645" height="116" alt="header" /></div>
<div id="logo"><img src="images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
<div id="mainContent">
<div id="content">
<p><span class="bolder1">D</span><span class="bolder1">M Consulting </span><span class="lineheight">provides Dry Dock Training, Dry Dock Conferences,<br />
Dry Dock Software and Dry Dock Consulting for:</span></p>
<ul>
<li class="lineheight"> Dock Masters</li>
<li class="lineheight">Docking Officers</li>
<li class="lineheight">Dry Dock Crews</li>
<li class="lineheight">Engineers</li>
<li class="lineheight">Naval Architects </li>
<li class="lineheight"> Port Engineers</li>
<li class="lineheight">Program/Project Managers</li>
<li class="lineheight">Marine Surveyors</li>
<li class="lineheight">Owners' Representatives</li>
<li class="lineheight">On-site Representatives</li>
<li class="lineheight">Consultants</li>
<li class="lineheight">Others Involved or Interested in
the <br />
Dry Docking of Ships and Vessels</li>
</ul>
<div id="testimonials">"The course was excellent, straight forward and comprehensive. Instruction was great, expected <br />
"death-by-power point" but was pleasantly surprised.
I am better acquainted w/dry dock basics after the
course and can trust the accuracy of the training
based on the extensive experience of the instructors. Thank you!
Very informative, very thorough."
- David, Australia<br />
</div>
<div id="movie">
<object width="560" height="340">
<param name="movie" value="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" />
<param name="allowFullScreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed src="http://www.youtube.com/v/qLGUZEkbAwA?fs=1&hl=en_US&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed>
</object>
</div>
<div id="moreTestimonials">»»» click here for more testimonials «««</div>
<div id="footer"><!-- #BeginLibraryItem "/Library/copyright.lbi" -->© COPYRIGHT 2010 DM CONSULTING<!-- #EndLibraryItem --></div>
</div>
<div id="navbar">
<!-- #BeginLibraryItem "/Library/nav.lbi" -->
<ul id="MenuBar1" class="MenuBarVertical">
<li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
<li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
<ul>
<li><a href="#outline.html" title="Outline of our Training Course">General Information & Outline</a></li>
<li><a href="#train_sched.html" title="Locations & dates of our Training Courses">Training Course Schedule</a></li>
<li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
<li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
</ul>
</li>
<li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
<li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
<li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
<li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
<li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
<li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
</ul>
<!-- #EndLibraryItem --></div>
</div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
Here is the code for the page that DOESN'T work:
<!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>Training Course Schedule</title>
<link href="../css styles/drydock2.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="../SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-image: url(images/vertborderblue2.jpg);
background-repeat: repeat-x;
-->
</style>
</head>
<body>
<div id="container">
<div id="header"><img src="../images/header_title_white.png" width="645" height="116" alt="header" /></div>
<div id="logo"><img src="../images/drydock_logo_blktxt.png" width="154" height="119" alt="logo" /></div>
<div id="mainContent">
<div id="content">
<h2><span class="bolder1">Training Course Schedule</span><span class="bolder1"></span></h2>
<p><br />
Class sizes are limited so please register early. Early registration and payment provides the best value.<br />
<br />
</p>
<p class="underline"><strong>4-7 October 2010 • Honolulu, HI, USA </strong></p>
<div id="schedulephoto"><img src="../images/conference-rm_train_s.jpg" width="250" height="123" alt="image" /></div>
<p>The training will be held in Pearl Harbor, Hawaii, USA. <br />
<a href="Registration_Hawaii.html">Registration form</a><br />
<br />
</p>
<p class="underline"><strong>15-18 November 2010 • Virginia Beach VA, USA</strong></p>
<p>The training will be held in Virginia Beach, Virginia, USA. <br />
<a href="Registration_Virginia.html">Registration form</a><br />
<br />
</p>
<p class="underline"><strong>11-14 May 2011 • London, United Kingdom</strong></p>
The training is held in conjunction with the Royal Institution of Naval Architects (RINA). Registration and payment will be made directly to RINA. <br />
Visit RINA's <a href="http://www.RINA.org.uk" target="_blank">website</a> and go to "Events" or call +44 (0) 20 7201 2401.<br />
<br />
</p>
<p><strong>Your Location</strong></p>
<p>Training tailored to your organization's needs, including training at your facilities, <br />
is also available. </p>
</div>
<div id="nav3"><!-- #BeginLibraryItem "/Library/nav.lbi" -->
<ul id="MenuBar1" class="MenuBarVertical">
<li><a href="#index.html" title="DM Consulting home page">HOME</a></li>
<li><a href="#" class="MenuBarItemSubmenu">TRAINING</a>
<ul>
<li><a href="#outline.html" title="Outline of our Training Course">General Information & Outline</a></li>
<li><a href="#train_sched.html" title="Locations & dates of our Training Courses">Training Course Schedule</a></li>
<li><a href="#drawings.html" title="Dry dock course drawings">Course Drawings</a></li>
<li><a href="#testimonials.html" title="Read what our clients have to say">Testimonials</a></li>
</ul>
</li>
<li><a href="#conference.html" title="Dry Dock Conference information">CONFERENCE</a></li>
<li><a href="#software.html" title="Shop our software">DOCKMASTER SOFTWARE</a></li>
<li><a href="#consulting.html" title="Dry Dock Consulting">CONSULTING</a></li>
<li><a href="#clients.html" title="List of current and past clients">CLIENTS</a></li>
<li><a href="#about.html" title="Learn about our company">ABOUT</a></li>
<li><a href="#contact.html" title="Contact us">CONTACT US</a></li>
</ul>
<!-- #EndLibraryItem --></div>
</div>
</div>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
I understand about having the script and link element that connect my page to the dependent files in the SpryAssets folder in the header and the JavaScript function cal at the bottom on each page. I don't know what else to do - HELP!Welcome to the Dreamweaver world!
Well, having your index.html page at the top/root level is important, as that is the default page by which people will enter your site.
Having other pages in folders is fine...I do it all the time in order to keep departments or categories of information sorted.
One characteristic of having pages in folders is that the hierarchy of files in folders (perforce) puts them at different depths in the site.
This is not inherently a bad thing! Just one to remain aware of. When you look at your site files in the Files Panel, you can see a graphical representation of those different levels.
But the nature of a library item is that it is identical in all its instances, which is what makes it useful...change it in the library, and it changes site-wide. The down-side of that identity is that when your files are at different depths in the hierarchy, their links back to, say, home (or any other same file) will change depending on the depth. You can see this if you make a link on a page, then drag the page (in the Files Panel) to a different depth...say, into a folder when it started at root level, or vice versa. Check the link, and you will see that it automatically adapted to the new path.
Library items do not do that; they do not change, so some of your links will be 'wrong' when you refer to pages that have different paths than the ones originally set up in the library item... because of the change in hierarchy.
All this is, of course, reliant on your creation of the site in the first place, as defining the root folder's location on your computer gives Dreamweaver a starting point for handling (juggling?) all the location-information for your site's files.
Beth -
I inserted library items then stuff dissapeared
Hi
...sorry folks Im a newbie,
I use mx2004 I am helping a charity re-do their website and keep the current one up to date.
I started to insert library items into the existing site pages ( which are all table based ) some of the pages seem to be fine
but other ones are showing a blank page when i preview them .
Firefox is the only browser that it seems to be ok in, IE Opera Safari and chrome are showing nothing
except IE which shows thr background colour
Ive got a gut feeling Ive inserted the LBI in the wrong place or something
http://www.inclusiongroup.org.uk/inclusion2/public/pages/pcp.htm
here is the link
thank youthanks very much ive spent ages trying to sort that
as usual something daft
thanks again also for the speedy reply -
Inserting library item modifies code
Hello,
I have some library items that are table rows. When I insert
the library item into my page, it actually rearranges the code on
the page for that table. Any way to have DW stop doing this?can't make just a row a Library item- it has to have
<table> and </table>
rethink this, or go with SSI or something?
> I have some library items that are table rows. When I
insert the library item
> into my page, it actually rearranges the code on the
page for that table. Any
> way to have DW stop doing this? -
Trouble converting a complicated navigation into a library item
I am having trouble converting our main navigation into a
library item. The navigation includes many images, layers and
behaviors. You can see the nav at the top of
http://www.vedanta.org as you
scroll over the main topics just under the banner.
I built the nav from scratch on a new XHTML page and it works
fine. Then I did Edit/Select All and the entire nav was selected.
But when I choose Modify/Library/Add Object to Library, absolutely
nothing happens, nothing appears in the library at all.
Is this navigation too complicated to be saved as a Library
item?
NancyDW is having a little trouble interpreting your GL code. For
example, the
menu is here -
<div id="rkou">
<a onMouseOver="CSAction(new
Array(/*CMP*/'B9B0A14425',/*CMP*/'B9B0A14427',/*CMP*/'B9B0A14429',/*CMP*/'B9B0A14431',/*C MP*/'B9B0A14433',/*CMP*/'B9B0A14435',/*CMP*/'B9B0A14437',/*CMP*/'B9B0A14439',/*CMP*/'B9B0A 14441',/*CMP*/'B9B0A14443',/*CMP*/'B9B0A14445',/*CMP*/'B9B0A14447'));return
true;" href="#"
csover="B9B0A14425,B9B0A14427,B9B0A14429,B9B0A14431,B9B0A14433,B9B0A14435,B9B0A14437,B9B0 A14439,B9B0A14441,B9B0A14443,B9B0A14445,B9B0A14447"><img
src="images/navigation/rkou.gif" alt="" height="18"
width="166"
border="0"></a></div>
DW will be flummoxed trying to put this into a Library item.
Either rebuild the menu in DW, or try this -
copy everything from -
<div id="wivu"> (line286)
through -
<p></p> (line 322)
inclusive, and paste it into a new Library item (FILE | New
> Library item).
Save that file in the Library folder with the *.lbi
extension.
When you insert it into a page, MAKE SURE THAT THE PAGE
ALREADY HAS ALL OF
THE GL CODE IN THIS LINKED PAGE IN THE HEAD.
See if that works.
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
==================
"eucalyptus1" <[email protected]> wrote in
message
news:[email protected]...
>I am having trouble converting our main navigation into a
library item. The
> navigation includes many images, layers and behaviors.
You can see the nav
> at
> the top of
http://www.vedanta.org as you
scroll over the main topics just
> under
> the banner.
>
> I built the nav from scratch on a new XHTML page and it
works fine. Then
> I
> did Edit/Select All and the entire nav was selected. But
when I choose
> Modify/Library/Add Object to Library, absolutely nothing
happens, nothing
> appears in the library at all.
>
> Is this navigation too complicated to be saved as a
Library item?
> Nancy
> -
How I add a LIBRARY ITEM to a page layout, top/bottom ?
how I add a LIBRARY ITEM to a page layout, top/bottom ? in
dwmr mx 2004 and cs4 ?Have you looked at the DW help file - it will explain all
about library items :-)
Nadia
Adobe® Community Expert : Dreamweaver
Unique CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
CSS Tutorials for Dreamweaver |
http://www.adobe.com/devnet/dreamweaver/css.html
Book: Ultimate CSS Reference (aff link) |
http://www.sitepoint.com/launch/005dfd4/3/133
http://twitter.com/nadiap
"lse987" <[email protected]> wrote in
message news:gpsvtt$t5q$[email protected]..
> how I add a LIBRARY ITEM to a page layout, top/bottom ?
in dwmr mx 2004 and cs4 ? -
When saving library item, only OPEN pages updating (closed pages not updating)
When I save my library item it only updates the pages that are OPEN and not the ones that are closed. It starts the update process then stops after updating the open pages and never completes the process. I have to click "stop" after a minute or so. Then it prompts me to update the pages again.
How can I get it to update ALL pages associated with the library item?
Here's the library code:
<!-- #BeginLibraryItem "/Library/menu_left.lbi" -->
<link href="css/stevens.css" rel="stylesheet" type="text/css">
<table width="197" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><a href="buy-wallace-stevens-biography.com"><img src="images/buy-wallace-stevens-biography.gif" alt="Buy Wallace Stevens: A Dual Life as Poet and Insurance Executive" width="197" height="42" border="0" /></a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="default.htm">Home</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="praise-for-wallace-stevens-biography.htm">Praise for the Biography</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="buy-wallace-stevens-biography.com">Ordering Info</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="excerpts-from-wallace-stevens-biography.htm">Excerpts</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="wallace-stevens-photos.htm">Photos</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="wallace-stevens-poems.htm">Selected Poems</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="wallace-stevens-reading-his-poetry.htm">Wallace Stevens<br />
Reading his Poetry</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="wallace-stevens-and-elizabeth-park.htm">Wallace Stevens <br />
and Elizabeth Park</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="wallace-stevens-lecture-by-noted-critic-helen-vendler.htm">Lecture on Stevens by Noted Critic
Helen Vendler</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="about-alison-johnson.htm">About the Author</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="other-works-by-alison-johnson.htm">Other Works by<br />
Alison Johnson</a></td>
</tr>
<tr>
<td class="menu1"><a class="menulink" href="contact-wallace-stevens-biographer.htm">Contact</a></td>
</tr>
<tr>
<td height="45" valign="top"> </td>
</tr>
</table><!-- #EndLibraryItem -->The following lines in the Library item are invalid code
<!-- #BeginLibraryItem "/Library/menu_left.lbi" -->
<link href="css/stevens.css" rel="stylesheet" type="text/css">
<table width="197" border="0" cellspacing="0" cellpadding="0">
<link href="css/stevens.css" rel="stylesheet" type="text/css"> belongs in the <head> section of the HTML page
<table width="197" border="0" cellspacing="0" cellpadding="0"> belongs in the <body> section.
Valid code would be
<!-- #BeginLibraryItem "/Library/menu_left.lbi" -->
<link href="css/stevens.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="197" border="0" cellspacing="0" cellpadding="0">
But I would expect the Library item to only include the table -
Can a library item be used to personalize a page title?
Hi, I do not think this is possible, but is there a way to use a library item to personalize part of a page title? Thanks in advance, Mark
In that case, you should have your <title> tags within a Template Editable Region so you can use a unique title on every page.
In addition, you should make good use of Heading tags <h1> <h2> and <h3> within editable regions to promote keyword rich content that tells search engines & humans what your pages are about.
Google's SEO Starter Guide (PDF)
http://www.google.com/webmasters/docs/search-engine-optimization-starter-guide.pdf.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
InDesign CS4 Library- can't get library items on to pages
I'm fairly new to InDesign CS4.
A book I'm reading has a tutorial telling me to drag library items from the library to a page.
This is a library that the book author created that came with the book.
However, I can't get material from the library to any of the pages.
Anytime I try dragging any of the images or other items from the library to my page in InDesign CS4, I get a small "No" symbol (a circle with a slash through it).
So I clicked on the image in the library that I wanted to add to the page, and using both the content menu (and later, the library panel's menu) to select "Place Item," nothing happened.
How do I get content in a library on to a page?
Dragging and using "Place Item" are not working for me.Hello, Lee Sarah, and thanks for answering.
If I understand you correctly, this is what I did:
I "right" clicked on the Library file icon on my hard drive, called "Healthy Pets CS4."
This brought up a context menu.
From there, I went to "Properties."
Under "Properties" > "Attributes," "Read only" is not checked off, nor is "hidden" checked off.
In the "Healthy Pets CS4 Properties" dialog box, I then clicked on the the "Security" tab, which brought up all sorts of stuff about permissions, read /write, etc.
I guess I should mention at this point that I'm on a computer running Windows Vista, since this might be pertinent to my issue (?)
Although it's my computer, it has me on here as two different people (I'm on as Administrator and under my first name, which let's just say is "Graphics Cuddly Bear.")
On the "Security" tab page of the dialog box is a heading called "Group or user names," and from there, depending on which name you pick from the user names, different options get high lighted in the ""Permissions for Authenticated Users" box below it.
So, under "Permissions for Authenticated Users" (when the users "Autheticated Users" and "Admins" are selected) the following are checked off with a check mark,
(as if to say, "These are the things you have permissions to do with this file"):
Modify
Read and Execute
Read
Write
The only things I do not have permissions for when I check off "Administrator" on that list is "Special Permissions."
When AU (Autheticated Users) is checked it says I do not have "Full Control" or "Special Permissions."
However, when I clicked on my name (GCB - "Graphics Cuddly Bear") under the heading of "Group of user names," these two things are the only ones checked off:
Read and Execute
Read
So I went in to another area of this box and gave my account ("GCB") the "Write" ability.
When I went back to the box, a check mark next to "Write" then appeared. So it appears to be telling me that under GCB, I can now write to that file.
So when I opened and closed out of InDesign and re-opened it, it still will not allow me to drag the files/text/images from the library.
I still get the little "No" symbol.
It also still will not let me use the "place" command, either.
I've gone ahead and worked thorugh this chapter without being able to use the author's library items, but it makes working on her tutorials very difficult.
And it's rather pointless, since the entire chapter is about how to use the software's library.
I got a response from the book's publisher (Delmar / Cengage) to ask them for help, if they would provide me with working copies of the files, or some other work around, and they were NOT the least bit helpful.
A representative from Delmar/ Cengage e-mailed me to say that because I purchased the book at Amazon's site (rather than from them directly) that they would not help me, which I thought was cruddy and not classy.
I don't see that it entirely matters where I bought the book from; they're the ones who made it. -
Page persistence indicator and Library item
What is the best way to create page persistence indicators on
a
navigational array using div elements, in which the nav array
is stored
as a Library item and stretches across multiple Templates?
I am trying to follow the instructions as in this article:
http://www.communitymx.com/content/article.cfm?cid=F1394
However, this method uses template parameters wherein the
navigational
array is stored in the .DWT template file, and not in a
Library item
which stretches across Templates as in my situation. I am
looking for a
solution which will allow the Library to dynamically create
the
persistence indicators.
Oh, and also the nav array is made up of graphical elements
(not
text-based CSS) so the persistence needs to swap out
individual
graphical elements for each div.
Thanks, -CCE Michael Brandt wrote:
>
>> Here's how you handle that - call the host and ask
them to server
>> parse ALL extensions on the site. Most will do this
(many are set
>> this way by default).
>
> Yep, I've done that in the past. But it may contribute
in part to what
> CC is referring to as lost time. Just trying to be
Solomonic.
>
Yes, this is exactly what I'm trying to say.
When I do a five page static site for a client who I know is
probably
going to make changes to universal elements once every year
(if that) it
really doesn't matter if I choose Library or SSI. Often I
will choose
Library items in this case, simply because they're easy to do
and I'm
used to doing things this way. And when I do have updates to
make?
Dreamweaver makes it a snap to update those Library items,
then compare
the changed files on the server. It can all be done in under
a minute.
SSI? Could have used that, too, but to preview the site I
either have to
set up a testing server environment or make the include live
before
showing the client. And I can't drag and drop the file from
the desktop
onto my browser, have to go through Dreamweaver. These may
not seem like
big deals (and may seem inefficient to some) but I manage
between 15-20
sites all through Dreamweaver, some requiring extensive
updates, many
requiring only a few tweaks quarterly, and I can tell you
that on the
sites I've built Libraries around, they take me maybe a few
additional
minutes longer to update than with the sites I've built with
SSI. It's
all about which sites make the most sense to build SSI or
Libraries around.
Of course the argument has been made: why not plan better in
advance to
use SSI in the first place when it may save you time in the
future? Good
point. However, again, the sites I choose to use Library
items versus
SSI were usually smaller sites, with no dynamic pages, etc.
And for
whatever reason I chose not to rename all my extensions to
SHTML ...
didn't want to jump through hoops setting up a testing server
environment ... or upload everything to FTP everytime I
changed the
include file just to preview the one pixel move I made on a
photo ...
and the client may see the include file live on his server
before I am
ready to demo the whole site, which is on version 4 at this
point ...
and now I have to change the path of the include on the
Template to a
new one so he doesn't see parts of version 3 ... and I don't
want to go
back to my client and ask for additional hours to call the
client's
dumb-*** hosting company to set up SSI that should already be
setup ...
don't have time to wait three hours for the webhosting
company to get
back to me with a "we're working on it" response ... and
we're already
overbudget due to that fancy CSS menu I already spent way too
much time
on and isn't looking quite right in IE6 still ... and I've
got to get
going on four other website updates before 6 PM ... it's now
5 PM ...
and I'm probably going to be up all night again.
Given all of that, I can't see why there appear to be so many
Library
hating comments on this thread. Reading through, it would
appear that
Library items are utterly useless -- which is just not the
case. I'm
surprised at the comments, actually, because the power in
Dreamweaver
lies in its ability to make the business of building websites
easier for
users with a wide range of skill levels, for almost any kind
of job.
Some of its tools (like Libraries) have overlap with SSI
perhaps to give
the user as many options as possible depending on
circumstance. Whether
one chooses to use Library items or SSI, the results are
often the same
in my experience, and I feel Libraries have even saved me
time in
situations where includes were simply not the wisest choice.
Who knows,
maybe it's because I've grown so used to them over the years
is why I
defend them so. But any rate, Libraries at least serve some
of us well.
-CC -
I can not drag graphic items into or out of the Creative Cloud library in Illustrator CC 2014
I've recently upgraded to the new 2014.1.0 release that includes linked Creative Cloud Libraries. However, it appears that my version of Illustrator is not allowing me to drag graphic items into or out of the library panel. I can use the menu prompts and panel buttons to add items to my library or document, however the drag feature is not working. You can see the issue in the screencast below. If anyone else is having this problem and has figured out a solution, I'd greatly appreciate it. It's worth noting that the panel works as advertised in other applications within Creative Suite CC. Thank you.
http://screencast.com/t/Uh3BwMrJtyHello and thanks for your response!
I'm running OS X 10.9.5. I've tried restarting the machine and clearing preferences, yet the problem remains. I may try to reinstall the program to see if that corrects the issue. -
How to fetch the tabular form column value into page items
Hi,
I have created tabular form. I have set LOV for one column. Here my requirement is when i select the value from lov then it will fetch that value into page item.
can any help?
I am using apex 4.1
Thanks
vijayIt's not so easy to make a dynamic action on a tabular form.
The best thing you can do is to use the javascript API from APEX: http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/javascript_api.htm
So if you have a tabular form then open your item and make it a column link.
In the link location select URL.
Your URL would be something like this
javascript:$s('P1_PAGE_ITEM', #COLUMN_ID#);doSubmit('COLUMN_ID');The doSubmit is not required but if you don't submit your page then the server would never know about your page item.
Off course it is possible to submit at a later point. For example you can just use the $s to set the value off an item and afterwards create a button that would submit your page.
Be aware that if you just set the value off your page item and just link to an other page without submitting or without branching that other page would never know about your page item.
If you want the server to know the value off a page item you need to submit it's value to the server. The easiest way is just to do the doSubmit() call after you have set your value.
Hope this helps,
Regards
Nico
Maybe you are looking for
-
How do you use home sharing if Itunes library is on external hard drive?
How do you set up home sharing if IPhoto and Itunes libraries are on external hard drive?
-
Macbook has "killed" 3 batteries in a row
Hi, my first post here. I have a macbook 2 ghz 1st gen that has just killed my third battery. This only 2 months after apple sent me a replacement, so i doubt its a problem with the batteries themselves. It is no longer covered by warranty so i am ho
-
[Solved] Error upon selecting "base" package during install process
Hey guys, I got stuck in the install process. the following issue never occured to be before. Upon selecting the base package during install and pressing "OK", i recieve the following error: ERROR: check_is_in needs a non-empty needle as $1 and a hay
-
Install Without Internet Connection ?
Using the Mohamed El-Mallah Portal book I have had good results installing 9iAS and Oracle 8.1.7 dbms. Not that everything works, but it seems possible that success may happen. Especially with the Install Guide referencd by John Hall. My question is
-
JSP/JVM how does it work?
I am a new-to-the-industry web developer and I would like to get my facts straight with regard to web development using JSP technology. I currently work for a company that has had all of their web-based applications created using ASP technology. We l