HighDots Forums  

How to make attributes editable WITHIN repeating tablesof template?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss How to make attributes editable WITHIN repeating tablesof template? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
erinlin
 
Posts: n/a

Default How to make attributes editable WITHIN repeating tablesof template? - 11-11-2004 , 03:45 AM






Hi all: I have a repeating table that contains one image, one link and some
text areas. I only know I can create new editable regions for those text areas.
But I don't know how to make the image source editable, as well as the linkage
destination editable. I have tried to use 'Make attribute editable' ,the code
got generated outside of repeating tables. And, I am working on this template
with XML content. If someone knows how to solve it, please help. Thank you very
much....:frown;


Reply With Quote
  #2  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: How to make attributes editable WITHIN repeating tables of template? - 11-11-2004 , 07:12 AM






Put this in script tags in the head of the document -

function P7_Image() {
var g7="<imagename>"
var g7url="<pathname>"
if ((g7=MM_findObj(g7obj))!=null) {g7.src=g7url;}
}

and this in any convenient part of the page

<script type="text/javascript">P7_Image()</script>

Then on the child page you would need to make two edits:

Set g7 to the *name* of the button (not the file name but the HTML name -
e.g., "productsbutt"), and g7url to the pathname to the button (e.g.,
"images/nav/button3.gif"), and bada bing, bada boom!


--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================

"erinlin" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi all: I have a repeating table that contains one image, one link and
some
text areas. I only know I can create new editable regions for those text
areas.
But I don't know how to make the image source editable, as well as the
linkage
destination editable. I have tried to use 'Make attribute editable' ,the
code
got generated outside of repeating tables. And, I am working on this
template
with XML content. If someone knows how to solve it, please help. Thank you
very
much....:frown;




Reply With Quote
  #3  
Old   
erinlin
 
Posts: n/a

Default Re: How to make attributes editable WITHIN repeatingtables of template? - 11-11-2004 , 08:09 AM



Hi Murray:
Thank you very much...
Let me try it now

Erin

Reply With Quote
  #4  
Old   
Murray *TMM*
 
Posts: n/a

Default Re: How to make attributes editable WITHIN repeating tables of template? - 11-11-2004 , 08:27 AM



Good luck, Erin.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(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
==================

"erinlin" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hi Murray:
Thank you very much...
Let me try it now

Erin



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.