close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

dynamically changing a link reference

Thread began 7/31/2012 9:05 am by JamieEff | Last modified 7/31/2012 10:49 am by JamieEff | 411 views | 1 replies

JamieEff

dynamically changing a link reference

Am not really sure how to explain this but here goes:

On a clients site, I have created a testimonials pag and am using a recordset to draw the relevant info from the database to display for the relevant testimonial.

Part of each testimonial includes a modal to pop up the actual testimonial.

What I am struggling to achieve is, if I am using a repeat region using 2 or more records, then the pop up 'breaks'

The pop up when using just one record is fine and looks like this:

html:
<a class="poplight" href="#?w=700" rel="popupreference">testimonial</a>



which then displays the following

html:
<div class="popup_block" id="popupreference">Content to go here</div>



What I have been trying to do is to use the content value from the database to dynamically change the 'popupreference' bit using the Content Value from 'Popup Name' eg,

php:
<a class="poplight" href="#?w=700" rel="<?php include('WA_CMS/addtosite.php'); echo str_replace(array("<p>","</p>"),"",WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Clients''Popup Name'false$row_ClientsRS['ContentPageSetOrder'])); ?>">testimonial</a></div>



php:
<div class="popup_block" id="<?php include('WA_CMS/addtosite.php'); echo str_replace(array("<p>","</p>"),"",WA_getCMSContent($database_PowerCMSConnection$PowerCMSConnection'Clients''Popup Name'false$row_ClientsRS['ContentPageSetOrder'])); ?>">Content to go here</div>



Is it possible to achieve what I am trying to do uising this method and if so, what am I doing wrong please?

Thanks

Jamie

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...