Customer Portal

Get Involved. Join the Conversation.

Comments

  • Leif Wickland
    Dustin,

    In a page, you should be able to use $this->page to get "home" or the like. (Donning lawyer cap...) Admittedly, that's undocumented, so it could potentially change.

    Alternatively, you could use the $_SERVER['REQUEST_URI'] to get the URL as requested by the browser. That is documented although more complicated. You could also use $this->uri->segment(3), which is a built in part of CodeIgniter.

    Leif
  • DustinTuft

    That makes since, I have not yet attempted to idnetify what page is being servered, is there an object that tells me where I am at?

     

    Thanks

  • Leif Wickland
    Dustin,

    It wouldn't be required to have /app/home produce a redirect for not-logged-in users. If you wanted to serve a page to those users without a redirect, you'd need /app/home to not use a template or move the redirect logic to the top of its template and only redirect conditionally if the page being served was the home page.

    Leif


  • DustinTuft

    So just so I understand, I need to have my home page be blank, and use the model to decide where to redirect to? So even my current defualt not logged in page would be part of the model return to routing code?

     

    Thanks

  • Leif Wickland
    Dustin,

    It sounds like you want to send an HTTP redirect header based on the SLA model. Potentially the best route to go is to add another method to your SLA model that translates the SLA level into the correct home page.

    Then you could change the home.php to consist of only something like:

    <?php

    $this->load->model('custom/Sla_model');

    $newUrl = $this->Sla_model->getHomePageUrl() . sessionParm();

    header("Location: $newUrl");

    exit("Redirecting to $newUrl...");

    ?>

    <html><head></head><body></body></html>

    You probably wouldn't want this page to have a template.  The minimal HTML document is required to satisfy our the deploy process.  The sessionParm() is recommended to ensure that you are not double billed for requests if visitors have cookies turned off.

     

    This seemed to work in the quick test that I ran.

     

    Additionally, you'll probably want to make sure that you have the

    <rn:meta clickstream='home'/>

     

    tag in your alternate home pages so that stats are collected correctly. 

     

    Please let me know how this works.

     

    Thanks,

     

    Leif Wickland

    Software Developer

  • DustinTuft

    We do the same thing in our KB, but not for all answers. We use a custom answer field that controls the out put type, then based on that the end user pages will change out the titles, or remove the question field all together.

     

    I supect you could remove the question field from the Admin console by editing the Workspace for it, but you still need to deal with the end user pages so the end user will see the article as you would like it to be display. How ever, I have not found a way to alter the Admin console preview function. So that will still show the RNT style Question and Answer.

  • Ernie Turner
    I think you probably want to post in the Customer Forum, maybe under 'General Product Discussion'.
  • bbenscoter

    No, not solved.

     

    I guess I'm just in the wrong place.  Where does one post questions that relate to just the RNT application, and not a specific feature such as Customer Portal?

  • domn

    Ok, thanks for the info. I wanted to ensure it wasn't something I was doing wrong. Probably some time before we go to Feb 09 since we're scheduled to go to Nov 08 on Monday so it would be great to see the fix implemented for older versions.

     

    Thanks again.

  • monique perkins

    PTA for classic pages has not changed.  When you switch to CP you will need to reformat the url you are using for pta to the new enduser url and parameters.  The encoded string stays the same.

     

    If you are concerned you should test your pta integration on your upgrade test site.

  • Leif Wickland
    Domenic,

    I forgot that I'd already fixed that bug in Feb '09, which I believe is the first version in which we officially support CS4. Adobe broke the file download API, MMHttp.getFileCallback(), in Dreamweaver CS4, so I needed find another way to download the extension. Sorry for the hassle. I have proposed that the fix be included in service packs for older RightNow versions.

    You're already discovered a pretty good workaround. You should be able to skip the step of uninstalling the old extension before installing the new one. The Extension Manager should perform the uninstall implicitly when installing the new version.

    Please let me know if I've gotten something wrong.

    Thanks,

    Leif

  • domn

    DW CS4 and Nov 08.

  • leads360_jeffso
    Erine, thank you for the reply. You say your "pretty sureErine, thank you for the reply. You say your "pretty sure" but this would crush us if you were wrong. " but this would crush us if you were wrong. We can only test this by putting RNT Feb 09 to production. If the old passthrough doesn't work, we're totally screwed. Can you 100% confirm this please?
  • Christopher Tarabochia

    Because CP is a new Framework it does not use the File Manager. Instead it uses the open standard of WebDAV. If you download the above material or the CP User Manual it walks you through accessing your site, setting persmissions, etc for edit files. That way you can use any editor you wish to edit the text files.

     

    Hope this helps.

     

    Chris

  • Leif Wickland
    Domn,

    Which version of Dreamweaver and RightNow are you using?

    Thanks,

    Leif Wickland
    Software Developer