Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
ViewerUrl Difference 1.13 to 1.15

 

 


jposwald
User

May 9, 2008, 1:53 AM

Post #1 of 7 (190 views)
Shortcut
ViewerUrl Difference 1.13 to 1.15 Can't Post

Dave,

In 1.13 we had in ListPage the option to point the ViewerUrl in one category to different webpages when we wanted to sort a List by ID=

For ex in 1.13,
I have the Certifications Category where:

$options['viewerUrl'] = 'Certifications_Management_see.php';

and now in 1.15 i cannot do it because it has to be directly from CMS...

is there a string code to add to certain webpages their viewerurl?

I tried with:

list($certifications_Record, $certifications_Details) = getRecords(array(
'tableName' => 'certifications_',
'perPage' => '10',
'viewerUrl' => 'Certifications_Management_see.php';
));

But it does not work :(

Do you know how to make it work?

Best Regards, Juan

(This post was edited by jposwald on May 9, 2008, 1:55 AM)


Dave
Staff / Moderator


May 9, 2008, 8:28 AM

Post #2 of 7 (180 views)
Shortcut
Re: [jposwald] ViewerUrl Difference 1.13 to 1.15 [In reply to] Can't Post

Hi Juan,

If you've already set this up with the older version, the the old viewer code will work fine, so you can continue to use that if you want.

But you can use the new code as well. Here's how to do it. Note that I'll use $record for the variable name, just replace that with whatever your record variable is called.

Instead of <?php echo $record['_link'] ?>
use this: Certifications_Management_see.php?<?php echo $record['_filename'] ?>-<?php echo $record['num'] ?>

That will create the same kind of link but let you link to a different page. Give that a try and let me know how it works.

Also, one more trick. If you want to see all the values that are available in a variable you can use this code to display them while developing the site:


Code
<xmp><?php print_r($record); ?></xmp>


Hope that helps, let me know how it goes.

Dave Edis - Senior Developer
interactivetools.com


jposwald
User

May 9, 2008, 12:06 PM

Post #3 of 7 (176 views)
Shortcut
Re: [Dave] ViewerUrl Difference 1.13 to 1.15 [In reply to] Can't Post

Dave,

It seems not to work yet with:

<a href="Certifications_Management_see.php?<?php echo $record['_filename'] ?>-<?php echo $record['num'] ?> ">

also not with:

<a href="Certifications_Management_see.php?<?php echo $casos_estudio_Record['_filename'] ?>-<?php echo $casos_estudio_Record['num'] ?> ">

I do not why....


Dave
Staff / Moderator


May 9, 2008, 12:45 PM

Post #4 of 7 (174 views)
Shortcut
Re: [jposwald] ViewerUrl Difference 1.13 to 1.15 [In reply to] Can't Post

What happens? What does it output? Do you have an url?

Dave Edis - Senior Developer
interactivetools.com


jposwald
User

May 9, 2008, 12:56 PM

Post #5 of 7 (172 views)
Shortcut
Re: [Dave] ViewerUrl Difference 1.13 to 1.15 [In reply to] Can't Post

http://www.worldwidetrainings.com/Casos_Estudio_Psicologia_Clinica.php?id=1

I also attached you Casos_Estudio_Psicologia_Clinica.php

It gotta be a simple error I think.

Thank you Dave!
Attachments: Casos_Estudio_Psicologia_Clinica.php (26.0 KB)


Dave
Staff / Moderator


May 10, 2008, 2:35 PM

Post #6 of 7 (158 views)
Shortcut
Re: [jposwald] ViewerUrl Difference 1.13 to 1.15 [In reply to] Can't Post

Hi jposwald,

Sorry, what am I looking for? I search the page source of the url and the attached file for the "Certifications" from the link but couldn't find any matches?

What part should I look at this isn't working right?

Thanks!

Dave Edis - Senior Developer
interactivetools.com


jposwald
User

May 14, 2008, 12:56 AM

Post #7 of 7 (126 views)
Shortcut
Re: [Dave] ViewerUrl Difference 1.13 to 1.15 [In reply to] Can't Post

I already solve it :) Thank you!

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4