Creating a fixed-dimension popup window via CMSB

4 posts by 2 authors in: Forums > CMS Builder
Last Post: May 2, 2014   (RSS)

By Damon - April 29, 2014

Hi,

You could use a jQuery popup to display the content. Here is an example of one I found that can be used to display inline content:
http://www.no-margin-for-errors.com/projects/prettyphoto-jquery-lightbox-clone/

I searched for jquery lightbox inline html.

Hope this helps.

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By CommonSenseDesign - April 29, 2014

Thanks, Damon. I'll give this a try.

By CommonSenseDesign - May 2, 2014 - edited: May 2, 2014

Hi, Damon. I hope the following makes sense.

1. My site has a multi-recordĀ  section called Clients; e.g. http://www.amgltd.biz/clientsDetail.php?Asia-Reps-30. I need to have a link that appears on each page in this section if there is a client sub-brand.

2. I've created a new section editor called Clients: Sub-brand Popup. This is where I'm adding the content that will appear in the relevant popup window. The following code is generated when listing all the records in this section:

<?php foreach ($clients_popup_windowRecords as $record): ?>
Record Number: <?php echo htmlencode($record['num']) ?><br/>
Title: <?php echo htmlencode($record['title']) ?><br/>
Content: <?php echo $record['content']; ?><br/>
_link : <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/>
<?php endforeach ?>

3. When I'm in the CMS for Clients, I can choose a page created inĀ Clients: Sub-brand Popup that I want to link to from a drop down menu (see attachment). How do I create a link on a live page (like http://www.amgltd.biz/clientsDetail.php?Asia-Reps-30) that goes to the Sub-brand page that is selected from the drop down menu in the CMS? In my example page, the orange words "Vivada Cruises" should be a link to the page that I chose from the menu.