Contain Hyperlinks in Page
  • I'm running some custom code within a Page by setting the default editor type to verbatim.

    I have a few hyperlinks in my Page that I'd like to contain within the Tango Page view - or the same frame if you will.

    I've tried targeting "_self" as shown below but it does not work.

    href="http://www.examle.com" target="_self"

    Is there a way to contain my links to the Page (frame)?

    Thanks!
  • Hi there,

    Do you mean so when the user clicks the link, it does not open in a new tab/window? If so, it'll do that by default.
  • I see now that may have been a silly question – the URL Alias on the page setting was what I was looking for. Thanks
  • Actually I do have one final question along the same lines. Now that I'm using the URL Alias I'm also trying to pass a variable along to my new page using POST.

    The Tango URL Alias link normally looks like this:

    /index.php?url=device

    Is it possible to POST values though to new pages like so:

    /index.php?url=device&sn=123

    The new "sn" value does not seem to pass into my new page. The device page looks something like this:

    #!verbatim
    <?php echo $sn; ?>


    Regards,
  • No, HTTP POST values are not part of the URL. What you're using there is a query string, data sent in a HTTP GET request.

    Your value will be available in $this->_input->get('sn') - use that and all should work :)

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Tagged